Test Failed
Push — main ( c8394f...8477f1 )
by Rafael
66:21
created
public/htdocs/core/lib/propal.lib.php 1 patch
Spacing   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@  discard block
 block discarded – undo
134 134
             } else {
135 135
                 dol_syslog('Failed to count actioncomm ' . $db->lasterror(), LOG_ERR);
136 136
             }
137
-            dol_setcache($cachekey, $nbEvent, 120);     // If setting cache fails, this is not a problem, so we do not test result.
137
+            dol_setcache($cachekey, $nbEvent, 120); // If setting cache fails, this is not a problem, so we do not test result.
138 138
         }
139 139
 
140 140
         $head[$h][1] .= '/';
@@ -269,9 +269,9 @@  discard block
 block discarded – undo
269 269
         $result = '<div class="div-table-responsive-no-min">';
270 270
         $result .= '<table class="noborder nohover centpercent">';
271 271
 
272
-        $result .=  '<tr class="liste_titre">';
273
-        $result .=  '<td colspan="2">' . $langs->trans("Statistics") . ' - ' . $langs->trans("Proposals") . '</td>';
274
-        $result .=  '</tr>';
272
+        $result .= '<tr class="liste_titre">';
273
+        $result .= '<td colspan="2">' . $langs->trans("Statistics") . ' - ' . $langs->trans("Proposals") . '</td>';
274
+        $result .= '</tr>';
275 275
 
276 276
         foreach ($listofstatus as $status) {
277 277
             $dataseries[] = array($propalstatic->LibStatut($status, 1), (isset($vals[$status]) ? (int) $vals[$status] : 0));
@@ -292,16 +292,16 @@  discard block
 block discarded – undo
292 292
             }
293 293
 
294 294
             if (empty($conf->use_javascript_ajax)) {
295
-                $result .=  '<tr class="oddeven">';
296
-                $result .=  '<td>' . $propalstatic->LibStatut($status, 0) . '</td>';
297
-                $result .=  '<td class="right"><a href="list.php?statut=' . $status . '">' . (isset($vals[$status]) ? $vals[$status] : 0) . '</a></td>';
298
-                $result .=  "</tr>\n";
295
+                $result .= '<tr class="oddeven">';
296
+                $result .= '<td>' . $propalstatic->LibStatut($status, 0) . '</td>';
297
+                $result .= '<td class="right"><a href="list.php?statut=' . $status . '">' . (isset($vals[$status]) ? $vals[$status] : 0) . '</a></td>';
298
+                $result .= "</tr>\n";
299 299
             }
300 300
         }
301 301
 
302 302
         if ($conf->use_javascript_ajax) {
303
-            $result .=  '<tr>';
304
-            $result .=  '<td align="center" colspan="2">';
303
+            $result .= '<tr>';
304
+            $result .= '<td align="center" colspan="2">';
305 305
 
306 306
             include_once DOL_DOCUMENT_ROOT . '/core/class/dolgraph.class.php';
307 307
             $dolgraph = new DolGraph();
@@ -313,10 +313,10 @@  discard block
 block discarded – undo
313 313
             $dolgraph->setHeight('150');
314 314
             $dolgraph->setWidth('300');
315 315
             $dolgraph->draw('idgraphthirdparties');
316
-            $result .=  $dolgraph->show($total ? 0 : 1);
316
+            $result .= $dolgraph->show($total ? 0 : 1);
317 317
 
318
-            $result .=  '</td>';
319
-            $result .=  '</tr>';
318
+            $result .= '</td>';
319
+            $result .= '</tr>';
320 320
         }
321 321
 
322 322
         //if ($totalinprocess != $total)
@@ -327,14 +327,14 @@  discard block
 block discarded – undo
327 327
         //  print '</tr>';
328 328
         //}
329 329
 
330
-        $result .=  '<tr class="liste_total">';
331
-        $result .=  '<td>' . $langs->trans("Total") . '</td>';
332
-        $result .=  '<td class="right">' . $total . '</td>';
333
-        $result .=  '</tr>';
330
+        $result .= '<tr class="liste_total">';
331
+        $result .= '<td>' . $langs->trans("Total") . '</td>';
332
+        $result .= '<td class="right">' . $total . '</td>';
333
+        $result .= '</tr>';
334 334
 
