Passed
Branch master (7ba29e)
by refat
03:38
created
Core/System/Validation.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -223,7 +223,7 @@  discard block
 block discarded – undo
223 223
     $msg = null;
224 224
     if ($options->start && $options->end) {
225 225
       $method = 'isDateBetween';
226
-      $msg = 'this field must be between ' . $options->start  . ' and ' . $options->end;
226
+      $msg = 'this field must be between ' . $options->start . ' and ' . $options->end;
227 227
     } elseif ($options->start) {
228 228
       $method = 'minimum';
229 229
       $msg = 'the date can\'t be under ' . $options->start;
@@ -231,7 +231,7 @@  discard block
 block discarded – undo
231 231
       $method = 'maximum';
232 232
       $msg = 'the date can\'t be above ' . $options->end;
233 233
     }
234
-    return array ('method' => $method,'msg'=> $msg);
234
+    return array('method' => $method, 'msg'=> $msg);
235 235
   }
236 236
 
237 237
   /**
@@ -346,14 +346,14 @@  discard block
 block discarded – undo
346 346
       }
347 347
 
348 348
       if (is_array($excepts->languages)) {
349
-        foreach($excepts->languages as $language) {
349
+        foreach ($excepts->languages as $language) {
350 350
           $langsRegex .= $this->languages(trim($language));
351 351
           $languages .= "$language, ";
352 352
         }
353 353
         $languages = rtrim($languages, ", ");
354 354
       } else if (is_string($excepts->languages)) {
355 355
         if (preg_match('/,/', $excepts->languages) && preg_match_all('/,/', $excepts->languages)) {
356
-          foreach(explode(',', $excepts->languages) as $language) {
356
+          foreach (explode(',', $excepts->languages) as $language) {
357 357
             $langsRegex .= $this->languages(trim($language));
358 358
             $languages .= "$language, ";
359 359
           }
@@ -386,7 +386,7 @@  discard block
 block discarded – undo
386 386
         $splitChars = str_split($splitChars);
387 387
         $splitChars = "\\" . implode('|\\', $splitChars);
388 388
       }
389
-      $re2 = "/^($splitChars"."|\\s+\\$splitChars)/";
389
+      $re2 = "/^($splitChars" . "|\\s+\\$splitChars)/";
390 390
       if (preg_match_all($re2, $value)) {
391 391
         $msg = $msg ?: 'charachters cant be in the first';
392 392
 
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
         $splitChars = str_split($splitChars);
402 402
         $splitChars = "\\" . implode('|\\', $splitChars);
403 403
       }
404
-      $re3 = "/($splitChars"."|\\$splitChars\\s+)$/";
404
+      $re3 = "/($splitChars" . "|\\$splitChars\\s+)$/";
405 405
       if (preg_match_all($re3, $value)) {
406 406
         $msg = $msg ?: 'charachters cant be in the end';
407 407
 
@@ -437,8 +437,8 @@  discard block
 block discarded – undo
437 437
 
438 438
     $re5 = "/^[0-9\\s$chars$langsRegex]*$/u";
439 439
     if (!preg_match($re5, $value)) {
440
-      $chars =  explode('\\', $chars);
441
-      $chars =  implode('', $chars);
440
+      $chars = explode('\\', $chars);
441
+      $chars = implode('', $chars);
442 442
       $chars = $chars ? "[ $chars ] and" : '';
443 443
       $languages = $languages ? "[ $languages ]" : '';
444 444
       $msg = $msg ?: "just $chars $languages letters can be used";
@@ -495,7 +495,7 @@  discard block
 block discarded – undo
495 495
     $files = [];
496 496
     $final = [];
497 497
 
498
-    foreach($characters as $key => $character) {
498
+    foreach ($characters as $key => $character) {
499 499
       if (strpos($character, 'path:') === 0) {
500 500
         unset($characters[$key]);
501 501
 
Please login to merge, or discard this patch.
Core/System/Date.php 1 patch
Indentation   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -5,11 +5,11 @@
 block discarded – undo
5 5
 
6 6
 class Date
7 7
 {
8
-   private $start;
9
-   private $end;
10
-   private $format;
11
-   private $value;
12
-   private $year;
8
+    private $start;
9
+    private $end;
10
+    private $format;
11
+    private $value;
12
+    private $year;
13 13
 
14 14
   /**
15 15
    * Constructor
Please login to merge, or discard this patch.