Completed
Push — master ( dfdc6c...3a502e )
by Steve
02:35
created
src/FieldsBuilder.php 3 patches
Doc Comments   +10 added lines patch added patch discarded remove patch
@@ -18,6 +18,10 @@  discard block
 block discarded – undo
18 18
         $this->config = array_merge($this->config, $groupConfig);
19 19
     }
20 20
 
21
+    /**
22
+     * @param string $key
23
+     * @param string $value
24
+     */
21 25
     public function setGroupConfig($key, $value)
22 26
     {
23 27
         $this->config[$key] = $value;
@@ -135,6 +139,9 @@  discard block
 block discarded – undo
135 139
         return $this;
136 140
     }
137 141
 
142
+    /**
143
+     * @param string $type
144
+     */
138 145
     protected function addFieldType($name, $type, $args = [])
139 146
     {
140 147
         return $this->addField($name, array_merge([
@@ -366,6 +373,9 @@  discard block
 block discarded – undo
366 373
         return $this->setConfig('instructions', $value);
367 374
     }
368 375
 
376
+    /**
377
+     * @param string $key
378
+     */
369 379
     public function setConfig($key, $value)
370 380
     {
371 381
         $field = $this->popLastField();
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@
 block discarded – undo
66 66
     {
67 67
         $builtFields = [];
68 68
 
69
-        foreach($fields as $i => $field) {
69
+        foreach ($fields as $i => $field) {
70 70
             if (is_subclass_of($field, Builder::class)) {
71 71
                 $builtFields[] = $field->build();
72 72
             }   
Please login to merge, or discard this patch.
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -69,8 +69,7 @@  discard block
 block discarded – undo
69 69
         foreach($fields as $i => $field) {
70 70
             if (is_subclass_of($field, Builder::class)) {
71 71
                 $builtFields[] = $field->build();
72
-            }   
73
-            else {
72
+            } else {
74 73
                 $builtFields[] = $field;
75 74
             }
76 75
         }
@@ -112,8 +111,7 @@  discard block
 block discarded – undo
112 111
             foreach ($fields->getFields() as $field) {
113 112
                 $this->pushField($field);
114 113
             }
115
-        }        
116
-        else {
114
+        } else {
117 115
             foreach ($fields as $field) {
118 116
                 $this->pushField($field);
119 117
             }
Please login to merge, or discard this patch.
src/FlexibleContentBuilder.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
54 54
     public function addLayout($layout, $args = [])
55 55
     {
56 56
         if (is_a($layout, Builder::class)) {
57
-             $layout = clone $layout;
57
+                $layout = clone $layout;
58 58
         } else {
59 59
             $layout = new FieldsBuilder($layout, $args);
60 60
         }
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
         $layout->setGroupConfig('name', $layout->getName());
63 63
         $layout->setGroupConfig('display', 'block');
64 64
 
65
-        foreach($args as $key => $value) {
65
+        foreach ($args as $key => $value) {
66 66
             $layout->setGroupConfig($key, $value);
67 67
         }
68 68
        
Please login to merge, or discard this patch.
src/ConditionalBuilder.php 1 patch
Braces   +2 added lines, -4 removed lines patch added patch discarded remove patch
@@ -59,12 +59,10 @@
 block discarded – undo
59 59
         if ($methodName === 'and') {
60 60
             list($name, $operator, $value) = $arguments;
61 61
             return $this->andCondition($name, $operator, $value);
62
-        }
63
-        else if ($methodName === 'or') {
62
+        } else if ($methodName === 'or') {
64 63
             list($name, $operator, $value) = $arguments;
65 64
             return $this->orCondition($name, $operator, $value);
66
-        }
67
-        else {
65
+        } else {
68 66
             return parent::__call($methodName, $arguments);
69 67
         }
70 68
     }
Please login to merge, or discard this patch.