Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
GLPI
glpi
Commits
97449daf
Commit
97449daf
authored
Oct 19, 2016
by
Edgard Lorraine Messias
Committed by
Johan Cwiklinski
Oct 20, 2016
Browse files
Applied the rules of phpcs in ajax and front folders
parent
61422a17
Changes
530
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
97449daf
...
...
@@ -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
:
...
...
ajax/autocompletion.php
View file @
97449daf
...
...
@@ -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
);
}
?>
ajax/comments.php
View file @
97449daf
...
...
@@ -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
ajax/common.tabs.php
View file @
97449daf
...
...
@@ -120,4 +120,3 @@ if (isset($_GET['full_page_tab'])) {
}
else
{
Html
::
ajaxFooter
();
}
?>
\ No newline at end of file
ajax/displayMessageAfterRedirect.php
View file @
97449daf
...
...
@@ -9,7 +9,7 @@
based on GLPI - Gestionnaire Libre de Parc Informatique
Copyright (C) 2003-2014 by the INDEPNET Development Team.
-------------------------------------------------------------------------
LICENSE
...
...
ajax/dropdownAllItems.php
View file @
97449daf
...
...
@@ -92,4 +92,3 @@ if ($_POST["idtable"] && class_exists($_POST["idtable"])) {
echo
"<br><span id='showItemSpecificity_"
.
$_POST
[
"name"
]
.
"
$rand
'> </span>
\n
"
;
}
}
?>
\ No newline at end of file
ajax/dropdownConnect.php
View file @
97449daf
...
...
@@ -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
ajax/dropdownConnectNetworkPort.php
View file @
97449daf
...
...
@@ -115,4 +115,3 @@ if (class_exists($_POST["itemtype"])
}
Dropdown
::
showFromArray
(
$_POST
[
'myname'
],
$values
,
array
(
'display_emptychoice'
=>
true
));
}
?>
\ No newline at end of file
ajax/dropdownConnectNetworkPortDeviceType.php
View file @
97449daf
...
...
@@ -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
ajax/dropdownDelegationUsers.php
View file @
97449daf
...
...
@@ -56,4 +56,3 @@ if ($_POST["nodelegate"] == 1) {
$ticket
=
new
Ticket
();
$ticket
->
showActorAddFormOnCreate
(
Ticket_User
::
REQUESTER
,
$_POST
);
?>
\ No newline at end of file
ajax/dropdownFieldsBlacklist.php
View file @
97449daf
...
...
@@ -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
);
?>
ajax/dropdownInstallVersion.php
View file @
97449daf
...
...
@@ -88,4 +88,3 @@ if ($_POST['softwares_id'] > 0) {
Dropdown
::
showFromArray
(
$_POST
[
'myname'
],
$values
,
array
(
'display_emptychoice'
=>
true
));
}
?>
ajax/dropdownItilActors.php
View file @
97449daf
...
...
@@ -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"])
}
}
}
?>
ajax/dropdownMassiveAction.php
View file @
97449daf
...
...
@@ -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
();
?>
ajax/dropdownMassiveActionAddActor.php
View file @
97449daf
...
...
@@ -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
" <input type='submit' name='add_actor' class='submit' value=
\"
"
.
_sx
(
'button'
,
'Add'
)
.
"
\"
>"
;
}
?>
ajax/dropdownMassiveActionAddValidator.php
View file @
97449daf
...
...
@@ -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
ajax/dropdownMassiveActionAuthMethods.php
View file @
97449daf
...
...
@@ -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
" <input type='submit' name='
$name
' class='submit' value=
\"
"
.
_sx
(
'button'
,
'Post'
)
.
"
\"
>"
;
}
?>
ajax/dropdownMassiveActionField.php
View file @
97449daf
...
...
@@ -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"])
}
}
?>
ajax/dropdownNotificationEvent.php
View file @
97449daf
...
...
@@ -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
ajax/dropdownNotificationTemplate.php
View file @
97449daf
...
...
@@ -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
Prev
1
2
3
4
5
…
27
Next
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment