src/Kunstmaan/GeneratorBundle/Helper/InputAssistant.php 1 location
|
@@ 220-224 (lines=5) @@
|
217 |
|
break; |
218 |
|
} |
219 |
|
|
220 |
|
if (!preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $prefix)) { |
221 |
|
$this->output->writeln(sprintf('<bg=red> "%s" contains invalid characters</>', $prefix)); |
222 |
|
$prefix = $text = null; |
223 |
|
|
224 |
|
continue; |
225 |
|
} |
226 |
|
} |
227 |
|
|
src/Kunstmaan/GeneratorBundle/Command/KunstmaanGenerateCommand.php 1 location
|
@@ 180-184 (lines=5) @@
|
177 |
|
} |
178 |
|
|
179 |
|
$output = $this->assistant->getOutput(); |
180 |
|
if (!preg_match('/^[a-zA-Z_\x7f-\xff][a-zA-Z0-9_\x7f-\xff]*$/', $prefix)) { |
181 |
|
$output->writeln(sprintf('<bg=red> "%s" contains invalid characters</>', $prefix)); |
182 |
|
$prefix = $text = null; |
183 |
|
|
184 |
|
continue; |
185 |
|
} |
186 |
|
|
187 |
|
$this->assistant->setOption('prefix', $prefix); |