@@ -63,11 +63,11 @@ |
||
63 | 63 | */ |
64 | 64 | public function execute(array $params) |
65 | 65 | { |
66 | - $this->component = 'Component'; |
|
67 | - $this->directory = 'Components'; |
|
68 | - $this->template = 'component.tpl.php'; |
|
69 | - $this->classNameLang = 'CLI.generator.className.component'; |
|
70 | - $params = array_merge($params, ['suffix' => null]); |
|
66 | + $this->component = 'Component'; |
|
67 | + $this->directory = 'Components'; |
|
68 | + $this->template = 'component.tpl.php'; |
|
69 | + $this->classNameLang = 'CLI.generator.className.component'; |
|
70 | + $params = array_merge($params, ['suffix' => null]); |
|
71 | 71 | |
72 | 72 | $this->task('Creation du composant')->eol(); |
73 | 73 |
@@ -98,10 +98,10 @@ discard block |
||
98 | 98 | |
99 | 99 | /** |
100 | 100 | * Exécute la generation. |
101 | - * |
|
101 | + * |
|
102 | 102 | * @param array<int|string, string|null> $params |
103 | - * |
|
104 | - * @deprecated use generateClass() instead |
|
103 | + * |
|
104 | + * @deprecated use generateClass() instead |
|
105 | 105 | */ |
106 | 106 | protected function runGeneration(array $params): void |
107 | 107 | { |
@@ -276,8 +276,8 @@ discard block |
||
276 | 276 | |
277 | 277 | /** |
278 | 278 | * Exécute les pseudo-variables contenues dans le fichier de vue. |
279 | - * |
|
280 | - * @param string $class nom de classe avec namespace ou vue avec namespace. |
|
279 | + * |
|
280 | + * @param string $class nom de classe avec namespace ou vue avec namespace. |
|
281 | 281 | */ |
282 | 282 | protected function parseTemplate(string $class, array $search = [], array $replace = [], array $data = []): string |
283 | 283 | { |
@@ -318,7 +318,7 @@ discard block |
||
318 | 318 | { |
319 | 319 | $namespace = trim(str_replace('/', '\\', $this->option('namespace', APP_NAMESPACE)), '\\'); |
320 | 320 | |
321 | - // Vérifier que le namespace est réellement défini et que nous ne sommes pas en train de taper du charabia. |
|
321 | + // Vérifier que le namespace est réellement défini et que nous ne sommes pas en train de taper du charabia. |
|
322 | 322 | $base = service('autoloader')->getNamespace($namespace); |
323 | 323 | |
324 | 324 | if (! $base = reset($base)) { |
@@ -378,7 +378,7 @@ discard block |
||
378 | 378 | */ |
379 | 379 | private function normalizeInputClassName(): string |
380 | 380 | { |
381 | - // Obtient le nom de la classe à partir de l'entrée. |
|
381 | + // Obtient le nom de la classe à partir de l'entrée. |
|
382 | 382 | $class = $this->params[0] ?? $this->params['name'] ?? null; |
383 | 383 | |
384 | 384 | if ($class === null && $this->hasClassName) { |
@@ -402,7 +402,7 @@ discard block |
||
402 | 402 | $class = $matches[1] . ucfirst($matches[2]); |
403 | 403 | } |
404 | 404 | |
405 | - $suffix = $this->option('suffix') ?? array_key_exists('suffix', $this->params); |
|
405 | + $suffix = $this->option('suffix') ?? array_key_exists('suffix', $this->params); |
|
406 | 406 | |
407 | 407 | if ($this->enabledSuffixing && $suffix && preg_match($pattern, $class) !== 1) { |
408 | 408 | $class .= ucfirst($component); |