eisen-dev/eisen_front

View on GitHub
webd/includes/machine_registration.php

Summary

Maintainability
A
0 mins
Test Coverage

Showing 7 of 7 total issues

Line exceeds 120 characters; contains 215 characters
Open

$query = $dbh->prepare('INSERT INTO manager_host (ipaddress, port, module, username, password, status_id ,user_id, active) VALUES ( :ipaddress, :port, :module, :username, :password, :status_id, :user_id, 1 );');

Expected 1 space after IF keyword; 0 found
Open

if(isset($_POST['submit'])){

Expected 1 space after closing parenthesis; found 0
Open

if(isset($_POST['submit'])){

No space found after comma in function call
Open

$status_id = $rest->restconnect($rest_host,$rest_port,$rest_user,$rest_pass);

No space found after comma in function call
Open

$status_id = $rest->restconnect($rest_host,$rest_port,$rest_user,$rest_pass);

Expected 1 space after CATCH keyword; 0 found
Open

} catch(PDOException $ex) {

No space found after comma in function call
Open

$status_id = $rest->restconnect($rest_host,$rest_port,$rest_user,$rest_pass);
Category
Status