@@ -58,9 +58,9 @@ discard block |
||
| 58 | 58 | $console->addCommand(Command\MiddlewareCommand::class); |
| 59 | 59 | $console->addCommand(Command\MigrationCommand::class, true); |
| 60 | 60 | |
| 61 | - try { |
|
| 61 | + try{ |
|
| 62 | 62 | $defaultNamespace = (new ReflectionClass($this->kernel))->getNamespaceName(); |
| 63 | - } catch (ReflectionException $e) { |
|
| 63 | + }catch (ReflectionException $e){ |
|
| 64 | 64 | $defaultNamespace = ''; |
| 65 | 65 | } |
| 66 | 66 | |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | * Base directory for generated classes, class will be automatically localed into sub directory |
| 80 | 80 | * using given namespace. |
| 81 | 81 | */ |
| 82 | - 'directory' => directory('app') . 'src/', |
|
| 82 | + 'directory' => directory('app').'src/', |
|
| 83 | 83 | |
| 84 | 84 | /* |
| 85 | 85 | * Default namespace to be applied for every generated class. By default uses Kernel namespace |
@@ -58,9 +58,12 @@ |
||
| 58 | 58 | $console->addCommand(Command\MiddlewareCommand::class); |
| 59 | 59 | $console->addCommand(Command\MigrationCommand::class, true); |
| 60 | 60 | |
| 61 | - try { |
|
| 61 | + try |
|
| 62 | + { |
|
| 62 | 63 | $defaultNamespace = (new ReflectionClass($this->kernel))->getNamespaceName(); |
| 63 | - } catch (ReflectionException $e) { |
|
| 64 | + } |
|
| 65 | + catch (ReflectionException $e) |
|
| 66 | + { |
|
| 64 | 67 | $defaultNamespace = ''; |
| 65 | 68 | } |
| 66 | 69 | |