Test Failed
Push — main ( c8394f...8477f1 )
by Rafael
66:21
created
public/htdocs/projet/class/api_tasks.class.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -672,7 +672,7 @@  discard block
 block discarded – undo
672 672
         }
673 673
     }
674 674
 
675
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
675
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
676 676
     /**
677 677
      * Clean sensible object datas
678 678
      *
@@ -681,7 +681,7 @@  discard block
 block discarded – undo
681 681
      */
682 682
     protected function _cleanObjectDatas($object)
683 683
     {
684
-		// phpcs:enable
684
+        // phpcs:enable
685 685
         $object = parent::_cleanObjectDatas($object);
686 686
 
687 687
         unset($object->barcode_type);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -466,7 +466,7 @@
 block discarded – undo
466 466
             }
467 467
             if ($field == 'array_options' && is_array($value)) {
468 468
                 foreach ($value as $index => $val) {
469
-                    $this->task->array_options[$index] = $this->_checkValForAPI($field, $val, $this->task);;
469
+                    $this->task->array_options[$index] = $this->_checkValForAPI($field, $val, $this->task); ;
470 470
                 }
471 471
                 continue;
472 472
             }
Please login to merge, or discard this patch.
public/htdocs/projet/class/projectstats.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -331,7 +331,7 @@  discard block
 block discarded – undo
