Commit 97449daf authored by Edgard Lorraine Messias's avatar Edgard Lorraine Messias Committed by Johan Cwiklinski
Browse files

Applied the rules of phpcs in ajax and front folders

parent 61422a17
......@@ -15,7 +15,7 @@ before_script:
script:
- mysql -u root -e 'select version();'
- phpunit --verbose
- phpcs -p --standard=tools/phpcs-rules.xml inc/
- phpcs -p --standard=tools/phpcs-rules.xml inc/ front/ ajax/
matrix:
include:
......
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -106,4 +106,3 @@ if ($result=$DB->query($query)) {
if (count($values)) {
echo json_encode($values);
}
?>
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -82,4 +82,3 @@ if (isset($_POST["table"])
}
}
}
?>
\ No newline at end of file
......@@ -120,4 +120,3 @@ if (isset($_GET['full_page_tab'])) {
} else {
Html::ajaxFooter();
}
?>
\ No newline at end of file
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......
......@@ -92,4 +92,3 @@ if ($_POST["idtable"] && class_exists($_POST["idtable"])) {
echo "<br><span id='showItemSpecificity_".$_POST["name"]."$rand'>&nbsp;</span>\n";
}
}
?>
\ No newline at end of file
......@@ -55,4 +55,3 @@ if (isset($_POST["used"])) {
}
Computer_Item::dropdownConnect($_POST["itemtype"], $_POST['fromtype'], $_POST['myname'],
$_POST["entity_restrict"], $_POST["onlyglobal"], $used);
?>
\ No newline at end of file
......@@ -115,4 +115,3 @@ if (class_exists($_POST["itemtype"])
}
Dropdown::showFromArray($_POST['myname'], $values, array('display_emptychoice' => true));
}
?>
\ No newline at end of file
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -73,4 +73,3 @@ if (class_exists($_POST["itemtype"])) {
echo "</span>\n";
}
?>
\ No newline at end of file
......@@ -56,4 +56,3 @@ if ($_POST["nodelegate"] == 1) {
$ticket = new Ticket();
$ticket->showActorAddFormOnCreate(Ticket_User::REQUESTER, $_POST);
?>
\ No newline at end of file
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -51,4 +51,3 @@ if ($_POST['id'] > 0) {
$field->fields['itemtype'] = $_POST['itemtype'];
}
$field->selectCriterias($field);
?>
......@@ -88,4 +88,3 @@ if ($_POST['softwares_id'] > 0) {
Dropdown::showFromArray($_POST['myname'], $values, array('display_emptychoice' => true));
}
?>
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -124,7 +124,7 @@ if (isset($_POST["type"])
if ($_POST["actortype"] == 'assign') {
$cond = '`is_assign`';
}
$param = array('name' => '_itil_'.$_POST["actortype"].'[groups_id]',
'entity' => $_POST['entity_restrict'],
'condition' => $cond,
......@@ -206,4 +206,3 @@ if (isset($_POST["type"])
}
}
}
?>
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -52,4 +52,3 @@ try {
$ma->showSubForm();
?>
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -50,4 +50,3 @@ if ($_POST["actortype"] > 0) {
true, false, false);
echo "&nbsp;<input type='submit' name='add_actor' class='submit' value=\""._sx('button','Add')."\">";
}
?>
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -73,11 +73,11 @@ if (isset($_POST["validatortype"])) {
break;
case 'group_user' :
$opt = array('groups_id' => $_POST["groups_id"],
$opt = array('groups_id' => $_POST["groups_id"],
'right' => $_POST['right'],
'entity' => $_SESSION["glpiactive_entity"]);
$groups_users = TicketValidation::getGroupUserHaveRights($opt);
$users = array();
......@@ -126,4 +126,3 @@ if (isset($_POST["validatortype"])) {
}
}
?>
\ No newline at end of file
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -69,4 +69,3 @@ if ($_POST["authtype"] > 0) {
echo "&nbsp;<input type='submit' name='$name' class='submit' value=\""._sx('button','Post')."\">";
}
?>
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -121,4 +121,3 @@ if (isset($_POST["itemtype"])
}
}
?>
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -44,4 +44,3 @@ if (strpos($_SERVER['PHP_SELF'],"dropdownNotificationEvent.php")) {
Session::checkRight("notification", UPDATE);
NotificationEvent::dropdownEvents($_POST['itemtype']);
?>
\ No newline at end of file
......@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
......@@ -44,4 +44,3 @@ if (strpos($_SERVER['PHP_SELF'],"dropdownNotificationTemplate.php")) {
Session::checkRight("notification", UPDATE);
NotificationTemplate::dropdownTemplates('notificationtemplates_id', $_POST['itemtype']);
?>
\ No newline at end of file
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment