@@ -252,7 +252,7 @@ |
||
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']); |
@@ -135,7 +135,7 @@ |
||
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']); |
@@ -4,7 +4,7 @@ discard block |
||
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 |
||
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, |