Passed
Push — master ( 84fd91...b967da )
by Bruno
07:22
created
Formularium/DatatypeFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -252,7 +252,7 @@
 block discarded – undo
252 252
     
253 253
         $datatype = $codeData['datatype'];
254 254
         $retval = [];
255
-        $filename =  $path . "/Datatype_{$codeData['datatypeLower']}.php";
255
+        $filename = $path . "/Datatype_{$codeData['datatypeLower']}.php";
256 256
         if (!file_exists($filename)) {
257 257
             $retval['code'] = "Created {$datatype}.";
258 258
             file_put_contents($filename, $codeData['code']);
Please login to merge, or discard this patch.
Formularium/ValidatorFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -135,7 +135,7 @@
 block discarded – undo
135 135
 
136 136
         $name = $codeData['validator'];
137 137
         $retval = [];
138
-        $filename =  $path . "/{$name}.php";
138
+        $filename = $path . "/{$name}.php";
139 139
         if (!file_exists($filename)) {
140 140
             $retval['code'] = "Created validator {$name}.";
141 141
             file_put_contents($filename, $codeData['code']);
Please login to merge, or discard this patch.
util/makeValidator.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 $shortopts = "v:p::t::";
6 6
 $longopts = array(
7
-    "validator:",     // Required value
7
+    "validator:", // Required value
8 8
     "namespace::",
9 9
     "path::",
10 10
     "test-path::"
@@ -17,8 +17,8 @@  discard block
 block discarded – undo
17 17
 
18 18
 $validator = $options['validator'];
19 19
 $namespace = $options['namespace'] ?? 'Formularium\Datatype';
20
-$path = $options['path'] ?? "Formularium/Validator/" ;
21
-$testpath = $options['testpath'] ?? "tests/Validator" ;
20
+$path = $options['path'] ?? "Formularium/Validator/";
21
+$testpath = $options['testpath'] ?? "tests/Validator";
22 22
 
23 23
 $code = \Formularium\ValidatorFactory::generate(
24 24
     $validator,
Please login to merge, or discard this patch.