Passed
Push — GENERAL_BUG_REVIEW_240911 ( 776d89...c757bd )
by Rafael
50:33
created
public/htdocs/core/lib/prelevement.lib.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -118,13 +118,13 @@
 block discarded – undo
118 118
 }
119 119
 
120 120
     /**
121
- *  Return array head with list of tabs to view object information
122
- *
123
- *  @param  BonPrelevement  $object             Member
124
- *  @param  int             $nbOfInvoices       No of invoices
125
- *  @param  int             $nbOfSalaryInvoice  No of salary invoices
126
- *  @return array                               head
127
- */
121
+     *  Return array head with list of tabs to view object information
122
+     *
123
+     *  @param  BonPrelevement  $object             Member
124
+     *  @param  int             $nbOfInvoices       No of invoices
125
+     *  @param  int             $nbOfSalaryInvoice  No of salary invoices
126
+     *  @return array                               head
127
+     */
128 128
 function bon_prelevement_prepare_head(BonPrelevement $object, $nbOfInvoices, $nbOfSalaryInvoice)
129 129
 {
130 130
     global $langs, $conf;
Please login to merge, or discard this patch.
public/htdocs/core/lib/customreports.lib.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -210,10 +210,10 @@  discard block
 block discarded – undo
210 210
             ) {
211 211
                 continue;
212 212
             }
