@@ -52,8 +52,7 @@ discard block |
||
52 | 52 | * @class StrictTransportSecurityPolicy |
53 | 53 | * @package Platine\Framework\Security\Policy |
54 | 54 | */ |
55 | -class StrictTransportSecurityPolicy extends AbstractPolicy |
|
56 | -{ |
|
55 | +class StrictTransportSecurityPolicy extends AbstractPolicy { |
|
57 | 56 | /** |
58 | 57 | * {@inheritdoc} |
59 | 58 | */ |
@@ -63,12 +62,12 @@ discard block |
||
63 | 62 | $headers[] = $this->maxAge(); |
64 | 63 | |
65 | 64 | $includeSubDomains = $this->configurations['include-sub-domains'] ?? false; |
66 | - if ($includeSubDomains) { |
|
65 | + if ($includeSubDomains) { |
|
67 | 66 | $headers[] = 'includeSubDomains'; |
68 | 67 | } |
69 | 68 | |
70 | 69 | $preload = $this->configurations['preload'] ?? false; |
71 | - if ($preload) { |
|
70 | + if ($preload) { |
|
72 | 71 | $headers[] = 'preload'; |
73 | 72 | } |
74 | 73 |
@@ -59,8 +59,7 @@ discard block |
||
59 | 59 | * @class BaseCommand |
60 | 60 | * @package Platine\Framework\Console |
61 | 61 | */ |
62 | -abstract class BaseCommand extends Command |
|
63 | -{ |
|
62 | +abstract class BaseCommand extends Command { |
|
64 | 63 | /** |
65 | 64 | * The Application instance |
66 | 65 | * @var Application |
@@ -87,7 +86,7 @@ discard block |
||
87 | 86 | public function __construct( |
88 | 87 | Application $application, |
89 | 88 | Filesystem $filesystem |
90 | - ) { |
|
89 | + ) { |
|
91 | 90 | parent::__construct('make', 'Command to generate class skeleton'); |
92 | 91 | $this->application = $application; |
93 | 92 | $this->filesystem = $filesystem; |
@@ -101,7 +100,7 @@ discard block |
||
101 | 100 | */ |
102 | 101 | public function getClassBaseName($fullClassName): string |
103 | 102 | { |
104 | - if (is_object($fullClassName)) { |
|
103 | + if (is_object($fullClassName)) { |
|
105 | 104 | $fullClassName = get_class($fullClassName); |
106 | 105 | } |
107 | 106 | |
@@ -138,7 +137,7 @@ discard block |
||
138 | 137 | $classClean = ltrim($name, '/\\'); |
139 | 138 | $class = str_replace('/', '\\', $classClean); |
140 | 139 | |
141 | - if (Str::startsWith($this->rootNamespace, $class)) { |
|
140 | + if (Str::startsWith($this->rootNamespace, $class)) { |
|
142 | 141 | return $class; |
143 | 142 | } |
144 | 143 | |
@@ -203,9 +202,9 @@ discard block |
||
203 | 202 | { |
204 | 203 | $file = $this->filesystem->file($path); |
205 | 204 | $location = $file->getLocation(); |
206 | - if (!empty($location)) { |
|
205 | + if (!empty($location)) { |
|
207 | 206 | $directory = $this->filesystem->directory($location); |
208 | - if (!$directory->exists()) { |
|
207 | + if (!$directory->exists()) { |
|
209 | 208 | $directory->create('', 0775, true); |
210 | 209 | } |
211 | 210 | } |
@@ -220,13 +219,13 @@ discard block |
||
220 | 219 | */ |
221 | 220 | public function setReaderContent(Reader $reader, string $filename, $data): void |
222 | 221 | { |
223 | - if (is_array($data)) { |
|
222 | + if (is_array($data)) { |
|
224 | 223 | $data = implode(PHP_EOL, $data); |
225 | 224 | } |
226 | 225 | file_put_contents($filename, $data, FILE_APPEND); |
227 | 226 | |
228 | 227 | $resource = fopen($filename, 'r'); |
229 | - if ($resource === false) { |
|
228 | + if ($resource === false) { |
|
230 | 229 | throw new InvalidArgumentException(sprintf('Could not open filename [%s] for reading', $filename)); |
231 | 230 | } |
232 | 231 | $reader->setStream($resource); |
@@ -87,7 +87,7 @@ |
||
87 | 87 | ) { |
88 | 88 | parent::__construct($application, $filesystem); |
89 | 89 | $this->setName('make:provider') |
90 | - ->setDescription('Command to generate new service provider class'); |
|
90 | + ->setDescription('Command to generate new service provider class'); |
|
91 | 91 | } |
92 | 92 | |
93 | 93 | /** |
@@ -57,8 +57,7 @@ discard block |
||
57 | 57 | * @class MakeProviderCommand |
58 | 58 | * @package Platine\Framework\Console\Command |
59 | 59 | */ |
60 | -class MakeProviderCommand extends MakeCommand |
|
61 | -{ |
|
60 | +class MakeProviderCommand extends MakeCommand { |
|
62 | 61 | /** |
63 | 62 | * {@inheritdoc} |
64 | 63 | */ |
@@ -84,7 +83,7 @@ discard block |
||
84 | 83 | public function __construct( |
85 | 84 | Application $application, |
86 | 85 | Filesystem $filesystem |
87 | - ) { |
|
86 | + ) { |
|
88 | 87 | parent::__construct($application, $filesystem); |
89 | 88 | $this->setName('make:provider') |
90 | 89 | ->setDescription('Command to generate new service provider class'); |
@@ -158,7 +157,7 @@ discard block |
||
158 | 157 | protected function getBootBody(string $content): string |
159 | 158 | { |
160 | 159 | $result = ''; |
161 | - if ($this->useBoot) { |
|
160 | + if ($this->useBoot) { |
|
162 | 161 | $result = <<<EOF |
163 | 162 | /** |
164 | 163 | * {@inheritdoc} |
@@ -182,7 +181,7 @@ discard block |
||
182 | 181 | protected function getAddRoutesBody(string $content): string |
183 | 182 | { |
184 | 183 | $result = ''; |
185 | - if ($this->addRoutes) { |
|
184 | + if ($this->addRoutes) { |
|
186 | 185 | $result = <<<EOF |
187 | 186 | /** |
188 | 187 | * {@inheritdoc} |
@@ -203,7 +202,7 @@ discard block |
||
203 | 202 | */ |
204 | 203 | protected function getUsesContent(): string |
205 | 204 | { |
206 | - if (!$this->addRoutes) { |
|
205 | + if (!$this->addRoutes) { |
|
207 | 206 | return ''; |
208 | 207 | } |
209 | 208 |
@@ -61,8 +61,7 @@ discard block |
||
61 | 61 | * @package Platine\Framework\Console\Command |
62 | 62 | * @template T |
63 | 63 | */ |
64 | -class RouteCommand extends Command |
|
65 | -{ |
|
64 | +class RouteCommand extends Command { |
|
66 | 65 | /** |
67 | 66 | * The configuration instance |
68 | 67 | * @var Config<T> |
@@ -77,8 +76,7 @@ discard block |
||
77 | 76 | * @param Config<T> $config |
78 | 77 | * @param Router $router |
79 | 78 | */ |
80 | - public function __construct(Application $application, Config $config, Router $router) |
|
81 | - { |
|
79 | + public function __construct(Application $application, Config $config, Router $router) { |
|
82 | 80 | parent::__construct('route', 'Command to manage route'); |
83 | 81 | |
84 | 82 | $this->addOption('-l|--list', 'Show route list', null, false); |
@@ -91,9 +89,8 @@ discard block |
||
91 | 89 | /** |
92 | 90 | * {@inheritdoc} |
93 | 91 | */ |
94 | - public function execute() |
|
95 | - { |
|
96 | - if ($this->getOptionValue('list')) { |
|
92 | + public function execute() { |
|
93 | + if ($this->getOptionValue('list')) { |
|
97 | 94 | $this->showRouteList(); |
98 | 95 | } |
99 | 96 | } |
@@ -113,13 +110,13 @@ discard block |
||
113 | 110 | //Load providers routes |
114 | 111 | /** @var ServiceProvider[] $providers */ |
115 | 112 | $providers = $this->application->getProviders(); |
116 | - foreach ($providers as $provider) { |
|
113 | + foreach ($providers as $provider) { |
|
117 | 114 | $provider->addRoutes($this->router); |
118 | 115 | } |
119 | 116 | |
120 | 117 | $routes = $this->router->routes()->all(); |
121 | 118 | $rows = []; |
122 | - foreach ($routes as /** @var Route $route */ $route) { |
|
119 | + foreach ($routes as /** @var Route $route */ $route) { |
|
123 | 120 | $handler = Str::stringify($route->getHandler()); |
124 | 121 | $rows[] = [ |
125 | 122 | 'name' => $route->getName(), |
@@ -56,8 +56,7 @@ discard block |
||
56 | 56 | * @package Platine\Framework\Console\Command |
57 | 57 | * @template T |
58 | 58 | */ |
59 | -class ConfigCommand extends Command |
|
60 | -{ |
|
59 | +class ConfigCommand extends Command { |
|
61 | 60 | /** |
62 | 61 | * The configuration instance |
63 | 62 | * @var Config<T> |
@@ -68,8 +67,7 @@ discard block |
||
68 | 67 | * Create new instance |
69 | 68 | * @param Config<T> $config |
70 | 69 | */ |
71 | - public function __construct(Config $config) |
|
72 | - { |
|
70 | + public function __construct(Config $config) { |
|
73 | 71 | parent::__construct('config', 'Command to manage configuration'); |
74 | 72 | |
75 | 73 | $this->addOption('-l|--list', 'List the configuration', '', false); |
@@ -81,9 +79,8 @@ discard block |
||
81 | 79 | /** |
82 | 80 | * {@inheritdoc} |
83 | 81 | */ |
84 | - public function execute() |
|
85 | - { |
|
86 | - if ($this->getOptionValue('list')) { |
|
82 | + public function execute() { |
|
83 | + if ($this->getOptionValue('list')) { |
|
87 | 84 | $this->showConfigList(); |
88 | 85 | } |
89 | 86 | } |
@@ -102,13 +99,13 @@ discard block |
||
102 | 99 | $items = (array) $this->config->get($type, []); |
103 | 100 | /** @var array<int, array<int, array<string, string>>> $rows*/ |
104 | 101 | $rows = []; |
105 | - foreach ($items as $name => $value) { |
|
102 | + foreach ($items as $name => $value) { |
|
106 | 103 | $valueStr = Str::stringify($value); |
107 | - if (is_int($name)) { |
|
104 | + if (is_int($name)) { |
|
108 | 105 | $rows[] = [ |
109 | 106 | 'value' => $valueStr |
110 | 107 | ]; |
111 | - } else { |
|
108 | + } else { |
|
112 | 109 | $rows[] = [ |
113 | 110 | 'name' => $name, |
114 | 111 | 'value' => $valueStr |
@@ -84,7 +84,7 @@ |
||
84 | 84 | ) { |
85 | 85 | parent::__construct($application, $filesystem); |
86 | 86 | $this->setName('make:validator') |
87 | - ->setDescription('Command to generate new validator class'); |
|
87 | + ->setDescription('Command to generate new validator class'); |
|
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
@@ -171,8 +171,8 @@ |
||
171 | 171 | { |
172 | 172 | $content = parent::createClass(); |
173 | 173 | |
174 | - $formParameter = $this->replaceFormParameterName($content); |
|
175 | - $validationDataBody = $this->getValidationDataBody($formParameter); |
|
174 | + $formParameter = $this->replaceFormParameterName($content); |
|
175 | + $validationDataBody = $this->getValidationDataBody($formParameter); |
|
176 | 176 | |
177 | 177 | return $this->getValidationRulesBody($validationDataBody); |
178 | 178 | } |
@@ -60,8 +60,7 @@ discard block |
||
60 | 60 | * @class MakeValidatorCommand |
61 | 61 | * @package Platine\Framework\Console\Command |
62 | 62 | */ |
63 | -class MakeValidatorCommand extends MakeCommand |
|
64 | -{ |
|
63 | +class MakeValidatorCommand extends MakeCommand { |
|
65 | 64 | /** |
66 | 65 | * {@inheritdoc} |
67 | 66 | */ |
@@ -81,7 +80,7 @@ discard block |
||
81 | 80 | public function __construct( |
82 | 81 | Application $application, |
83 | 82 | Filesystem $filesystem |
84 | - ) { |
|
83 | + ) { |
|
85 | 84 | parent::__construct($application, $filesystem); |
86 | 85 | $this->setName('make:validator') |
87 | 86 | ->setDescription('Command to generate new validator class'); |
@@ -98,7 +97,7 @@ discard block |
||
98 | 97 | $io = $this->io(); |
99 | 98 | |
100 | 99 | $paramClass = $io->prompt('Enter the form parameter full class name', null); |
101 | - while (!class_exists($paramClass)) { |
|
100 | + while (!class_exists($paramClass)) { |
|
102 | 101 | $paramClass = $io->prompt('Class does not exists, please enter the form parameter full class name', null); |
103 | 102 | } |
104 | 103 | |
@@ -187,12 +186,12 @@ discard block |
||
187 | 186 | $reflection = new ReflectionClass($this->paramClass); |
188 | 187 | $methods = $reflection->getMethods(ReflectionMethod::IS_PUBLIC); |
189 | 188 | |
190 | - if (!empty($methods)) { |
|
191 | - foreach ($methods as /** @var ReflectionMethod $method */ $method) { |
|
189 | + if (!empty($methods)) { |
|
190 | + foreach ($methods as /** @var ReflectionMethod $method */ $method) { |
|
192 | 191 | $returnType = $method->getReturnType(); |
193 | - if ($returnType !== null) { |
|
192 | + if ($returnType !== null) { |
|
194 | 193 | $name = $method->name; |
195 | - if (substr($name, 0, 3) === 'get' && $name !== 'getDefault') { |
|
194 | + if (substr($name, 0, 3) === 'get' && $name !== 'getDefault') { |
|
196 | 195 | $field = str_replace('get', '', $name); |
197 | 196 | $list[Str::snake($field)] = $name; |
198 | 197 | } |
@@ -211,7 +210,7 @@ discard block |
||
211 | 210 | protected function getValidationRulesBody(string $content): string |
212 | 211 | { |
213 | 212 | $result = ''; |
214 | - foreach ($this->getParameterProperties() as $field => $getter) { |
|
213 | + foreach ($this->getParameterProperties() as $field => $getter) { |
|
215 | 214 | $result .= <<<EOF |
216 | 215 | \$this->addRules('$field', [ |
217 | 216 | |
@@ -231,7 +230,7 @@ discard block |
||
231 | 230 | protected function getValidationDataBody(string $content): string |
232 | 231 | { |
233 | 232 | $result = ''; |
234 | - foreach ($this->getParameterProperties() as $field => $getter) { |
|
233 | + foreach ($this->getParameterProperties() as $field => $getter) { |
|
235 | 234 | $result .= <<<EOF |
236 | 235 | \$this->addData('$field', \$this->param->$getter()); |
237 | 236 |
@@ -74,12 +74,12 @@ |
||
74 | 74 | ) { |
75 | 75 | parent::__construct($application, $filesystem); |
76 | 76 | $this->setName('make:crud') |
77 | - ->setDescription('Command to generate platine CRUD action'); |
|
77 | + ->setDescription('Command to generate platine CRUD action'); |
|
78 | 78 | } |
79 | 79 | |
80 | - /** |
|
81 | - * {@inheritdoc} |
|
82 | - */ |
|
80 | + /** |
|
81 | + * {@inheritdoc} |
|
82 | + */ |
|
83 | 83 | public function getClassTemplate(): string |
84 | 84 | { |
85 | 85 | return <<<EOF |
@@ -56,8 +56,7 @@ discard block |
||
56 | 56 | * @class MakeCrudActionCommand |
57 | 57 | * @package Platine\Framework\Console\Command |
58 | 58 | */ |
59 | -class MakeCrudActionCommand extends BaseMakeActionCommand |
|
60 | -{ |
|
59 | +class MakeCrudActionCommand extends BaseMakeActionCommand { |
|
61 | 60 | /** |
62 | 61 | * {@inheritdoc} |
63 | 62 | */ |
@@ -71,7 +70,7 @@ discard block |
||
71 | 70 | public function __construct( |
72 | 71 | Application $application, |
73 | 72 | Filesystem $filesystem |
74 | - ) { |
|
73 | + ) { |
|
75 | 74 | parent::__construct($application, $filesystem); |
76 | 75 | $this->setName('make:crud') |
77 | 76 | ->setDescription('Command to generate platine CRUD action'); |
@@ -159,22 +158,22 @@ discard block |
||
159 | 158 | |
160 | 159 | $replace = ''; |
161 | 160 | $fields = $this->getFieldsPropertyBody(); |
162 | - if (!empty($fields)) { |
|
161 | + if (!empty($fields)) { |
|
163 | 162 | $replace .= $fields . PHP_EOL . PHP_EOL; |
164 | 163 | } |
165 | 164 | |
166 | 165 | $orderFields = $this->getOrderByFieldsPropertyBody(); |
167 | - if (!empty($orderFields)) { |
|
166 | + if (!empty($orderFields)) { |
|
168 | 167 | $replace .= $orderFields . PHP_EOL . PHP_EOL; |
169 | 168 | } |
170 | 169 | |
171 | 170 | $uniqueFields = $this->getUniqueFieldsPropertyBody(); |
172 | - if (!empty($uniqueFields)) { |
|
171 | + if (!empty($uniqueFields)) { |
|
173 | 172 | $replace .= $uniqueFields . PHP_EOL . PHP_EOL; |
174 | 173 | } |
175 | 174 | |
176 | 175 | $templatePrefix = $this->getTemplatePrefix(); |
177 | - if (!empty($templatePrefix)) { |
|
176 | + if (!empty($templatePrefix)) { |
|
178 | 177 | $replace .= <<<EOF |
179 | 178 | /** |
180 | 179 | * {@inheritdoc} |
@@ -186,7 +185,7 @@ discard block |
||
186 | 185 | } |
187 | 186 | |
188 | 187 | $routePrefix = $this->getRoutePrefix(); |
189 | - if (!empty($routePrefix)) { |
|
188 | + if (!empty($routePrefix)) { |
|
190 | 189 | $replace .= <<<EOF |
191 | 190 | /** |
192 | 191 | * {@inheritdoc} |
@@ -199,7 +198,7 @@ discard block |
||
199 | 198 | |
200 | 199 | $entityContextName = $this->getEntityContextKey(true); |
201 | 200 | $optionEntityContext = $this->getOptionForArgument('--entity-context-key'); |
202 | - if ($optionEntityContext !== null && $optionEntityContext->getDefault() !== $entityContextName) { |
|
201 | + if ($optionEntityContext !== null && $optionEntityContext->getDefault() !== $entityContextName) { |
|
203 | 202 | $replace .= <<<EOF |
204 | 203 | /** |
205 | 204 | * {@inheritdoc} |
@@ -211,7 +210,7 @@ discard block |
||
211 | 210 | } |
212 | 211 | |
213 | 212 | $messages = $this->getMessageTemplates(); |
214 | - if (!empty($messages)) { |
|
213 | + if (!empty($messages)) { |
|
215 | 214 | $replace .= $messages; |
216 | 215 | } |
217 | 216 | |
@@ -241,13 +240,13 @@ discard block |
||
241 | 240 | 'process-error', |
242 | 241 | ]; |
243 | 242 | |
244 | - foreach ($messages as $val) { |
|
243 | + foreach ($messages as $val) { |
|
245 | 244 | $optionName = sprintf('--message-%s', $val); |
246 | 245 | $optionKey = sprintf('message%s', Str::camel($val, false)); |
247 | 246 | |
248 | 247 | $message = $this->getMessage($optionKey); |
249 | 248 | $option = $this->getOptionForArgument($optionName); |
250 | - if ($option !== null && addslashes($option->getDefault()) !== $message) { |
|
249 | + if ($option !== null && addslashes($option->getDefault()) !== $message) { |
|
251 | 250 | $replace .= <<<EOF |
252 | 251 | /** |
253 | 252 | * {@inheritdoc} |
@@ -269,7 +268,7 @@ discard block |
||
269 | 268 | protected function getFieldsPropertyBody(): string |
270 | 269 | { |
271 | 270 | $fields = $this->getOptionValue('fields'); |
272 | - if ($fields === null) { |
|
271 | + if ($fields === null) { |
|
273 | 272 | return ''; |
274 | 273 | } |
275 | 274 | |
@@ -294,7 +293,7 @@ discard block |
||
294 | 293 | { |
295 | 294 | $fields = $this->getOptionValue('fieldsOrder'); |
296 | 295 | |
297 | - if ($fields === null) { |
|
296 | + if ($fields === null) { |
|
298 | 297 | return ''; |
299 | 298 | } |
300 | 299 | |
@@ -319,7 +318,7 @@ discard block |
||
319 | 318 | { |
320 | 319 | $fields = $this->getOptionValue('fieldsUnique'); |
321 | 320 | |
322 | - if ($fields === null) { |
|
321 | + if ($fields === null) { |
|
323 | 322 | return ''; |
324 | 323 | } |
325 | 324 |
@@ -82,7 +82,7 @@ |
||
82 | 82 | ) { |
83 | 83 | parent::__construct($application, $filesystem); |
84 | 84 | $this->setName('make:enum') |
85 | - ->setDescription('Command to generate new enumeration class'); |
|
85 | + ->setDescription('Command to generate new enumeration class'); |
|
86 | 86 | } |
87 | 87 | |
88 | 88 | /** |
@@ -58,8 +58,7 @@ discard block |
||
58 | 58 | * @class MakeEnumCommand |
59 | 59 | * @package Platine\Framework\Console\Command |
60 | 60 | */ |
61 | -class MakeEnumCommand extends MakeCommand |
|
62 | -{ |
|
61 | +class MakeEnumCommand extends MakeCommand { |
|
63 | 62 | /** |
64 | 63 | * {@inheritdoc} |
65 | 64 | */ |
@@ -79,7 +78,7 @@ discard block |
||
79 | 78 | public function __construct( |
80 | 79 | Application $application, |
81 | 80 | Filesystem $filesystem |
82 | - ) { |
|
81 | + ) { |
|
83 | 82 | parent::__construct($application, $filesystem); |
84 | 83 | $this->setName('make:enum') |
85 | 84 | ->setDescription('Command to generate new enumeration class'); |
@@ -97,30 +96,30 @@ discard block |
||
97 | 96 | $io = $this->io(); |
98 | 97 | $writer->boldYellow('Enter the enumeration list (empty value to finish):', true); |
99 | 98 | $value = ''; |
100 | - while ($value !== null) { |
|
99 | + while ($value !== null) { |
|
101 | 100 | $value = $io->prompt('Enum name', null, null, false); |
102 | 101 | |
103 | - if (!empty($value)) { |
|
102 | + if (!empty($value)) { |
|
104 | 103 | $value = trim($value); |
105 | 104 | $name = preg_replace('#([^a-z0-9]+)#i', '_', $value); |
106 | - if ($name !== null && substr($name, -1) == '_') { |
|
105 | + if ($name !== null && substr($name, -1) == '_') { |
|
107 | 106 | $name = substr($name, 0, -1); |
108 | 107 | } |
109 | - if (is_string($name)) { |
|
108 | + if (is_string($name)) { |
|
110 | 109 | $properties[] = Str::upper($name); |
111 | 110 | } |
112 | 111 | } |
113 | 112 | } |
114 | 113 | |
115 | - if (!empty($properties)) { |
|
116 | - foreach ($properties as $name) { |
|
114 | + if (!empty($properties)) { |
|
115 | + foreach ($properties as $name) { |
|
117 | 116 | $value = $io->prompt( |
118 | 117 | sprintf('Enumeration value for [%s]', $name), |
119 | 118 | null, |
120 | 119 | null, |
121 | 120 | false |
122 | 121 | ); |
123 | - if (!empty($value)) { |
|
122 | + if (!empty($value)) { |
|
124 | 123 | $this->enumerations[$name] = $value; |
125 | 124 | } |
126 | 125 | } |
@@ -171,7 +170,7 @@ discard block |
||
171 | 170 | protected function getEnumerationBody(string $content): string |
172 | 171 | { |
173 | 172 | $result = ''; |
174 | - foreach ($this->enumerations as $name => $value) { |
|
173 | + foreach ($this->enumerations as $name => $value) { |
|
175 | 174 | $result .= $this->getEnumerationTemplate($name, $value); |
176 | 175 | } |
177 | 176 |
@@ -81,7 +81,7 @@ |
||
81 | 81 | ) { |
82 | 82 | parent::__construct($application, $filesystem); |
83 | 83 | $this->setName('make:repository') |
84 | - ->setDescription('Command to generate new repository class'); |
|
84 | + ->setDescription('Command to generate new repository class'); |
|
85 | 85 | } |
86 | 86 | |
87 | 87 | /** |
@@ -57,8 +57,7 @@ discard block |
||
57 | 57 | * @class MakeRepositoryCommand |
58 | 58 | * @package Platine\Framework\Console\Command |
59 | 59 | */ |
60 | -class MakeRepositoryCommand extends MakeCommand |
|
61 | -{ |
|
60 | +class MakeRepositoryCommand extends MakeCommand { |
|
62 | 61 | /** |
63 | 62 | * {@inheritdoc} |
64 | 63 | */ |
@@ -78,7 +77,7 @@ discard block |
||
78 | 77 | public function __construct( |
79 | 78 | Application $application, |
80 | 79 | Filesystem $filesystem |
81 | - ) { |
|
80 | + ) { |
|
82 | 81 | parent::__construct($application, $filesystem); |
83 | 82 | $this->setName('make:repository') |
84 | 83 | ->setDescription('Command to generate new repository class'); |
@@ -95,7 +94,7 @@ discard block |
||
95 | 94 | $io = $this->io(); |
96 | 95 | |
97 | 96 | $entityClass = $io->prompt('Enter the entity full class name', null); |
98 | - while (!class_exists($entityClass)) { |
|
97 | + while (!class_exists($entityClass)) { |
|
99 | 98 | $entityClass = $io->prompt('Class does not exists, please enter the entity full class name', null); |
100 | 99 | } |
101 | 100 |