335
-        $result .=  '</table>';
336
-        $result .=  '</div>';
337
-        $result .=  '<br>';
335
+        $result .= '</table>';
336
+        $result .= '</div>';
337
+        $result .= '<br>';
338 338
     } else {
339 339
         dol_print_error($db);
340 340
     }
Please login to merge, or discard this patch.
public/htdocs/core/lib/images.lib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -212,7 +212,7 @@
 block discarded – undo
212 212
 
213 213
     $filetoread = realpath(dol_osencode($file)); // Chemin canonique absolu de l'image
214 214
 
215
-    $infoImg = getimagesize($filetoread);           // Get data about src image
215
+    $infoImg = getimagesize($filetoread); // Get data about src image
216 216
     $imgWidth = $infoImg[0]; // Largeur de l'image
217 217
     $imgHeight = $infoImg[1]; // Hauteur de l'image
218 218
 
Please login to merge, or discard this patch.
public/htdocs/core/lib/oauth.lib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -283,7 +283,7 @@
 block discarded – undo
283 283
     // Supported OAUTH (a provider is supported when a file xxx_oauthcallback.php is available into htdocs/core/modules/oauth)
284 284
     $supportedoauth2array = array(
285 285
         'OAUTH_GOOGLE_NAME' => array(
286
-            'callbackfile' => 'google',     // used to generate the filename: google_oauthcallback.php
286
+            'callbackfile' => 'google', // used to generate the filename: google_oauthcallback.php
287 287
             'picto' => 'google',
288 288
             'urlforapp' => 'OAUTH_GOOGLE_DESC',
289 289
             'name' => 'Google',
Please login to merge, or discard this patch.
public/htdocs/core/lib/reception.lib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
     $head[$h][2] = 'reception';
48 48
     $h++;
49 49
 
50
-    if ($object->statut ==  Reception::STATUS_DRAFT || ($object->statut == Reception::STATUS_VALIDATED && !getDolGlobalString('STOCK_CALCULATE_ON_RECEPTION'))) {
50
+    if ($object->statut == Reception::STATUS_DRAFT || ($object->statut == Reception::STATUS_VALIDATED && !getDolGlobalString('STOCK_CALCULATE_ON_RECEPTION'))) {
51 51
         $head[$h][0] = DOL_URL_ROOT . "/reception/dispatch.php?id=" . $object->id;
52 52
         $head[$h][1] = $langs->trans("ReceptionDistribution");
53 53
         $head[$h][2] = 'dispatch';
Please login to merge, or discard this patch.
public/htdocs/core/lib/functions2.lib.php 1 patch
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -198,7 +198,7 @@  discard block
 block discarded – undo
198 198
         } else {
199 199
             print ': ';
200 200
         }
201
-        if (! empty($object->user_creation) && is_object($object->user_creation)) { // deprecated mode
201
+        if (!empty($object->user_creation) && is_object($object->user_creation)) { // deprecated mode
202 202
             if ($object->user_creation->id) {
203 203
                 print $object->user_creation->getNomUrl(-1, '', 0, 0, 0);
204 204
             } else {
@@ -2959,7 +2959,7 @@  discard block
 block discarded – undo
2959 2959
     $string = trim($string);
2960 2960
 
2961 2961
     // If string does not start and end with parenthesis, we return $string as is.
2962
-    if (! preg_match('/^\(.*\)$/', $string)) {
2962
+    if (!preg_match('/^\(.*\)$/', $string)) {
2963 2963
         return $string;
2964 2964
     }
2965 2965
 
@@ -2997,15 +2997,15 @@  discard block
 block discarded – undo
2997 2997
 function getArrayOfEmojiBis()
2998 2998
 {
2999 2999
     $arrayofcommonemoji = array(
3000
-        'misc' => array('2600', '26FF'),        // Miscellaneous Symbols
3001
-        'ding' => array('2700', '27BF'),        // Dingbats
3002
-        '????' => array('9989', '9989'),        // Variation Selectors
3003
-        'vars' => array('FE00', 'FE0F'),        // Variation Selectors
3004
-        'pict' => array('1F300', '1F5FF'),      // Miscellaneous Symbols and Pictographs
3005
-        'emot' => array('1F600', '1F64F'),      // Emoticons
3006
-        'tran' => array('1F680', '1F6FF'),      // Transport and Map Symbols
3007
-        'flag' => array('1F1E0', '1F1FF'),      // Flags (note: may be 1F1E6 instead of 1F1E0)
3008
-        'supp' => array('1F900', '1F9FF'),      // Supplemental Symbols and Pictographs
3000
+        'misc' => array('2600', '26FF'), // Miscellaneous Symbols
3001
+        'ding' => array('2700', '27BF'), // Dingbats
3002
+        '????' => array('9989', '9989'), // Variation Selectors
3003
+        'vars' => array('FE00', 'FE0F'), // Variation Selectors
3004
+        'pict' => array('1F300', '1F5FF'), // Miscellaneous Symbols and Pictographs
3005
+        'emot' => array('1F600', '1F64F'), // Emoticons
3006
+        'tran' => array('1F680', '1F6FF'), // Transport and Map Symbols
3007
+        'flag' => array('1F1E0', '1F1FF'), // Flags (note: may be 1F1E6 instead of 1F1E0)
3008
+        'supp' => array('1F900', '1F9FF'), // Supplemental Symbols and Pictographs
3009 3009
     );
3010 3010
 
3011 3011
     return $arrayofcommonemoji;
Please login to merge, or discard this patch.
public/htdocs/core/lib/bank.lib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -309,7 +309,7 @@
 block discarded – undo
309 309
     if ($account == null && $ibantocheck == null) {
310 310
         return false;
311 311
     } elseif ($ibantocheck == null) {
312
-        $ibantocheck = ($account->iban ? $account->iban : $account->iban_prefix);       // iban or iban_prefix for backward compatibility
312
+        $ibantocheck = ($account->iban ? $account->iban : $account->iban_prefix); // iban or iban_prefix for backward compatibility
313 313
     }
314 314
     //require_once constant('DOL_DOCUMENT_ROOT') . '/includes/php-iban/oophp-iban.php';
315 315
 
Please login to merge, or discard this patch.
public/htdocs/core/lib/security.lib.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         return bin2hex(random_bytes((int) floor($length / 2))); // the bin2hex will double the number of bytes so we take length / 2
107 107
     }
108 108
 
109
-    return bin2hex(openssl_random_pseudo_bytes((int) floor($length / 2)));      // the bin2hex will double the number of bytes so we take length / 2. May be very slow on Windows.
109
+    return bin2hex(openssl_random_pseudo_bytes((int) floor($length / 2))); // the bin2hex will double the number of bytes so we take length / 2. May be very slow on Windows.
110 110
 }
111 111
 
112 112
 /**
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
 function dol_verifyHash($chain, $hash, $type = '0')
286 286
 {
287 287
     if ($type == '0' && getDolGlobalString('MAIN_SECURITY_HASH_ALGO') && getDolGlobalString('MAIN_SECURITY_HASH_ALGO') == 'password_hash' && function_exists('password_verify')) {
288
-        if (! empty($hash[0]) && $hash[0] == '$') {
288
+        if (!empty($hash[0]) && $hash[0] == '$') {
289 289
             return password_verify($chain, $hash);
290 290
         } elseif (dol_strlen($hash) == 32) {
291 291
             return dol_verifyHash($chain, $hash, '3'); // md5
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
     } elseif ($type === 'crypt') {
340 340
         return '{CRYPT}' . crypt($password, $salt);
341 341
     } elseif ($type === 'clear') {
342
-        return '{CLEAR}' . $password;  // Just for test, plain text password is not secured !
342
+        return '{CLEAR}' . $password; // Just for test, plain text password is not secured !
343 343
     }
344 344
     return "";
345 345
 }
@@ -372,13 +372,13 @@  discard block
 block discarded – undo
372 372
     if (is_object($object)) {
373 373
         $objectid = $object->id;
374 374
     } else {
375
-        $objectid = $object;        // $objectid can be X or 'X,Y,Z'
375
+        $objectid = $object; // $objectid can be X or 'X,Y,Z'
376 376
     }
377 377
     if ($objectid == "-1") {
378 378
         $objectid = 0;
379 379
     }
380 380
     if ($objectid) {
381
-        $objectid = preg_replace('/[^0-9\.\,]/', '', (string) $objectid);   // For the case value is coming from a non sanitized user input
381
+        $objectid = preg_replace('/[^0-9\.\,]/', '', (string) $objectid); // For the case value is coming from a non sanitized user input
382 382
     }
383 383
 
384 384
     //dol_syslog("functions.lib:restrictedArea $feature, $objectid, $dbtablename, $feature2, $dbt_socfield, $dbt_select, $isdraft");
@@ -863,9 +863,9 @@  discard block
 block discarded – undo
863 863
     if (is_object($object)) {
864 864
         $objectid = $object->id;
865 865
     } else {
866
-        $objectid = $object;        // $objectid can be X or 'X,Y,Z'
866
+        $objectid = $object; // $objectid can be X or 'X,Y,Z'
867 867
     }
868
-    $objectid = preg_replace('/[^0-9\.\,]/', '', $objectid);    // For the case value is coming from a non sanitized user input
868
+    $objectid = preg_replace('/[^0-9\.\,]/', '', $objectid); // For the case value is coming from a non sanitized user input
869 869
 
870 870
     //dol_syslog("functions.lib:restrictedArea $feature, $objectid, $dbtablename, $feature2, $dbt_socfield, $dbt_select, $isdraft");
871 871
     //print "user_id=".$user->id.", features=".join(',', $featuresarray).", objectid=".$objectid;
@@ -915,7 +915,7 @@  discard block
 block discarded – undo
915 915
         $checkparentsoc = array('agenda', 'contact', 'contrat'); // Test on entity + link to third party on field $dbt_keyfield. Allowed if link is empty (Ex: contacts...).
916 916
         $checkproject = array('projet', 'project'); // Test for project object
917 917
         $checktask = array('projet_task'); // Test for task object
918
-        $checkhierarchy = array('expensereport', 'holiday');    // check permission among the hierarchy of user
918
+        $checkhierarchy = array('expensereport', 'holiday'); // check permission among the hierarchy of user
919 919
         $checkuser = array('bookmark'); // check permission among the fk_user (must be myself or null)
920 920
         $nocheck = array('barcode', 'stock'); // No test
921 921
 
@@ -929,7 +929,7 @@  discard block
 block discarded – undo
929 929
 
930 930
         // To avoid an access forbidden with a numeric ref
931 931
         if ($dbt_select != 'rowid' && $dbt_select != 'id') {
932
-            $objectid = "'" . $objectid . "'";  // Note: $objectid was already cast into int at begin of this method.
932
+            $objectid = "'" . $objectid . "'"; // Note: $objectid was already cast into int at begin of this method.
933 933
         }
934 934
         // Check permission for objectid on entity only
935 935
         if (in_array($feature, $check) && $objectid > 0) {      // For $objectid = 0, no check
Please login to merge, or discard this patch.
public/htdocs/core/lib/pdf.lib.php 1 patch
Spacing   +15 added lines, -17 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 
185 185
     $pdfa = false; // PDF-1.3
186 186
     if (getDolGlobalString('PDF_USE_A')) {
187
-        $pdfa = getDolGlobalString('PDF_USE_A');    // PDF/A-1 ou PDF/A-3
187
+        $pdfa = getDolGlobalString('PDF_USE_A'); // PDF/A-1 ou PDF/A-3
188 188
     }
189 189
 
190 190
     if (!getDolGlobalString('MAIN_DISABLE_TCPDI') && class_exists('TCPDI')) {
@@ -1026,7 +1026,7 @@  discard block
 block discarded – undo
1026 1026
     $outputlangs->load("dict");
1027 1027
     $line = '';
1028 1028
     $reg = array();
1029
-    $marginwithfooter = 0;  // Return value
1029
+    $marginwithfooter = 0; // Return value
1030 1030
 
1031 1031
     $dims = $pdf->getPageDimensions();
1032 1032
 
@@ -1157,7 +1157,7 @@  discard block
 block discarded – undo
1157 1157
         $line4 .= ($line4 ? " - " : "") . $field . ": " . $outputlangs->convToOutputCharset($fromcompany->idprof5);
1158 1158
     }
1159 1159
     // Prof Id 6
1160
-    if (!empty($fromcompany->idprof6) &&  $fromcompany->idprof6) {
1160
+    if (!empty($fromcompany->idprof6) && $fromcompany->idprof6) {
1161 1161
         $field = $outputlangs->transcountrynoentities("ProfId6", $fromcompany->country_code);
1162 1162
         if (preg_match('/\((.*)\)/i', $field, $reg)) {
1163 1163
             $field = $reg[1];
@@ -1165,7 +1165,7 @@  discard block
 block discarded – undo
1165 1165
         $line4 .= ($line4 ? " - " : "") . $field . ": " . $outputlangs->convToOutputCharset($fromcompany->idprof6);
1166 1166
     }
1167 1167
     // Prof Id 7
1168
-    if (!empty($fromcompany->idprof7) &&  $fromcompany->idprof7) {
1168
+    if (!empty($fromcompany->idprof7) && $fromcompany->idprof7) {
1169 1169
         $field = $outputlangs->transcountrynoentities("ProfId7", $fromcompany->country_code);
1170 1170
         if (preg_match('/\((.*)\)/i', $field, $reg)) {
1171 1171
             $field = $reg[1];
@@ -1173,7 +1173,7 @@  discard block
 block discarded – undo
1173 1173
         $line4 .= ($line4 ? " - " : "") . $field . ": " . $outputlangs->convToOutputCharset($fromcompany->idprof7);
1174 1174
     }
1175 1175
     // Prof Id 8
1176
-    if (!empty($fromcompany->idprof8) &&  $fromcompany->idprof8) {
1176
+    if (!empty($fromcompany->idprof8) && $fromcompany->idprof8) {
1177 1177
         $field = $outputlangs->transcountrynoentities("ProfId8", $fromcompany->country_code);
1178 1178
         if (preg_match('/\((.*)\)/i', $field, $reg)) {
1179 1179
             $field = $reg[1];
@@ -1181,7 +1181,7 @@  discard block
 block discarded – undo
1181 1181
         $line4 .= ($line4 ? " - " : "") . $field . ": " . $outputlangs->convToOutputCharset($fromcompany->idprof8);
1182 1182
     }
1183 1183
     // Prof Id 9
1184
-    if (!empty($fromcompany->idprof9) &&  $fromcompany->idprof9) {
1184
+    if (!empty($fromcompany->idprof9) && $fromcompany->idprof9) {
1185 1185
         $field = $outputlangs->transcountrynoentities("ProfId9", $fromcompany->country_code);
1186 1186
         if (preg_match('/\((.*)\)/i', $field, $reg)) {
1187 1187
             $field = $reg[1];
@@ -1189,7 +1189,7 @@  discard block
 block discarded – undo
1189 1189
         $line4 .= ($line4 ? " - " : "") . $field . ": " . $outputlangs->convToOutputCharset($fromcompany->idprof9);
1190 1190
     }
1191 1191
     // Prof Id 10
1192
-    if (!empty($fromcompany->idprof10) &&  $fromcompany->idprof10) {
1192
+    if (!empty($fromcompany->idprof10) && $fromcompany->idprof10) {
1193 1193
         $field = $outputlangs->transcountrynoentities("ProfId10", $fromcompany->country_code);
1194 1194
         if (preg_match('/\((.*)\)/i', $field, $reg)) {
1195 1195
             $field = $reg[1];
@@ -1197,7 +1197,7 @@  discard block
 block discarded – undo
1197 1197
         $line4 .= ($line4 ? " - " : "") . $field . ": " . $outputlangs->convToOutputCharset($fromcompany->idprof10);
1198 1198
     }
1199 1199
     // IntraCommunautary VAT
1200
-    if (!empty($fromcompany->tva_intra)  && $fromcompany->tva_intra != '') {
1200
+    if (!empty($fromcompany->tva_intra) && $fromcompany->tva_intra != '') {
1201 1201
         $line4 .= ($line4 ? " - " : "") . $outputlangs->transnoentities("VATIntraShort") . ": " . $outputlangs->convToOutputCharset($fromcompany->tva_intra);
1202 1202
     }
1203 1203
 
@@ -1366,7 +1366,7 @@  discard block
 block discarded – undo
1366 1366
 
1367 1367
     $pagination = $pdf->PageNo() . ' / ' . $pdf->getAliasNbPages();
1368 1368
     $fontRenderCorrection = 0;
1369
-    if (in_array(pdf_getPDFFont($outputlangs), array('freemono',  'DejaVuSans'))) {
1369
+    if (in_array(pdf_getPDFFont($outputlangs), array('freemono', 'DejaVuSans'))) {
1370 1370
         $fontRenderCorrection = 10;
1371 1371
     }
1372 1372
     $pdf->MultiCell(18 + $fontRenderCorrection, 2, $pagination, 0, 'R', 0);
@@ -1463,7 +1463,7 @@  discard block
 block discarded – undo
1463 1463
 
1464 1464
         if (getDolGlobalString('MARGIN_TOP_ZERO_UL')) {
1465 1465
             $pdf->setListIndentWidth(5);
1466
-            $TMarginList = ['ul' => [['h' => 0.1, ],['h' => 0.1, ]], 'li' => [['h' => 0.1, ],],];
1466
+            $TMarginList = ['ul' => [['h' => 0.1, ], ['h' => 0.1, ]], 'li' => [['h' => 0.1, ], ], ];
1467 1467
             $pdf->setHtmlVSpace($TMarginList);
1468 1468
         }
1469 1469
 
@@ -1585,8 +1585,7 @@  discard block
 block discarded – undo
1585 1585
                     $libelleproduitservice = dol_concatdesc(
1586 1586
                         dol_concatdesc($libelleproduitservice, " * " . $subprodval[3]),
1587 1587
                         (!empty($qtyText) ?
1588
-                            $outputlangs->trans('Qty') . ':' . $qtyText . ' x ' . $outputlangs->trans('AssociatedProducts') . ':' . $subprodval[1] . '= ' . $outputlangs->trans('QtyTot') . ':' . $subprodval[1] * $qtyText :
1589
-                            $outputlangs->trans('Qty') . ' ' . $outputlangs->trans('AssociatedProducts') . ':' . $subprodval[1])
1588
+                            $outputlangs->trans('Qty') . ':' . $qtyText . ' x ' . $outputlangs->trans('AssociatedProducts') . ':' . $subprodval[1] . '= ' . $outputlangs->trans('QtyTot') . ':' . $subprodval[1] * $qtyText : $outputlangs->trans('Qty') . ' ' . $outputlangs->trans('AssociatedProducts') . ':' . $subprodval[1])
1590 1589
                     );
1591 1590
                 }
1592 1591
             } else {
@@ -1594,8 +1593,7 @@  discard block
 block discarded – undo
1594 1593
                     $libelleproduitservice = dol_concatdesc(
1595 1594
                         dol_concatdesc($libelleproduitservice, " * " . $subprodval[5] . (($subprodval[5] && $subprodval[3]) ? ' - ' : '') . $subprodval[3]),
1596 1595
                         (!empty($qtyText) ?
1597
-                            $outputlangs->trans('Qty') . ':' . $qtyText . ' x ' . $outputlangs->trans('AssociatedProducts') . ':' . $subprodval[1] . '= ' . $outputlangs->trans('QtyTot') . ':' . $subprodval[1] * $qtyText :
1598
-                            $outputlangs->trans('Qty') . ' ' . $outputlangs->trans('AssociatedProducts') . ':' . $subprodval[1])
1596
+                            $outputlangs->trans('Qty') . ':' . $qtyText . ' x ' . $outputlangs->trans('AssociatedProducts') . ':' . $subprodval[1] . '= ' . $outputlangs->trans('QtyTot') . ':' . $subprodval[1] * $qtyText : $outputlangs->trans('Qty') . ' ' . $outputlangs->trans('AssociatedProducts') . ':' . $subprodval[1])
1599 1597
                     );
1600 1598
                 }
1601 1599
             }
@@ -2555,7 +2553,7 @@  discard block
 block discarded – undo
2555 2553
                         }
2556 2554
                     }
2557 2555
 
2558
-                    if (! is_object($order)) {
2556
+                    if (!is_object($order)) {
2559 2557
                         $object->note_public = dol_concatdesc($object->note_public, $outputlangs->transnoentities($elementobject->ref));
2560 2558
                     } else {
2561 2559
                         $object->note_public = dol_concatdesc($object->note_public, $outputlangs->convToOutputCharset($order->ref) . ($order->ref_client ? ' (' . $order->ref_client . ')' : ''));
@@ -2578,7 +2576,7 @@  discard block
 block discarded – undo
2578 2576
                     }
2579 2577
                 }
2580 2578
 
2581
-                if (! is_object($order)) {
2579
+                if (!is_object($order)) {
2582 2580
                     $linkedobjects[$objecttype]['ref_title'] = $outputlangs->transnoentities("RefSending");
2583 2581
                     if (empty($linkedobjects[$objecttype]['ref_value'])) {
2584 2582
                         $linkedobjects[$objecttype]['ref_value'] = '';
@@ -2680,7 +2678,7 @@  discard block
 block discarded – undo
2680 2678
                 if (isset($hookmanager->resArray['linetotalremise'])) {
2681 2679
                     return $hookmanager->resArray['linetotalremise'];
2682 2680
                 } else {
2683
-                    return (float) $hookmanager->resPrint;  // For backward compatibility
2681
+                    return (float) $hookmanager->resPrint; // For backward compatibility
2684 2682
                 }
2685 2683
             }
2686 2684
         }
Please login to merge, or discard this patch.
public/htdocs/core/lib/modulebuilder.lib.php 1 patch
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -277,22 +277,22 @@  discard block
 block discarded – undo
277 277
     // Edit .sql file
278 278
     if ($moduletype == 'internal') {
279 279
         $pathoffiletoeditsrc = '/../install/mysql/tables/llx_' . strtolower($module) . '_' . strtolower($objectname) . '.sql';
280
-        if (! dol_is_file($readdir . $pathoffiletoeditsrc)) {
280
+        if (!dol_is_file($readdir . $pathoffiletoeditsrc)) {
281 281
             $pathoffiletoeditsrc = '/../install/mysql/tables/llx_' . strtolower($module) . '_' . strtolower($objectname) . '-' . strtolower($module) . '.sql';
282
-            if (! dol_is_file($readdir . $pathoffiletoeditsrc)) {
282
+            if (!dol_is_file($readdir . $pathoffiletoeditsrc)) {
283 283
                 $pathoffiletoeditsrc = '/../install/mysql/tables/llx_' . strtolower($module) . '-' . strtolower($module) . '.sql';
284
-                if (! dol_is_file($readdir . $pathoffiletoeditsrc)) {
284
+                if (!dol_is_file($readdir . $pathoffiletoeditsrc)) {
285 285
                     $pathoffiletoeditsrc = '/../install/mysql/tables/llx_' . strtolower($module) . '.sql';
286 286
                 }
287 287
             }
288 288
         }
289 289
     } else {
290 290
         $pathoffiletoeditsrc = '/sql/llx_' . strtolower($module) . '_' . strtolower($objectname) . '.sql';
291
-        if (! dol_is_file($readdir . $pathoffiletoeditsrc)) {
291
+        if (!dol_is_file($readdir . $pathoffiletoeditsrc)) {
292 292
             $pathoffiletoeditsrc = '/sql/llx_' . strtolower($module) . '_' . strtolower($objectname) . '-' . strtolower($module) . '.sql';
293
-            if (! dol_is_file($readdir . $pathoffiletoeditsrc)) {
293
+            if (!dol_is_file($readdir . $pathoffiletoeditsrc)) {
294 294
                 $pathoffiletoeditsrc = '/sql/llx_' . strtolower($module) . '-' . strtolower($module) . '.sql';
295
-                if (! dol_is_file($readdir . $pathoffiletoeditsrc)) {
295
+                if (!dol_is_file($readdir . $pathoffiletoeditsrc)) {
296 296
                     $pathoffiletoeditsrc = '/sql/llx_' . strtolower($module) . '.sql';
297 297
                 }
298 298
             }
@@ -735,7 +735,7 @@  discard block
 block discarded – undo
735 735
 {
736 736
 
737 737
     // stock all properties in array
738
-    $attributesUnique = array('type','label', 'enabled', 'position', 'notnull', 'visible', 'noteditable', 'index', 'default' , 'foreignkey', 'arrayofkeyval', 'alwayseditable','validate', 'searchall','comment', 'isameasure', 'css', 'cssview','csslist', 'help', 'showoncombobox','picto' );
738
+    $attributesUnique = array('type', 'label', 'enabled', 'position', 'notnull', 'visible', 'noteditable', 'index', 'default', 'foreignkey', 'arrayofkeyval', 'alwayseditable', 'validate', 'searchall', 'comment', 'isameasure', 'css', 'cssview', 'csslist', 'help', 'showoncombobox', 'picto');
739 739
 
740 740
     $start = "public \$fields=array(";
741 741
     $end = ");";
@@ -915,7 +915,7 @@  discard block
 block discarded – undo
915 915
     $string = "[options='header',grid=rows,width=60%,caption=Organisation]\n";
916 916
     $string .= "|===\n";
917 917
     // header for table
918
-    $header = array($langs->trans('Objects'),$langs->trans('Permission'));
918
+    $header = array($langs->trans('Objects'), $langs->trans('Permission'));
919 919
     foreach ($header as $h) {
920 920
         $string .= "|" . $h;
921 921
     }
@@ -1248,7 +1248,7 @@  discard block
 block discarded – undo
1248 1248
                  * @param mixed $val
1249 1249
                  * @return string|int
1250 1250
                  */
1251
-                function ($val) use ($module) {
1251
+                function($val) use ($module) {
1252 1252
                     return is_bool($val) ? "isModEnabled('$module')" : $val;
1253 1253
                 },
1254 1254
                 $value
@@ -1269,7 +1269,7 @@  discard block
 block discarded – undo
1269 1269
                          * @param string $val
1270 1270
                          * @return string
1271 1271
                          */
1272
-                        static function ($val) {
1272
+                        static function($val) {
1273 1273
                             return "'$val'";
1274 1274
                         },
1275 1275
                         $value
@@ -1363,7 +1363,7 @@  discard block
 block discarded – undo
1363 1363
     $dictionnaires['tabfieldvalue'][] = (array_key_exists('code', $columns) && array_key_exists('label', $columns) ? 'code,label' : '');
1364 1364
     $dictionnaires['tabfieldinsert'][] = (array_key_exists('code', $columns) && array_key_exists('label', $columns) ? 'code,label' : '');
1365 1365
     $dictionnaires['tabrowid'][] = $primaryKey;
1366
-    $dictionnaires['tabcond'][] = isModEnabled('$modulename');  // @phan-suppress-current-line UnknownModuleName
1366
+    $dictionnaires['tabcond'][] = isModEnabled('$modulename'); // @phan-suppress-current-line UnknownModuleName
1367 1367
     $dictionnaires['tabhelp'][] = (array_key_exists('code', $columns) ? array('code' => $langs->trans('CodeTooltipHelp'), 'field2' => 'field2tooltip') : '');
1368 1368
 
1369 1369
     // Build the dictionary string
@@ -1417,7 +1417,7 @@  discard block
 block discarded – undo
1417 1417
 
1418 1418
     // build format asciidoc for urls in table
1419 1419
     if (!$error) {
1420
-		$asciiDocTable = "[options=\"header\"]\n|===\n|Object | URLs\n";  // phpcs:ignore
1420
+		$asciiDocTable = "[options=\"header\"]\n|===\n|Object | URLs\n"; // phpcs:ignore
1421 1421
         foreach ($groupedUrls as $objectName => $urls) {
1422 1422
             $urlsList = implode(" +\n*", $urls);
1423 1423
             $asciiDocTable .= "|$objectName | \n*$urlsList +\n";
Please login to merge, or discard this patch.