331 331
         if ($foundintocache) {    // Cache file found and is not too old
332 332
             dol_syslog(get_class($this) . '::' . __FUNCTION__ . " read data from cache file " . $newpathofdestfile . " " . $filedate . ".");
333 333
             $data = json_decode(file_get_contents($newpathofdestfile), true);
334
-            '@phan-var-force array $data';  // Phan can not interpret json_decode
334
+            '@phan-var-force array $data'; // Phan can not interpret json_decode
335 335
         } else {
336 336
             $year = $startyear;
337 337
             while ($year <= $endyear) {
@@ -442,7 +442,7 @@  discard block
 block discarded – undo
442 442
         if ($foundintocache) { // Cache file found and is not too old
443 443
             dol_syslog(get_class($this) . '::' . __FUNCTION__ . " read data from cache file " . $newpathofdestfile . " " . $filedate . ".");
444 444
             $data = json_decode(file_get_contents($newpathofdestfile), true);
445
-            '@phan-var-force array $data';  // Phan can not interpret json_decode
445
+            '@phan-var-force array $data'; // Phan can not interpret json_decode
446 446
         } else {
447 447
             $year = $startyear;
448 448
             while ($year <= $endyear) {
Please login to merge, or discard this patch.
public/htdocs/projet/class/project.class.php 2 patches
Indentation   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -177,8 +177,8 @@  discard block
 block discarded – undo
177 177
     public $usage_bill_time; // Is the time spent on project must be invoiced or not
178 178
 
179 179
     /**
180
-       * @var integer       Event organization: Use Event Organization
181
-       */
180
+     * @var integer       Event organization: Use Event Organization
181
+     */
182 182
     public $usage_organize_event;
183 183
 
184 184
     /**
@@ -812,7 +812,7 @@  discard block
 block discarded – undo
812 812
         return $substitution;
813 813
     }
814 814
 
815
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
815
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
816 816
     /**
817 817
      *  Return list of elements for type, linked to a project
818 818
      *
@@ -826,7 +826,7 @@  discard block
 block discarded – undo
826 826
      */
827 827
     public function get_element_list($type, $tablename, $datefieldname = '', $date_start = null, $date_end = null, $projectkey = 'fk_projet')
828 828
     {
829
-		// phpcs:enable
829
+        // phpcs:enable
830 830
 
831 831
         global $hookmanager;
832 832
 
@@ -1285,7 +1285,7 @@  discard block
 block discarded – undo
1285 1285
         return $this->LibStatut(isset($this->statut) ? $this->statut : $this->status, $mode);
1286 1286
     }
1287 1287
 
1288
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1288
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1289 1289
     /**
1290 1290
      *  Renvoi status label for a status
1291 1291
      *
@@ -1295,7 +1295,7 @@  discard block
 block discarded – undo
1295 1295
      */
1296 1296
     public function LibStatut($status, $mode = 0)
1297 1297
     {
1298
-		// phpcs:enable
1298
+        // phpcs:enable
1299 1299
         global $langs;
1300 1300
 
1301 1301
         if (is_null($status)) {
@@ -1976,7 +1976,7 @@  discard block
 block discarded – undo
1976 1976
     }
1977 1977
 
1978 1978
 
1979
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1979
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
1980 1980
     /**
1981 1981
      *    Associate element to a project
1982 1982
      *
@@ -1986,7 +1986,7 @@  discard block
 block discarded – undo
1986 1986
      */
1987 1987
     public function update_element($tableName, $elementSelectId)
1988 1988
     {
1989
-		// phpcs:enable
1989
+        // phpcs:enable
1990 1990
         $sql = "UPDATE " . MAIN_DB_PREFIX . $tableName;
1991 1991
 
1992 1992
         if ($tableName == "actioncomm") {
@@ -2010,7 +2010,7 @@  discard block
 block discarded – undo
2010 2010
         }
2011 2011
     }
2012 2012
 
2013
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2013
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2014 2014
     /**
2015 2015
      *    Associate element to a project
2016 2016
      *
@@ -2022,7 +2022,7 @@  discard block
 block discarded – undo
2022 2022
      */
2023 2023
     public function remove_element($tableName, $elementSelectId, $projectfield = 'fk_projet')
2024 2024
     {
2025
-		// phpcs:enable
2025
+        // phpcs:enable
2026 2026
         $sql = "UPDATE " . MAIN_DB_PREFIX . $tableName;
2027 2027
 
2028 2028
         if ($tableName == "actioncomm") {
@@ -2207,7 +2207,7 @@  discard block
 block discarded – undo
2207 2207
         }
2208 2208
     }
2209 2209
 
2210
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2210
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2211 2211
     /**
2212 2212
      * Load indicators for dashboard (this->nbtodo and this->nbtodolate)
2213 2213
      *
@@ -2216,7 +2216,7 @@  discard block
 block discarded – undo
2216 2216
      */
2217 2217
     public function load_board($user)
2218 2218
     {
2219
-		// phpcs:enable
2219
+        // phpcs:enable
2220 2220
         global $conf, $langs;
2221 2221
 
2222 2222
         // For external user, no check is done on company because readability is managed by public status of project and assignment.
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -746,7 +746,7 @@  discard block
 block discarded – undo
746 746
                 $this->statut = $obj->status; // deprecated
747 747
                 $this->status = $obj->status;
748 748
                 $this->opp_status = $obj->fk_opp_status;
749
-                $this->opp_amount   = $obj->opp_amount;
749
+                $this->opp_amount = $obj->opp_amount;
750 750
                 $this->opp_percent = $obj->opp_percent;
751 751
                 $this->budget_amount = $obj->budget_amount;
752 752
                 $this->model_pdf = $obj->model_pdf;
@@ -1703,7 +1703,7 @@  discard block
 block discarded – undo
1703 1703
         global $langs, $conf;
1704 1704
 
1705 1705
         $error = 0;
1706
-        $clone_project_id = 0;   // For static toolcheck
1706
+        $clone_project_id = 0; // For static toolcheck
1707 1707
 
1708 1708
         dol_syslog("createFromClone clone_contact=" . json_encode($clone_contact) . " clone_task=" . json_encode($clone_task) . " clone_project_file=" . json_encode($clone_project_file) . " clone_note=" . json_encode($clone_note) . " move_date=" . json_encode($move_date), LOG_DEBUG);
1709 1709
 
@@ -1997,7 +1997,7 @@  discard block
 block discarded – undo
1997 1997
         if ($tableName == "actioncomm") {
1998 1998
             $sql .= " SET fk_project=" . $this->id;
1999 1999
             $sql .= " WHERE id=" . ((int) $elementSelectId);
2000
-        } elseif (in_array($tableName, ["entrepot","mrp_mo","stocktransfer_stocktransfer"])) {
2000
+        } elseif (in_array($tableName, ["entrepot", "mrp_mo", "stocktransfer_stocktransfer"])) {
2001 2001
             $sql .= " SET fk_project=" . $this->id;
2002 2002
             $sql .= " WHERE rowid=" . ((int) $elementSelectId);
2003 2003
         } else {
@@ -2188,7 +2188,7 @@  discard block
 block discarded – undo
2188 2188
                     $date = explode('-', $obj->element_date);
2189 2189
                     $week_number = getWeekNumber($date[2], $date[1], $date[0]);
2190 2190
                 }
2191
-                '@phan-var-force int $week_number';  // Needed because phan considers it might be null
2191
+                '@phan-var-force int $week_number'; // Needed because phan considers it might be null
2192 2192
                 if (empty($weekalreadyfound[$week_number])) {
2193 2193
                     $this->monthWorkLoad[$week_number] = $obj->element_duration;
2194 2194
                     $this->monthWorkLoadPerTask[$week_number][$obj->fk_element] = $obj->element_duration;
@@ -2535,7 +2535,7 @@  discard block
 block discarded – undo
2535 2535
         if (method_exists($this, 'getLibStatut')) {
2536 2536
             $return .= '<div class="info-box-status small inline-block valignmiddle">' . $this->getLibStatut(3) . '</div>';
2537 2537
         }
2538
-        $return .= '</div>';    // end div line status
2538
+        $return .= '</div>'; // end div line status
2539 2539
 
2540 2540
         $return .= '</div>';
2541 2541
         $return .= '</div>';
Please login to merge, or discard this patch.
public/htdocs/projet/class/task.class.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -2175,7 +2175,7 @@  discard block
 block discarded – undo
2175 2175
         return $this->LibStatut($this->status, $mode);
2176 2176
     }
2177 2177
 
2178
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2178
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2179 2179
     /**
2180 2180
      *  Return status label for an object
2181 2181
      *
@@ -2185,7 +2185,7 @@  discard block
 block discarded – undo
2185 2185
      */
2186 2186
     public function LibStatut($status, $mode = 0)
2187 2187
     {
2188
-		// phpcs:enable
2188
+        // phpcs:enable
2189 2189
         global $langs;
2190 2190
 
2191 2191
         // list of Statut of the task
@@ -2302,7 +2302,7 @@  discard block
 block discarded – undo
2302 2302
     }
2303 2303
 
2304 2304
 
2305
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2305
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.ScopeNotCamelCaps
2306 2306
     /**
2307 2307
      * Load indicators for dashboard (this->nbtodo and this->nbtodolate)
2308 2308
      *
@@ -2311,7 +2311,7 @@  discard block
 block discarded – undo
2311 2311
      */
2312 2312
     public function load_board($user)
2313 2313
     {
2314
-		// phpcs:enable
2314
+        // phpcs:enable
2315 2315
         global $conf, $langs;
2316 2316
 
2317 2317
         // For external user, no check is done on company because readability is managed by public status of project and assignment.
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -536,7 +536,7 @@  discard block
 block discarded – undo
536 536
                          * @param Task $task
537 537
                          * @return bool
538 538
                          */
539
-                        static function ($allTasksCompleted, $task) {
539
+                        static function($allTasksCompleted, $task) {
540 540
                             return $allTasksCompleted && $task->progress >= 100;
541 541
                         },
542 542
                         1
@@ -1596,11 +1596,11 @@  discard block
 block discarded – undo
1596 1596
                 $newobj->timespent_line_id = $obj->rowid;
1597 1597
                 $newobj->timespent_line_ref_ext = $obj->ref_ext;
1598 1598
                 $newobj->timespent_line_date = $this->db->jdate($obj->task_date);
1599
-                $newobj->timespent_line_datehour    = $this->db->jdate($obj->task_datehour);
1599
+                $newobj->timespent_line_datehour = $this->db->jdate($obj->task_datehour);
1600 1600
                 $newobj->timespent_line_withhour = $obj->task_date_withhour;
1601 1601
                 $newobj->timespent_line_duration = $obj->task_duration;
1602 1602
                 $newobj->timespent_line_fk_user = $obj->fk_user;
1603
-                $newobj->timespent_line_thm = $obj->thm;    // hourly rate
1603
+                $newobj->timespent_line_thm = $obj->thm; // hourly rate
1604 1604
                 $newobj->timespent_line_note = $obj->note;
1605 1605
 
1606 1606
                 $arrayres[] = $newobj;
@@ -2139,7 +2139,7 @@  discard block
 block discarded – undo
2139 2139
         }
2140 2140
         // End
2141 2141
         if ($error) {
2142
-            $clone_task_id = 0;  // For static tool check
2142
+            $clone_task_id = 0; // For static tool check
2143 2143
         } else {
2144 2144
             $clone_task_id = $clone_task->id;
2145 2145
             $clone_task_ref = $clone_task->ref;
@@ -2588,7 +2588,7 @@  discard block
 block discarded – undo
2588 2588
         global $langs, $hookmanager, $user, $action;
2589 2589
 
2590 2590
         $error = 0;
2591
-        $task_origin = new Task($this->db);     // The thirdparty that we will delete
2591
+        $task_origin = new Task($this->db); // The thirdparty that we will delete
2592 2592
 
2593 2593
         dol_syslog("mergeTask merge task id=" . $task_origin_id . " (will be deleted) into the task id=" . $this->id);
2594 2594
 
Please login to merge, or discard this patch.
public/htdocs/projet/class/api_projects.class.php 2 patches
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -18,10 +18,10 @@  discard block
 block discarded – undo
18 18
  * along with this program. If not, see <https://www.gnu.org/licenses/>.
19 19
  */
20 20
 
21
- use Luracast\Restler\RestException;
21
+    use Luracast\Restler\RestException;
22 22
 
23
- require_once constant('DOL_DOCUMENT_ROOT') . '/projet/class/project.class.php';
24
- require_once constant('DOL_DOCUMENT_ROOT') . '/projet/class/task.class.php';
23
+    require_once constant('DOL_DOCUMENT_ROOT') . '/projet/class/project.class.php';
24
+    require_once constant('DOL_DOCUMENT_ROOT') . '/projet/class/task.class.php';
25 25
 
26 26
 /**
27 27
  * API class for projects
@@ -657,7 +657,7 @@  discard block
 block discarded – undo
657 657
     }
658 658
 
659 659
 
660
-	// phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
660
+    // phpcs:disable PEAR.NamingConventions.ValidFunctionName.PublicUnderscore
661 661
     /**
662 662
      * Clean sensible object datas
663 663
      *
@@ -666,7 +666,7 @@  discard block
 block discarded – undo
666 666
      */
667 667
     protected function _cleanObjectDatas($object)
668 668
     {
669
-		// phpcs:enable
669
+        // phpcs:enable
670 670
         $object = parent::_cleanObjectDatas($object);
671 671
 
672 672
         unset($object->datec);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
 
126 126
         $sql = "SELECT t.rowid";
127 127
         $sql .= " FROM " . MAIN_DB_PREFIX . "projet as t";
128
-        $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "projet_extrafields AS ef ON ef.fk_object = t.rowid";  // So we will be able to filter on extrafields
128
+        $sql .= " LEFT JOIN " . MAIN_DB_PREFIX . "projet_extrafields AS ef ON ef.fk_object = t.rowid"; // So we will be able to filter on extrafields
129 129
         if ($category > 0) {
130 130
             $sql .= ", " . MAIN_DB_PREFIX . "categorie_project as c";
131 131
         }
Please login to merge, or discard this patch.
public/htdocs/projet/index.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -155,7 +155,7 @@
 block discarded – undo
155 155
     while ($i < $num) {
156 156
         $objp = $db->fetch_object($resql);
157 157
         $listofoppstatus[$objp->rowid] = $objp->percent;
158
-        $listofopplabel[$objp->rowid] = $objp->label;       // default label if translation from "OppStatus".code not found.
158
+        $listofopplabel[$objp->rowid] = $objp->label; // default label if translation from "OppStatus".code not found.
159 159
         $listofoppcode[$objp->rowid] = $objp->code;
160 160
         switch ($objp->code) {
161 161
             case 'PROSP':
Please login to merge, or discard this patch.
public/htdocs/projet/element.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -151,8 +151,8 @@
 block discarded – undo
151 151
 $id = GETPOSTINT('id');
152 152
 $ref = GETPOST('ref', 'alpha');
153 153
 $action = GETPOST('action', 'aZ09');
154
-$datesrfc = GETPOST('datesrfc');    // deprecated
155
-$dateerfc = GETPOST('dateerfc');    // deprecated
154
+$datesrfc = GETPOST('datesrfc'); // deprecated
155
+$dateerfc = GETPOST('dateerfc'); // deprecated
156 156
 $dates = dol_mktime(0, 0, 0, GETPOST('datesmonth'), GETPOST('datesday'), GETPOST('datesyear'));
157 157
 $datee = dol_mktime(23, 59, 59, GETPOST('dateemonth'), GETPOST('dateeday'), GETPOST('dateeyear'));
158 158
 if (empty($dates) && !empty($datesrfc)) {   // deprecated
Please login to merge, or discard this patch.
public/htdocs/contrat/card.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -110,7 +110,7 @@  discard block
 block discarded – undo
110 110
 $permissionnote = $user->hasRight('contrat', 'creer'); // Used by the include of actions_setnotes.inc.php
111 111
 $permissiondellink = $user->hasRight('contrat', 'creer'); // Used by the include of actions_dellink.inc.php
112 112
 $permissiontodelete = ($user->hasRight('contrat', 'creer') && $object->statut == $object::STATUS_DRAFT) || $user->hasRight('contrat', 'supprimer');
113
-$permissiontoadd   = $user->hasRight('contrat', 'creer');     //  Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
113
+$permissiontoadd   = $user->hasRight('contrat', 'creer'); //  Used by the include of actions_addupdatedelete.inc.php and actions_lineupdown.inc.php
114 114
 $permissiontoedit = $permissiontoadd;
115 115
 $permissiontoactivate = $user->hasRight('contrat', 'activer');
116 116
 $error = 0;
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
 
156 156
     include DOL_DOCUMENT_ROOT . '/core/actions_dellink.inc.php'; // Must be include, not include_once
157 157
 
158
-    include DOL_DOCUMENT_ROOT . '/core/actions_lineupdown.inc.php';  // Must be include, not include_once
158
+    include DOL_DOCUMENT_ROOT . '/core/actions_lineupdown.inc.php'; // Must be include, not include_once
159 159
 
160 160
     if ($action == 'confirm_active' && $confirm == 'yes' && $permissiontoactivate) {
161 161
         $date_start = '';
@@ -533,8 +533,8 @@  discard block
 block discarded – undo
533 533
                     $result = $prodcustprice->fetchAll('', '', 0, 0, $filter);
534 534
                     if ($result) {
535 535
                         if (count($prodcustprice->lines) > 0) {
536
-                            $price_min =  price($prodcustprice->lines[0]->price_min);
537
-                            $price_min_ttc =  price($prodcustprice->lines[0]->price_min_ttc);
536
+                            $price_min = price($prodcustprice->lines[0]->price_min);
537
+                            $price_min_ttc = price($prodcustprice->lines[0]->price_min_ttc);
538 538
                             /*$tva_tx = $prodcustprice->lines[0]->tva_tx;
539 539
                             if ($prodcustprice->lines[0]->default_vat_code && !preg_match('/\(.*\)/', $tva_tx)) {
540 540
                                 $tva_tx .= ' ('.$prodcustprice->lines[0]->default_vat_code.')';
@@ -711,7 +711,7 @@  discard block
 block discarded – undo
711 711
         if (!empty($date_start_update) && !empty($date_end_update) && $date_start_update > $date_end_update) {
712 712
             setEventMessages($langs->trans("Error") . ': ' . $langs->trans("DateStartPlanned") . ' > ' . $langs->trans("DateEndPlanned"), null, 'errors');
713 713
             $action = 'editline';
714
-            $_GET['rowid'] = GETPOST('elrowid');    // Keep $_GET here. Used by GETPOST('rowid') later
714
+            $_GET['rowid'] = GETPOST('elrowid'); // Keep $_GET here. Used by GETPOST('rowid') later
715 715
             $error++;
716 716
         }
717 717
 
@@ -770,7 +770,7 @@  discard block
 block discarded – undo
770 770
             // update price_ht with discount
771 771
             // TODO Use object->updateline instead objectline->update
772 772
 
773
-            $price_ht =  price2num(GETPOST('elprice'), 'MU');
773
+            $price_ht = price2num(GETPOST('elprice'), 'MU');
774 774
             $remise_percent = price2num(GETPOST('elremise_percent'), '', 2);
775 775
             if ($remise_percent > 0) {
776 776
                 $remise = round(((float) $price_ht * (float) $remise_percent / 100), 2);
@@ -875,7 +875,7 @@  discard block
 block discarded – undo
875 875
     } elseif ($action == 'confirm_activate' && $confirm == 'yes' && $user->hasRight('contrat', 'creer')) {
876 876
         $date_start = dol_mktime(12, 0, 0, GETPOST('d_startmonth'), GETPOST('d_startday'), GETPOST('d_startyear'));
877 877
         $date_end   = dol_mktime(12, 0, 0, GETPOST('d_endmonth'), GETPOST('d_endday'), GETPOST('d_endyear'));
878
-        $comment      = GETPOST('comment', 'alpha');
878
+        $comment = GETPOST('comment', 'alpha');
879 879
         $result = $object->activateAll($user, $date_start, 0, $comment, $date_end);
880 880
         if ($result < 0) {
881 881
             setEventMessages($object->error, $object->errors, 'errors');
@@ -1504,7 +1504,7 @@  discard block
 block discarded – undo
1504 1504
         }
1505 1505
 
1506 1506
 
1507
-        $arrayothercontracts = $object->getListOfContracts('others');   // array or -1 if technical error
1507
+        $arrayothercontracts = $object->getListOfContracts('others'); // array or -1 if technical error
1508 1508
 
1509 1509
         /*
1510 1510
          * Lines of contracts
Please login to merge, or discard this patch.
public/htdocs/contrat/ticket.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
 
76 76
 dol_get_fiche_head($head, 'ticket', $langs->trans("Contract"), -1, 'contract');
77 77
 
78
-$linkback = '<a href="' . constant('BASE_URL') . '/contrat/list.php' . (! empty($socid) ? '?socid=' . $socid : '') . '">';
78
+$linkback = '<a href="' . constant('BASE_URL') . '/contrat/list.php' . (!empty($socid) ? '?socid=' . $socid : '') . '">';
79 79
 $linkback .= $langs->trans("BackToList") . '</a>';
80 80
 
81 81
 $morehtmlref = '';
@@ -136,12 +136,12 @@  discard block
 block discarded – undo
136 136
 // Thirdparty
137 137
 $morehtmlref .= '<br>' . $langs->trans('ThirdParty') . ' : ' . $object->thirdparty->getNomUrl(1);
138 138
 // Project
139
-if (! empty($conf->projet->enabled)) {
139
+if (!empty($conf->projet->enabled)) {
140 140
     require_once constant('DOL_DOCUMENT_ROOT') . '/projet/class/task.class.php';
141 141
 
142 142
     $langs->load("projects");
143 143
     $morehtmlref .= '<br>' . $langs->trans('Project') . ' : ';
144
-    if (! empty($object->fk_project)) {
144
+    if (!empty($object->fk_project)) {
145 145
         $proj = new Project($db);
146 146
         $proj->fetch($object->fk_project);
147 147
         $morehtmlref .= '<a href="' . constant('BASE_URL') . '/projet/card.php?id=';
Please login to merge, or discard this patch.