213
-            if (isset($val['enabled']) && ! (int) dol_eval($val['enabled'], 1, 1, '1')) {
213
+            if (isset($val['enabled']) && !(int) dol_eval($val['enabled'], 1, 1, '1')) {
214 214
                 continue;
215 215
             }
216
-            if (isset($val['visible']) && ! (int) dol_eval($val['visible'], 1, 1, '1')) {
216
+            if (isset($val['visible']) && !(int) dol_eval($val['visible'], 1, 1, '1')) {
217 217
                 continue;
218 218
             }
219 219
             if (preg_match('/^fk_/', $key) && !preg_match('/^fk_statu/', $key)) {
@@ -377,10 +377,10 @@  discard block
 block discarded – undo
377 377
             ) {
378 378
                 continue;
379 379
             }
380
-            if (isset($val['enabled']) && ! (int) dol_eval($val['enabled'], 1, 1, '1')) {
380
+            if (isset($val['enabled']) && !(int) dol_eval($val['enabled'], 1, 1, '1')) {
381 381
                 continue;
382 382
             }
383
-            if (isset($val['visible']) && ! (int) dol_eval($val['visible'], 1, 1, '1')) {
383
+            if (isset($val['visible']) && !(int) dol_eval($val['visible'], 1, 1, '1')) {
384 384
                 continue;
385 385
             }
386 386
             if (preg_match('/^fk_/', $key) && !preg_match('/^fk_statu/', $key)) {
Please login to merge, or discard this patch.
public/htdocs/core/lib/invoice.lib.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -143,7 +143,7 @@  discard block
 block discarded – undo
143 143
             } else {
144 144
                 dol_syslog('Failed to count actioncomm ' . $db->lasterror(), LOG_ERR);
145 145
             }
146
-            dol_setcache($cachekey, $nbEvent, 120);     // If setting cache fails, this is not a problem, so we do not test result.
146
+            dol_setcache($cachekey, $nbEvent, 120); // If setting cache fails, this is not a problem, so we do not test result.
147 147
         }
148 148
 
149 149
         $head[$h][1] .= '/';
@@ -285,7 +285,7 @@  discard block
 block discarded – undo
285 285
             } else {
286 286
                 dol_syslog('Failed to count actioncomm ' . $db->lasterror(), LOG_ERR);
287 287
             }
288
-            dol_setcache($cachekey, $nbEvent, 120);     // If setting cache fails, this is not a problem, so we do not test result.
288
+            dol_setcache($cachekey, $nbEvent, 120); // If setting cache fails, this is not a problem, so we do not test result.
289 289
         }
290 290
 
291 291
         $head[$h][1] .= '/';
@@ -453,7 +453,7 @@  discard block
 block discarded – undo
453 453
                 $dolgraph->setShowPercent(1);
454 454
                 $dolgraph->SetType(array('bars', 'bars', 'bars', 'bars', 'bars', 'bars'));
455 455
                 //$dolgraph->SetType(array('pie'));
456
-                $dolgraph->setHeight('160');    /* 160 min is required to show the 6 lines of legend */
456
+                $dolgraph->setHeight('160'); /* 160 min is required to show the 6 lines of legend */
457 457
                 $dolgraph->setWidth('450');
458 458
                 $dolgraph->setHideXValues(true);
459 459
                 if ($mode == 'customers') {
Please login to merge, or discard this patch.
public/htdocs/core/lib/files.lib.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             'types' => $types,
118 118
             'recursive' => $recursive,
119 119
             'filter' => $filter,
120
-            'excludefilter' => $exclude_array,  // Already converted to array.
120
+            'excludefilter' => $exclude_array, // Already converted to array.
121 121
             'sortcriteria' => $sortcriteria,
122 122
             'sortorder' => $sortorder,
123 123
             'loaddate' => $loaddate,
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
                 $qualified = 1;
153 153
 
154
-                $utf8_fullpathfile = "$utf8_path/$utf8_file";  // Temp variable for speed
154
+                $utf8_fullpathfile = "$utf8_path/$utf8_file"; // Temp variable for speed
155 155
 
156 156
                 // Check if file is qualified
157 157
                 foreach ($excludefilterarray as $filt) {
@@ -1955,7 +1955,7 @@  discard block
 block discarded – undo
1955 1955
                     $maxwidthmini = $tmparraysize['maxwidthmini'];
1956 1956
                     $maxheightmini = $tmparraysize['maxheightmini'];
1957 1957
                     //$quality = $tmparraysize['quality'];
1958
-                    $quality = 50;  // For thumbs, we force quality to 50
1958
+                    $quality = 50; // For thumbs, we force quality to 50
1959 1959
 
1960 1960
                     // Generate thumbs.
1961 1961
                     if ($generatethumbs) {
@@ -2383,9 +2383,9 @@  discard block
 block discarded – undo
2383 2383
                     // Skip directories (they would be added automatically)
2384 2384
                     if (!$file->isDir()) {
2385 2385
                         // Get real and relative path for current file
2386
-                        $filePath = $file->getPath();               // the full path with filename using the $inputdir root.
2386
+                        $filePath = $file->getPath(); // the full path with filename using the $inputdir root.
2387 2387
                         $fileName = $file->getFilename();
2388
-                        $fileFullRealPath = $file->getRealPath();   // the full path with name and transformed to use real path directory.
2388
+                        $fileFullRealPath = $file->getRealPath(); // the full path with name and transformed to use real path directory.
2389 2389
 
2390 2390
                         //$relativePath = substr($fileFullRealPath, strlen($rootPath) + 1);
2391 2391
                         $relativePath = substr(($filePath ? $filePath . '/' : '') . $fileName, strlen($rootPath) + 1);
@@ -2656,9 +2656,9 @@  discard block
 block discarded – undo
2656 2656
                     // Skip directories (they would be added automatically)
2657 2657
                     if (!$file->isDir()) {
2658 2658
                         // Get real and relative path for current file
2659
-                        $filePath = $file->getPath();               // the full path with filename using the $inputdir root.
2659
+                        $filePath = $file->getPath(); // the full path with filename using the $inputdir root.
2660 2660
                         $fileName = $file->getFilename();
2661
-                        $fileFullRealPath = $file->getRealPath();   // the full path with name and transformed to use real path directory.
2661
+                        $fileFullRealPath = $file->getRealPath(); // the full path with name and transformed to use real path directory.
2662 2662
 
2663 2663
                         //$relativePath = ($rootdirinzip ? $rootdirinzip.'/' : '').substr($fileFullRealPath, strlen($inputdir) + 1);
2664 2664
                         $relativePath = ($rootdirinzip ? $rootdirinzip . '/' : '') . substr(($filePath ? $filePath . '/' : '') . $fileName, strlen($inputdir) + 1);
Please login to merge, or discard this patch.
public/htdocs/core/lib/xcal.lib.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
                     // the default behaviour but there is no way to change keeping old saved date compatible.
211 211
                     $tzforfullday = getDolGlobalString('MAIN_STORE_FULL_EVENT_IN_GMT');
212 212
                     // Local time should be used to prevent users in time zones earlier than GMT from being one day earlier
213
-                    $prefix     = ";VALUE=DATE";
213
+                    $prefix = ";VALUE=DATE";
214 214
                     if ($tzforfullday) {
215 215
                         $startdatef = dol_print_date($startdate, "dayxcard", 'gmt');
216 216
                     } else {
@@ -238,7 +238,7 @@  discard block
 block discarded – undo
238 238
                 $enddatef = dol_print_date($enddate, "dayhourxcard", 'gmt');
239 239
 
240 240
                 if ($fulldayevent) {
241
-                    $prefix   = ";VALUE=DATE";
241
+                    $prefix = ";VALUE=DATE";
242 242
                     // We add 1 second so we reach the +1 day needed for full day event (DTEND must be next day after event)
243 243
                     // This is mention in https://datatracker.ietf.org/doc/html/rfc5545:
244 244
                     // "The "DTEND" property for a "VEVENT" calendar component specifies the non-inclusive end of the event."
Please login to merge, or discard this patch.
public/htdocs/core/lib/member.lib.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
             } else {
145 145
                 dol_syslog('Failed to count actioncomm ' . $db->lasterror(), LOG_ERR);
146 146
             }
147
-            dol_setcache($cachekey, $nbEvent, 120);     // If setting cache fails, this is not a problem, so we do not test result.
147
+            dol_setcache($cachekey, $nbEvent, 120); // If setting cache fails, this is not a problem, so we do not test result.
148 148
         }
149 149
 
150 150
         $head[$h][1] .= '/';
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/functions2.lib.php 2 patches
Indentation   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -2045,23 +2045,23 @@
 block discarded – undo
2045 2045
     //print extension_loaded('soap');
2046 2046
     if ($proxyuse) {
2047 2047
         $params = array('connection_timeout' => $timeout,
2048
-                      'response_timeout' => $response_timeout,
2049
-                      'proxy_use'      => 1,
2050
-                      'proxy_host'     => $proxyhost,
2051
-                      'proxy_port'     => $proxyport,
2052
-                      'proxy_login'    => $proxyuser,
2053
-                      'proxy_password' => $proxypass,
2054
-                      'trace'          => 1
2048
+                        'response_timeout' => $response_timeout,
2049
+                        'proxy_use'      => 1,
2050
+                        'proxy_host'     => $proxyhost,
2051
+                        'proxy_port'     => $proxyport,
2052
+                        'proxy_login'    => $proxyuser,
2053
+                        'proxy_password' => $proxypass,
2054
+                        'trace'          => 1
2055 2055
         );
2056 2056
     } else {
2057 2057
         $params = array('connection_timeout' => $timeout,
2058
-                      'response_timeout' => $response_timeout,
2059
-                      'proxy_use'      => 0,
2060
-                      'proxy_host'     => false,
2061
-                      'proxy_port'     => false,
2062
-                      'proxy_login'    => false,
2063
-                      'proxy_password' => false,
2064
-                      'trace'          => 1
2058
+                        'response_timeout' => $response_timeout,
2059
+                        'proxy_use'      => 0,
2060
+                        'proxy_host'     => false,
2061
+                        'proxy_port'     => false,
2062
+                        'proxy_login'    => false,
2063
+                        'proxy_password' => false,
2064
+                        'trace'          => 1
2065 2065
         );
2066 2066
     }
2067 2067
     return $params;
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
     $main_dir = realpath(constant('BASE_PATH') . '/../Dolibarr/Modules');
91 91
 
92 92
     $modulesdir = array();
93
-    $modulesdir[$main_dir.'/'] = $main_dir.'/';
93
+    $modulesdir[$main_dir . '/'] = $main_dir . '/';
94 94
 
95 95
     foreach ($conf->file->dol_document_root as $type => $dirroot) {
96 96
         // Default core/modules dir
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
         } else {
202 202
             print ': ';
203 203
         }
204
-        if (! empty($object->user_creation) && is_object($object->user_creation)) { // deprecated mode
204
+        if (!empty($object->user_creation) && is_object($object->user_creation)) { // deprecated mode
205 205
             if ($object->user_creation->id) {
206 206
                 print $object->user_creation->getNomUrl(-1, '', 0, 0, 0);
207 207
             } else {
@@ -2962,7 +2962,7 @@  discard block
 block discarded – undo
2962 2962
     $string = trim($string);
2963 2963
 
2964 2964
     // If string does not start and end with parenthesis, we return $string as is.
2965
-    if (! preg_match('/^\(.*\)$/', $string)) {
2965
+    if (!preg_match('/^\(.*\)$/', $string)) {
2966 2966
         return $string;
2967 2967
     }
2968 2968
 
@@ -3000,15 +3000,15 @@  discard block
 block discarded – undo
3000 3000
 function getArrayOfEmojiBis()
3001 3001
 {
3002 3002
     $arrayofcommonemoji = array(
3003
-        'misc' => array('2600', '26FF'),        // Miscellaneous Symbols
3004
-        'ding' => array('2700', '27BF'),        // Dingbats
3005
-        '????' => array('9989', '9989'),        // Variation Selectors
3006
-        'vars' => array('FE00', 'FE0F'),        // Variation Selectors
3007
-        'pict' => array('1F300', '1F5FF'),      // Miscellaneous Symbols and Pictographs
3008
-        'emot' => array('1F600', '1F64F'),      // Emoticons
3009
-        'tran' => array('1F680', '1F6FF'),      // Transport and Map Symbols
3010
-        'flag' => array('1F1E0', '1F1FF'),      // Flags (note: may be 1F1E6 instead of 1F1E0)
3011
-        'supp' => array('1F900', '1F9FF'),      // Supplemental Symbols and Pictographs
3003
+        'misc' => array('2600', '26FF'), // Miscellaneous Symbols
3004
+        'ding' => array('2700', '27BF'), // Dingbats
3005
+        '????' => array('9989', '9989'), // Variation Selectors
3006
+        'vars' => array('FE00', 'FE0F'), // Variation Selectors
3007
+        'pict' => array('1F300', '1F5FF'), // Miscellaneous Symbols and Pictographs
3008
+        'emot' => array('1F600', '1F64F'), // Emoticons
3009
+        'tran' => array('1F680', '1F6FF'), // Transport and Map Symbols
3010
+        'flag' => array('1F1E0', '1F1FF'), // Flags (note: may be 1F1E6 instead of 1F1E0)
3011
+        'supp' => array('1F900', '1F9FF'), // Supplemental Symbols and Pictographs
3012 3012
     );
3013 3013
 
3014 3014
     return $arrayofcommonemoji;
Please login to merge, or discard this patch.