Passed
Branch master (7c8e9a)
by refat
04:09
created
Core/System/Characters.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@
 block discarded – undo
125 125
     $loopLangs = $comma ? explode(',', $this->languages) : $this->languages;
126 126
     $langsRegex = '';
127 127
     $languages = '';
128
-    foreach($loopLangs as $language) {
128
+    foreach ($loopLangs as $language) {
129 129
       $langsRegex .= $this->languagesArray(trim($language));
130 130
       $languages .= "$language, ";
131 131
     }
Please login to merge, or discard this patch.
Core/System/Validation.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@  discard block
 block discarded – undo
224 224
     $msg = null;
225 225
     if ($options->start && $options->end) {
226 226
       $method = 'isDateBetween';
227
-      $msg = 'this field must be between ' . $options->start  . ' and ' . $options->end;
227
+      $msg = 'this field must be between ' . $options->start . ' and ' . $options->end;
228 228
     } elseif ($options->start) {
229 229
       $method = 'minimum';
230 230
       $msg = 'the date can\'t be under ' . $options->start;
@@ -232,7 +232,7 @@  discard block
 block discarded – undo
232 232
       $method = 'maximum';
233 233
       $msg = 'the date can\'t be above ' . $options->end;
234 234
     }
235
-    return array ('method' => $method,'msg'=> $msg);
235
+    return array('method' => $method, 'msg'=> $msg);
236 236
   }
237 237
 
238 238
   /**
@@ -314,7 +314,7 @@  discard block
 block discarded – undo
314 314
       "value" => $value,
315 315
     ]);
316 316
 
317
-    foreach($methods as $method => $options) {
317
+    foreach ($methods as $method => $options) {
318 318
       if (call_user_func_array(array($this, $method), $options[0])) {
319 319
         $msg = $msg ?: $options[1];
320 320
         $this->addError($this->input, $msg);
@@ -343,8 +343,8 @@  discard block
 block discarded – undo
343 343
 
344 344
   private function charactersFormatCharsMsg($chars)
345 345
   {
346
-    $chars =  explode('\\', $chars);
347
-    $chars =  implode('', $chars);
346
+    $chars = explode('\\', $chars);
347
+    $chars = implode('', $chars);
348 348
     $chars = $chars ? "[ $chars ] and" : '';
349 349
     return $chars;
350 350
   }
@@ -388,7 +388,7 @@  discard block
 block discarded – undo
388 388
   {
389 389
     if ($atFirst === false) {
390 390
       $chars = $this->charactersFormatCharsRegex($chars);
391
-      $re = "/^($chars"."|\\s+\\$chars)/";
391
+      $re = "/^($chars" . "|\\s+\\$chars)/";
392 392
       if (preg_match_all($re, $value)) {
393 393
         return true;
394 394
       }
@@ -400,7 +400,7 @@  discard block
 block discarded – undo
400 400
   {
401 401
     if ($atEnd === false) {
402 402
       $chars = $this->charactersFormatCharsRegex($chars);
403
-      $re = "/($chars"."|\\$chars\\s+)$/";
403
+      $re = "/($chars" . "|\\$chars\\s+)$/";
404 404
       if (preg_match_all($re, $value)) {
405 405
         return true;
406 406
       }
@@ -468,7 +468,7 @@  discard block
 block discarded – undo
468 468
     $files = [];
469 469
     $final = [];
470 470
 
471
-    foreach($characters as $key => $character) {
471
+    foreach ($characters as $key => $character) {
472 472
       if (strpos($character, 'path:') === 0) {
473 473
         unset($characters[$key]);
474 474
 
Please login to merge, or discard this patch.