Completed
Push — develop ( fdcb33...db4c50 )
by Freddie
07:09
created
src/Builder/FormBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -114,6 +114,6 @@
 block discarded – undo
114 114
             }
115 115
         }
116 116
 
117
-        return (string)$_template;
117
+        return (string) $_template;
118 118
     }
119 119
 }
Please login to merge, or discard this patch.
src/Builder/InputBuilder.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     private function getDefaultOptions(array $options = []): array
86 86
     {
87
-        return (array)array_merge([
87
+        return (array) array_merge([
88 88
             'required' => false,
89 89
         ], $options);
90 90
     }
@@ -97,7 +97,7 @@  discard block
 block discarded – undo
97 97
     {
98 98
         $_options = [];
99 99
 
100
-        $options = array_change_key_case(array_filter($options, function ($var) {
100
+        $options = array_change_key_case(array_filter($options, function($var) {
101 101
             return !is_null($var);
102 102
         }));
103 103
 
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                         if ($attribute == 'required' || $_value == 'required') {
125 125
                             $_options['required'] = true;
126 126
                         } elseif (in_array($attribute, ['length', 'mincheck', 'maxcheck', 'check', 'equalto'])) {
127
-                            $_options['attr']['data-parsley-' . $attribute] = $_value;
127
+                            $_options['attr']['data-parsley-'.$attribute] = $_value;
128 128
                         } elseif ($attribute == 'range') {
129 129
                             $_options['type'] = $attribute;
130 130
                             list($min, $max) = explode(',', $_value);
Please login to merge, or discard this patch.