Passed
Push — EXTRACT_CLASSES ( d3ffdd...d4f850 )
by Rafael
39:11
created
htdocs/core/triggers/interface_20_modWorkflow_WorkflowManager.class.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
 
104 104
                 $object->clearObjectLinkedCache();
105 105
 
106
-                return (int)$ret;
106
+                return (int) $ret;
107 107
             }
108 108
         }
109 109
 
@@ -215,7 +215,7 @@  discard block
 block discarded – undo
215 215
                         foreach ($object->linkedObjects['shipping'] as $element) {
216 216
                             $ret = $element->setClosed();
217 217
                             if ($ret < 0) {
218
-                                return (int)$ret;
218
+                                return (int) $ret;
219 219
                             }
220 220
                         }
221 221
                     }
@@ -236,7 +236,7 @@  discard block
 block discarded – undo
236 236
                         foreach ($object->linkedObjects['shipping'] as $element) {
237 237
                             $ret = $element->setBilled();
238 238
                             if ($ret < 0) {
239
-                                return (int)$ret;
239
+                                return (int) $ret;
240 240
                             }
241 241
                         }
242 242
                     }
@@ -254,7 +254,7 @@  discard block
 block discarded – undo
254 254
                         $areAllInvoicesValidated = true;
255 255
                         foreach ($orderLinked->linkedObjects['facture'] as $key => $invoice) {
256 256
                             if ($invoice->statut == Facture::STATUS_VALIDATED || $object->id == $invoice->id) {
257
-                                $totalHTInvoices += (float)$invoice->total_ht;
257
+                                $totalHTInvoices += (float) $invoice->total_ht;
258 258
                             } else {
259 259
                                 $areAllInvoicesValidated = false;
260 260
                                 break;
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
                         }
263 263
                         if ($areAllInvoicesValidated) {
264 264
                             $isSameTotal = (price2num($totalHTInvoices, 'MT') == price2num($orderLinked->total_ht, 'MT'));
265
-                            dol_syslog("Amount of linked invoices = " . $totalHTInvoices . ", of order = " . $orderLinked->total_ht . ", isSameTotal = " . (string)$isSameTotal, LOG_DEBUG);
265
+                            dol_syslog("Amount of linked invoices = " . $totalHTInvoices . ", of order = " . $orderLinked->total_ht . ", isSameTotal = " . (string) $isSameTotal, LOG_DEBUG);
266 266
                             if ($isSameTotal) {
267 267
                                 $ret = $orderLinked->classifyBilled($user);
268 268
                                 if ($ret < 0) {
@@ -592,9 +592,9 @@  discard block
 block discarded – undo
592 592
             // Automatically create intervention
593 593
             if (isModEnabled('intervention') && isModEnabled('ticket') && !empty($conf->workflow->enabled) && getDolGlobalString('WORKFLOW_TICKET_CREATE_INTERVENTION')) {
594 594
                 $fichinter = new Fichinter($this->db);
595
-                $fichinter->socid = (int)$object->fk_soc;
596
-                $fichinter->fk_project = (int)$object->fk_project;
597
-                $fichinter->fk_contrat = (int)$object->fk_contract;
595
+                $fichinter->socid = (int) $object->fk_soc;
596
+                $fichinter->fk_project = (int) $object->fk_project;
597
+                $fichinter->fk_contrat = (int) $object->fk_contract;
598 598
                 $fichinter->author = $user->id;
599 599
                 $fichinter->model_pdf = (getDolGlobalString('FICHEINTER_ADDON_PDF')) ? $conf->global->FICHEINTER_ADDON_PDF : 'soleil';
600 600
                 $fichinter->origin = $object->element;
Please login to merge, or discard this patch.
public/htdocs/core/triggers/interface_50_modAgenda_ActionsAuto.class.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1510,8 +1510,8 @@
 block discarded – undo
1510 1510
         $actioncomm = new ActionComm($this->db);
1511 1511
         $actioncomm->type_code = $object->actiontypecode; // Type of event ('AC_OTH', 'AC_OTH_AUTO', 'AC_XXX'...)
1512 1512
         $actioncomm->code = 'AC_' . $action;
1513
-        $actioncomm->label = $object->actionmsg2;     // Label of event
1514
-        $actioncomm->note_private = $object->actionmsg;     // Description
1513
+        $actioncomm->label = $object->actionmsg2; // Label of event
1514
+        $actioncomm->note_private = $object->actionmsg; // Description
1515 1515
         $actioncomm->fk_project = $projectid;
1516 1516
         $actioncomm->datep = $now;
1517 1517
         $actioncomm->datef = $now;
Please login to merge, or discard this patch.
public/htdocs/societe/project.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
35 35
 // Load Dolibarr environment
36 36
 require constant('DOL_DOCUMENT_ROOT') . '/main.inc.php';
37 37
 
38
-$form  = new Form($db);
38
+$form = new Form($db);
39 39
 
40 40
 // Load translation files required by the page
41 41
 $langs->loadLangs(array('companies', 'projects'));
@@ -87,7 +87,7 @@  discard block
 block discarded – undo
87 87
 if (!empty($permissiontodelete)) {
88 88
     $arrayofmassactions['predelete'] = img_picto('', 'delete', 'class="pictofixedwidth"') . $langs->trans("Delete");
89 89
 }
90
-if (in_array($massaction, array('presend', 'predelete','preaffecttag'))) {
90
+if (in_array($massaction, array('presend', 'predelete', 'preaffecttag'))) {
91 91
     $arrayofmassactions = array();
92 92
 }
93 93
 
Please login to merge, or discard this patch.