From 432be644d837dc2cf584b6c6cfcf1abb6b667395 Mon Sep 17 00:00:00 2001 From: amma35 Date: Tue, 7 Aug 2018 15:54:04 +0200 Subject: [PATCH] codingstandard with phpcs --- ajax/loadscripts.php | 4 +- ajax/ticket.php | 2 +- front/closeticket.form.php | 6 +- front/config.form.php | 4 +- front/waitingtype.form.php | 2 +- front/waitingtype.php | 2 +- hook.php | 75 +-- inc/closeticket.class.php | 44 +- inc/config.class.php | 20 +- inc/profile.class.php | 48 +- inc/solution.class.php | 2 +- inc/ticket.class.php | 8 +- inc/ticketfollowup.class.php | 212 ++++----- inc/tickettask.class.php | 244 +++++----- inc/urgencyticket.class.php | 35 +- inc/waitingticket.class.php | 71 +-- inc/waitingtype.class.php | 8 +- moreticket.css | 4 +- scripts/moreticket.js | 741 ++++++++++++++--------------- scripts/moreticket.js.php | 7 +- scripts/moreticket_load_scripts.js | 35 +- setup.php | 39 +- 22 files changed, 807 insertions(+), 806 deletions(-) diff --git a/ajax/loadscripts.php b/ajax/loadscripts.php index 8a6152b393..bc86c02254 100644 --- a/ajax/loadscripts.php +++ b/ajax/loadscripts.php @@ -47,7 +47,7 @@ $urgency_ids = $config->getUrgency_ids(); $use_duration_solution = $config->useDurationSolution(); - $params = array('root_doc' => $CFG_GLPI['root_doc'], + $params = ['root_doc' => $CFG_GLPI['root_doc'], 'waiting' => CommonITILObject::WAITING, 'closed' => CommonITILObject::CLOSED, 'use_waiting' => $use_waiting, @@ -56,7 +56,7 @@ 'glpilayout' => $_SESSION['glpilayout'], 'use_urgency' => $use_urgency, 'urgency_ids' => $urgency_ids, - 'div_kb' => Session::haveRight('knowbase', UPDATE)); + 'div_kb' => Session::haveRight('knowbase', UPDATE)]; echo "