Passed
Push — master ( 6aeda2...c92419 )
by Bruno
04:51
created
Formularium/Factory/DatatypeFactory.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -112,11 +112,11 @@
 block discarded – undo
112 112
 @param Model \$model The entire model, if your field depends on other things of the model. may be null.
113 113
 @throws Exception If invalid, with the message.
114 114
 @return mixed The validated value.')
115
-             ->setBody("throw new ValidatorException('Not implemented');");
115
+                ->setBody("throw new ValidatorException('Not implemented');");
116 116
         
117 117
         $validateMethod->addParameter('value');
118 118
         $validateMethod->addParameter('model', null)
119
-             ->setType('\Formularium\Model');
119
+                ->setType('\Formularium\Model');
120 120
 
121 121
         if ($classCallback) {
122 122
             $classCallback($class);
Please login to merge, or discard this patch.
Formularium/StringUtil.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -14,8 +14,8 @@  discard block
 block discarded – undo
14 14
      */
15 15
     public static function startsWith($haystack, $needles)
16 16
     {
17
-        foreach ((array) $needles as $needle) {
18
-            if ((string) $needle !== '' && strncmp($haystack, $needle, strlen($needle)) === 0) {
17
+        foreach ((array)$needles as $needle) {
18
+            if ((string)$needle !== '' && strncmp($haystack, $needle, strlen($needle)) === 0) {
19 19
                 return true;
20 20
             }
21 21
         }
@@ -32,8 +32,8 @@  discard block
 block discarded – undo
32 32
      */
33 33
     public static function endsWith($haystack, $needles)
34 34
     {
35
-        foreach ((array) $needles as $needle) {
36
-            if ($needle !== '' && substr($haystack, -strlen($needle)) === (string) $needle) {
35
+        foreach ((array)$needles as $needle) {
36
+            if ($needle !== '' && substr($haystack, -strlen($needle)) === (string)$needle) {
37 37
                 return true;
38 38
             }
39 39
         }
Please login to merge, or discard this patch.
util/makeRenderable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 
9 9
 $shortopts = "v:p::t::";
10 10
 $longopts = array(
11
-    "renderable:",     // Required value
11
+    "renderable:", // Required value
12 12
     "framework::",
13 13
     "namespace::",
14 14
     "path::",
Please login to merge, or discard this patch.
Formularium/CodeGenerator/SQL/DatatypeGenerator/DatatypeGenerator_bool.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,6 +30,6 @@
 block discarded – undo
30 30
 
31 31
     public function field(CodeGenerator $generator, Field $field)
32 32
     {
33
-        return $field->getName() . ' '. $this->_type($generator);
33
+        return $field->getName() . ' ' . $this->_type($generator);
34 34
     }
35 35
 }
Please login to merge, or discard this patch.
Formularium/CodeGenerator/GraphQL/CodeGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@
 block discarded – undo
24 24
 
25 25
         $renderables = $model->getRenderables();
26 26
         $r = array_map(
27
-            function ($name, $value) {
27
+            function($name, $value) {
28 28
                 $v = $value;
29 29
                 if (is_string($value)) {
30 30
                     $v = '"' . str_replace('"', '\\"', $value) . '"';
Please login to merge, or discard this patch.
Formularium/Model.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -341,7 +341,7 @@
 block discarded – undo
341 341
     public function serialize(): array
342 342
     {
343 343
         $fields = array_map(
344
-            function (Field $f) {
344
+            function(Field $f) {
345 345
                 return [
346 346
                     'datatype' => $f->getDatatype()->getName(),
347 347
                     'validators' => $f->getValidators(),
Please login to merge, or discard this patch.
Formularium/CodeGenerator/LaravelEloquent/CodeGenerator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
         return implode(
18 18
             ";\n",
19 19
             array_map(
20
-                function ($f) {
20
+                function($f) {
21 21
                     return '$table->' . $f;
22 22
                 },
23 23
                 $this->fields($model)
Please login to merge, or discard this patch.
Formularium/Frontend/HTML/Framework.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
             $atts,
121 121
             join(
122 122
                 '',
123
-                array_map(function ($e) {
123
+                array_map(function($e) {
124 124
                     return $e->__toString();
125 125
                 }, $elements)
126 126
             ),
@@ -130,7 +130,7 @@  discard block
 block discarded – undo
130 130
 
131 131
     public function editableCompose(\Formularium\Model $m, array $elements, string $previousCompose, FrameworkComposer $composer): string
132 132
     {
133
-        return join('', array_map(function ($e) {
133
+        return join('', array_map(function($e) {
134 134
             return $e->__toString();
135 135
         }, $elements));
136 136
     }
Please login to merge, or discard this patch.
Formularium/Frontend/Vuetify/RenderableVuetifyInputTrait.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
     {
28 28
         // add extra classes
29 29
         $previous->walk(
30
-            function ($e) use ($field) {
30
+            function($e) use ($field) {
31 31
                 if ($e instanceof HTMLNode) {
32 32
                     if ($e->getTag() === 'input') {
33 33
                         if (($e->getAttribute('type')[0] ?? '') === 'radio') {
@@ -89,7 +89,7 @@  discard block
 block discarded – undo
89 89
 
90 90
         $options = [];
91 91
         $select->walk(
92
-            function (HTMLNode $e) use (&$options) {
92
+            function(HTMLNode $e) use (&$options) {
93 93
                 if ($e->getTag() == 'option') {
94 94
                     $idx = $e->getAttribute('value')[0] ?? '';
95 95
                     $text = $e->getContent()[0] ?? '';
Please login to merge, or discard this patch.