Completed
Push — master ( c71208...de5158 )
by Helmut
07:55 queued 04:36
created
src/Utility/Reflect.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@
 block discarded – undo
53 53
 
54 54
             $method = new ReflectionMethod($class, $method);
55 55
 
56
-            foreach($method->getParameters() as $param) {
56
+            foreach ($method->getParameters() as $param) {
57 57
                 $params[] = $param->getName();
58 58
             }
59 59
 
Please login to merge, or discard this patch.
src/Utility/Validate.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,13 +28,13 @@
 block discarded – undo
28 28
 
29 29
     public static function alphaNum($var)
30 30
     {
31
-        if (! is_string($var) && ! is_numeric($var)) return false;
31
+        if ( ! is_string($var) && ! is_numeric($var)) return false;
32 32
         return preg_match('/^[\pL\pM\pN]+$/u', $var);
33 33
     }
34 34
 
35 35
     public static function alphaDash($var)
36 36
     {
37
-        if (! is_string($var) && ! is_numeric($var)) return false;
37
+        if ( ! is_string($var) && ! is_numeric($var)) return false;
38 38
         return preg_match('/^[\pL\pM\pN_-]+$/u', $var);
39 39
     }
40 40
 
Please login to merge, or discard this patch.
src/Form.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -351,7 +351,7 @@  discard block
 block discarded – undo
351 351
      */
352 352
     public function completed($name = null)
353 353
     {
354
-        if($this->submitted($name) && $this->valid()) {
354
+        if ($this->submitted($name) && $this->valid()) {
355 355
             $this->broadcast('completed');
356 356
             return true;
357 357
         }
@@ -493,7 +493,7 @@  discard block
 block discarded – undo
493 493
         $errors = [];
494 494
 
495 495
         foreach ($this->fields as $field) {
496
-            foreach($field->errors() as $error) {
496
+            foreach ($field->errors() as $error) {
497 497
                 $errors[] = $error;
498 498
             }
499 499
         }
@@ -615,8 +615,8 @@  discard block
 block discarded – undo
615 615
     {
616 616
         $config = $this->templateConfig($template);
617 617
 
618
-        if ( isset($config['plugins']) && is_array($config['plugins'])) {
619
-            foreach($config['plugins'] as $key => $plugin) {
618
+        if (isset($config['plugins']) && is_array($config['plugins'])) {
619
+            foreach ($config['plugins'] as $key => $plugin) {
620 620
                 if (is_array($plugin)) {
621 621
                     $this->addPlugin($key, $plugin);
622 622
                 } else {
@@ -636,8 +636,8 @@  discard block
 block discarded – undo
636 636
     {
637 637
         $config = $this->templateConfig($template);
638 638
 
639
-        if ( isset($config['plugins']) && is_array($config['plugins'])) {
640
-            foreach($config['plugins'] as $plugin) {
639
+        if (isset($config['plugins']) && is_array($config['plugins'])) {
640
+            foreach ($config['plugins'] as $plugin) {
641 641
                 $this->removePlugin($plugin);
642 642
             }
643 643
         }
@@ -674,7 +674,7 @@  discard block
 block discarded – undo
674 674
             foreach ($field->errors() as $error => $parameters) {
675 675
 
676 676
                 if ($error == 'userDefined') {
677
-                    foreach($parameters as $message) {
677
+                    foreach ($parameters as $message) {
678 678
                         $properties['errors'][] = ['error' => $message];
679 679
                     }
680 680
                 } else {
@@ -683,7 +683,7 @@  discard block
 block discarded – undo
683 683
 
684 684
                     $message = $this->translate($error, $field);
685 685
 
686
-                    foreach($parameters as $key => $value) {
686
+                    foreach ($parameters as $key => $value) {
687 687
                         if (is_object($value) && method_exists($value, '__toString')) $value = (string) $value;
688 688
                         if (is_array($value)) $value = implode(', ', $value);
689 689
                         $message = str_replace('['.$key.']', $value, $message);
@@ -949,7 +949,7 @@  discard block
 block discarded – undo
949 949
      */
950 950
     private function broadcast($event, $params = []) 
951 951
     {
952
-        foreach($this->plugins as $plugin) {
952
+        foreach ($this->plugins as $plugin) {
953 953
             $plugin->event($this, $event, $params);
954 954
         }
955 955
     }
@@ -1090,7 +1090,7 @@  discard block
 block discarded – undo
1090 1090
     {
1091 1091
         if ( ! method_exists($this, $method))
1092 1092
         {
1093
-            if ( $this->typeExists($method)) {
1093
+            if ($this->typeExists($method)) {
1094 1094
                 return $this->addField($method, array_shift($parameters));
1095 1095
             }
1096 1096
         }
Please login to merge, or discard this patch.