| @@ -10,7 +10,7 @@ discard block | ||
| 10 | 10 | use Symfony\Component\Console\Attribute\AsCommand; | 
| 11 | 11 | use Symfony\Component\Console\Input\InputOption; | 
| 12 | 12 | |
| 13 | -#[AsCommand(name: 'magic:api')] | |
| 13 | +#[AsCommand(name: 'magic:api') ] | |
| 14 | 14 | class MagicApiCommand extends GeneratorCommand | 
| 15 | 15 |  { | 
| 16 | 16 | /** | 
| @@ -59,15 +59,15 @@ discard block | ||
| 59 | 59 |          $name = "{$name}Api"; | 
| 60 | 60 | |
| 61 | 61 | $stub = str_replace( | 
| 62 | -            ['DummyModel', '{{ model }}'], class_basename($model), parent::buildClass($name) | |
| 62 | +            [ 'DummyModel', '{{ model }}' ], class_basename($model), parent::buildClass($name) | |
| 63 | 63 | ); | 
| 64 | 64 | |
| 65 | 65 | $stub = str_replace( | 
| 66 | -            ['DummyModelVariable', '{{ modelVariable }}'], trim($modelVariable, '\\'), $stub | |
| 66 | +            [ 'DummyModelVariable', '{{ modelVariable }}' ], trim($modelVariable, '\\'), $stub | |
| 67 | 67 | ); | 
| 68 | 68 | |
| 69 | 69 | return str_replace( | 
| 70 | -            ['DummyModelUnderScore', '{{ modelUnderScore }}'], trim($modelUnderScore, '\\'), $stub | |
| 70 | +            [ 'DummyModelUnderScore', '{{ modelUnderScore }}' ], trim($modelUnderScore, '\\'), $stub | |
| 71 | 71 | ); | 
| 72 | 72 | } | 
| 73 | 73 | |
| @@ -114,9 +114,9 @@ discard block | ||
| 114 | 114 | protected function getOptions() | 
| 115 | 115 |      { | 
| 116 | 116 | return [ | 
| 117 | - ['force', 'f', InputOption::VALUE_NONE, 'Create the class even if the api already exists'], | |
| 118 | - ['variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this api class'], | |
| 119 | - ['underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this api class'], | |
| 117 | + [ 'force', 'f', InputOption::VALUE_NONE, 'Create the class even if the api already exists' ], | |
| 118 | + [ 'variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this api class' ], | |
| 119 | + [ 'underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this api class' ], | |
| 120 | 120 | ]; | 
| 121 | 121 | } | 
| 122 | 122 | |
| @@ -7,7 +7,7 @@ discard block | ||
| 7 | 7 | use Symfony\Component\Console\Attribute\AsCommand; | 
| 8 | 8 | use Symfony\Component\Console\Input\InputOption; | 
| 9 | 9 | |
| 10 | -#[AsCommand(name: 'magic:controller')] | |
| 10 | +#[AsCommand(name: 'magic:controller') ] | |
| 11 | 11 | class MagicControllerCommand extends GeneratorCommand | 
| 12 | 12 |  { | 
| 13 | 13 | /** | 
| @@ -55,15 +55,15 @@ discard block | ||
| 55 | 55 |          $modelUnderScore = $this->option('underscore'); | 
| 56 | 56 | |
| 57 | 57 | $stub = str_replace( | 
| 58 | -            ['DummyModel', '{{ model }}'], class_basename($model), parent::buildClass($name) | |
| 58 | +            [ 'DummyModel', '{{ model }}' ], class_basename($model), parent::buildClass($name) | |
| 59 | 59 | ); | 
| 60 | 60 | |
| 61 | 61 | $stub = str_replace( | 
| 62 | -            ['DummyModelVariable', '{{ modelVariable }}'], trim($modelVariable, '\\'), $stub | |
| 62 | +            [ 'DummyModelVariable', '{{ modelVariable }}' ], trim($modelVariable, '\\'), $stub | |
| 63 | 63 | ); | 
| 64 | 64 | |
| 65 | 65 | return str_replace( | 
| 66 | -            ['DummyModelUnderScore', '{{ modelUnderScore }}'], trim($modelUnderScore, '\\'), $stub | |
| 66 | +            [ 'DummyModelUnderScore', '{{ modelUnderScore }}' ], trim($modelUnderScore, '\\'), $stub | |
| 67 | 67 | ); | 
| 68 | 68 | |
| 69 | 69 | } | 
| @@ -122,9 +122,9 @@ discard block | ||
| 122 | 122 | protected function getOptions() | 
| 123 | 123 |      { | 
| 124 | 124 | return [ | 
| 125 | - ['force', 'f', InputOption::VALUE_NONE, 'Create the class even if the controller already exists'], | |
| 126 | - ['variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this controller class'], | |
| 127 | - ['underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this controller class'], | |
| 125 | + [ 'force', 'f', InputOption::VALUE_NONE, 'Create the class even if the controller already exists' ], | |
| 126 | + [ 'variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this controller class' ], | |
| 127 | + [ 'underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this controller class' ], | |
| 128 | 128 | ]; | 
| 129 | 129 | } | 
| 130 | 130 | |
| @@ -139,6 +139,6 @@ discard block | ||
| 139 | 139 |          $name = "{$name}Controller"; | 
| 140 | 140 | $name = Str::replaceFirst($this->rootNamespace(), '', $name); | 
| 141 | 141 | |
| 142 | -        return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'.php'; | |
| 142 | +        return $this->laravel[ 'path' ].'/'.str_replace('\\', '/', $name).'.php'; | |
| 143 | 143 | } | 
| 144 | 144 | } | 
| @@ -7,7 +7,7 @@ discard block | ||
| 7 | 7 | use Symfony\Component\Console\Attribute\AsCommand; | 
| 8 | 8 | use Symfony\Component\Console\Input\InputOption; | 
| 9 | 9 | |
| 10 | -#[AsCommand(name: 'magic:createRequest')] | |
| 10 | +#[AsCommand(name: 'magic:createRequest') ] | |
| 11 | 11 | class MagicCreateRequestCommand extends GeneratorCommand | 
| 12 | 12 |  { | 
| 13 | 13 | /** | 
| @@ -56,15 +56,15 @@ discard block | ||
| 56 | 56 |          $name = "{$name}CreateRequest"; | 
| 57 | 57 | |
| 58 | 58 | $stub = str_replace( | 
| 59 | -            ['DummyModel', '{{ model }}'], class_basename($model), parent::buildClass($name) | |
| 59 | +            [ 'DummyModel', '{{ model }}' ], class_basename($model), parent::buildClass($name) | |
| 60 | 60 | ); | 
| 61 | 61 | |
| 62 | 62 | $stub = str_replace( | 
| 63 | -            ['DummyModelVariable', '{{ modelVariable }}'], trim($modelVariable, '\\'), $stub | |
| 63 | +            [ 'DummyModelVariable', '{{ modelVariable }}' ], trim($modelVariable, '\\'), $stub | |
| 64 | 64 | ); | 
| 65 | 65 | |
| 66 | 66 | return str_replace( | 
| 67 | -            ['DummyModelUnderScore', '{{ modelUnderScore }}'], trim($modelUnderScore, '\\'), $stub | |
| 67 | +            [ 'DummyModelUnderScore', '{{ modelUnderScore }}' ], trim($modelUnderScore, '\\'), $stub | |
| 68 | 68 | ); | 
| 69 | 69 | |
| 70 | 70 | } | 
| @@ -123,9 +123,9 @@ discard block | ||
| 123 | 123 | protected function getOptions() | 
| 124 | 124 |      { | 
| 125 | 125 | return [ | 
| 126 | - ['force', 'f', InputOption::VALUE_NONE, 'Create the class even if the request already exists'], | |
| 127 | - ['variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this request class'], | |
| 128 | - ['underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this request class'], | |
| 126 | + [ 'force', 'f', InputOption::VALUE_NONE, 'Create the class even if the request already exists' ], | |
| 127 | + [ 'variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this request class' ], | |
| 128 | + [ 'underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this request class' ], | |
| 129 | 129 | ]; | 
| 130 | 130 | } | 
| 131 | 131 | |
| @@ -140,6 +140,6 @@ discard block | ||
| 140 | 140 |          $name = "{$name}CreateRequest"; | 
| 141 | 141 | $name = Str::replaceFirst($this->rootNamespace(), '', $name); | 
| 142 | 142 | |
| 143 | -        return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'.php'; | |
| 143 | +        return $this->laravel[ 'path' ].'/'.str_replace('\\', '/', $name).'.php'; | |
| 144 | 144 | } | 
| 145 | 145 | } | 
| @@ -7,7 +7,7 @@ discard block | ||
| 7 | 7 | use Symfony\Component\Console\Attribute\AsCommand; | 
| 8 | 8 | use Symfony\Component\Console\Input\InputOption; | 
| 9 | 9 | |
| 10 | -#[AsCommand(name: 'magic:updateRequest')] | |
| 10 | +#[AsCommand(name: 'magic:updateRequest') ] | |
| 11 | 11 | class MagicUpdateRequestCommand extends GeneratorCommand | 
| 12 | 12 |  { | 
| 13 | 13 | /** | 
| @@ -56,15 +56,15 @@ discard block | ||
| 56 | 56 |          $name = "{$name}UpdateRequest"; | 
| 57 | 57 | |
| 58 | 58 | $stub = str_replace( | 
| 59 | -            ['DummyModel', '{{ model }}'], class_basename($model), parent::buildClass($name) | |
| 59 | +            [ 'DummyModel', '{{ model }}' ], class_basename($model), parent::buildClass($name) | |
| 60 | 60 | ); | 
| 61 | 61 | |
| 62 | 62 | $stub = str_replace( | 
| 63 | -            ['DummyModelVariable', '{{ modelVariable }}'], trim($modelVariable, '\\'), $stub | |
| 63 | +            [ 'DummyModelVariable', '{{ modelVariable }}' ], trim($modelVariable, '\\'), $stub | |
| 64 | 64 | ); | 
| 65 | 65 | |
| 66 | 66 | return str_replace( | 
| 67 | -            ['DummyModelUnderScore', '{{ modelUnderScore }}'], trim($modelUnderScore, '\\'), $stub | |
| 67 | +            [ 'DummyModelUnderScore', '{{ modelUnderScore }}' ], trim($modelUnderScore, '\\'), $stub | |
| 68 | 68 | ); | 
| 69 | 69 | |
| 70 | 70 | } | 
| @@ -123,9 +123,9 @@ discard block | ||
| 123 | 123 | protected function getOptions() | 
| 124 | 124 |      { | 
| 125 | 125 | return [ | 
| 126 | - ['force', 'f', InputOption::VALUE_NONE, 'Create the class even if the request already exists'], | |
| 127 | - ['variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this request class'], | |
| 128 | - ['underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this request class'], | |
| 126 | + [ 'force', 'f', InputOption::VALUE_NONE, 'Create the class even if the request already exists' ], | |
| 127 | + [ 'variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this request class' ], | |
| 128 | + [ 'underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this request class' ], | |
| 129 | 129 | ]; | 
| 130 | 130 | } | 
| 131 | 131 | |
| @@ -140,6 +140,6 @@ discard block | ||
| 140 | 140 |          $name = "{$name}UpdateRequest"; | 
| 141 | 141 | $name = Str::replaceFirst($this->rootNamespace(), '', $name); | 
| 142 | 142 | |
| 143 | -        return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'.php'; | |
| 143 | +        return $this->laravel[ 'path' ].'/'.str_replace('\\', '/', $name).'.php'; | |
| 144 | 144 | } | 
| 145 | 145 | } | 
| @@ -7,7 +7,7 @@ discard block | ||
| 7 | 7 | use Symfony\Component\Console\Attribute\AsCommand; | 
| 8 | 8 | use Symfony\Component\Console\Input\InputOption; | 
| 9 | 9 | |
| 10 | -#[AsCommand(name: 'magic:readRequest')] | |
| 10 | +#[AsCommand(name: 'magic:readRequest') ] | |
| 11 | 11 | class MagicReadRequestCommand extends GeneratorCommand | 
| 12 | 12 |  { | 
| 13 | 13 | /** | 
| @@ -56,15 +56,15 @@ discard block | ||
| 56 | 56 |          $name = "{$name}ReadRequest"; | 
| 57 | 57 | |
| 58 | 58 | $stub = str_replace( | 
| 59 | -            ['DummyModel', '{{ model }}'], class_basename($model), parent::buildClass($name) | |
| 59 | +            [ 'DummyModel', '{{ model }}' ], class_basename($model), parent::buildClass($name) | |
| 60 | 60 | ); | 
| 61 | 61 | |
| 62 | 62 | $stub = str_replace( | 
| 63 | -            ['DummyModelVariable', '{{ modelVariable }}'], trim($modelVariable, '\\'), $stub | |
| 63 | +            [ 'DummyModelVariable', '{{ modelVariable }}' ], trim($modelVariable, '\\'), $stub | |
| 64 | 64 | ); | 
| 65 | 65 | |
| 66 | 66 | return str_replace( | 
| 67 | -            ['DummyModelUnderScore', '{{ modelUnderScore }}'], trim($modelUnderScore, '\\'), $stub | |
| 67 | +            [ 'DummyModelUnderScore', '{{ modelUnderScore }}' ], trim($modelUnderScore, '\\'), $stub | |
| 68 | 68 | ); | 
| 69 | 69 | |
| 70 | 70 | } | 
| @@ -123,9 +123,9 @@ discard block | ||
| 123 | 123 | protected function getOptions() | 
| 124 | 124 |      { | 
| 125 | 125 | return [ | 
| 126 | - ['force', 'f', InputOption::VALUE_NONE, 'Create the class even if the request already exists'], | |
| 127 | - ['variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this request class'], | |
| 128 | - ['underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this request class'], | |
| 126 | + [ 'force', 'f', InputOption::VALUE_NONE, 'Create the class even if the request already exists' ], | |
| 127 | + [ 'variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this request class' ], | |
| 128 | + [ 'underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this request class' ], | |
| 129 | 129 | ]; | 
| 130 | 130 | } | 
| 131 | 131 | |
| @@ -140,6 +140,6 @@ discard block | ||
| 140 | 140 |          $name = "{$name}ReadRequest"; | 
| 141 | 141 | $name = Str::replaceFirst($this->rootNamespace(), '', $name); | 
| 142 | 142 | |
| 143 | -        return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'.php'; | |
| 143 | +        return $this->laravel[ 'path' ].'/'.str_replace('\\', '/', $name).'.php'; | |
| 144 | 144 | } | 
| 145 | 145 | } | 
| @@ -7,7 +7,7 @@ discard block | ||
| 7 | 7 | use Symfony\Component\Console\Attribute\AsCommand; | 
| 8 | 8 | use Symfony\Component\Console\Input\InputOption; | 
| 9 | 9 | |
| 10 | -#[AsCommand(name: 'magic:deleteRequest')] | |
| 10 | +#[AsCommand(name: 'magic:deleteRequest') ] | |
| 11 | 11 | class MagicDeleteRequestCommand extends GeneratorCommand | 
| 12 | 12 |  { | 
| 13 | 13 | /** | 
| @@ -56,15 +56,15 @@ discard block | ||
| 56 | 56 |          $name = "{$name}DeleteRequest"; | 
| 57 | 57 | |
| 58 | 58 | $stub = str_replace( | 
| 59 | -            ['DummyModel', '{{ model }}'], class_basename($model), parent::buildClass($name) | |
| 59 | +            [ 'DummyModel', '{{ model }}' ], class_basename($model), parent::buildClass($name) | |
| 60 | 60 | ); | 
| 61 | 61 | |
| 62 | 62 | $stub = str_replace( | 
| 63 | -            ['DummyModelVariable', '{{ modelVariable }}'], trim($modelVariable, '\\'), $stub | |
| 63 | +            [ 'DummyModelVariable', '{{ modelVariable }}' ], trim($modelVariable, '\\'), $stub | |
| 64 | 64 | ); | 
| 65 | 65 | |
| 66 | 66 | return str_replace( | 
| 67 | -            ['DummyModelUnderScore', '{{ modelUnderScore }}'], trim($modelUnderScore, '\\'), $stub | |
| 67 | +            [ 'DummyModelUnderScore', '{{ modelUnderScore }}' ], trim($modelUnderScore, '\\'), $stub | |
| 68 | 68 | ); | 
| 69 | 69 | |
| 70 | 70 | } | 
| @@ -123,9 +123,9 @@ discard block | ||
| 123 | 123 | protected function getOptions() | 
| 124 | 124 |      { | 
| 125 | 125 | return [ | 
| 126 | - ['force', 'f', InputOption::VALUE_NONE, 'Create the class even if the request already exists'], | |
| 127 | - ['variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this request class'], | |
| 128 | - ['underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this request class'], | |
| 126 | + [ 'force', 'f', InputOption::VALUE_NONE, 'Create the class even if the request already exists' ], | |
| 127 | + [ 'variable', 'var', InputOption::VALUE_REQUIRED, 'Create a model variable value for this request class' ], | |
| 128 | + [ 'underscore', 'u', InputOption::VALUE_REQUIRED, 'Create a model underscore value for this request class' ], | |
| 129 | 129 | ]; | 
| 130 | 130 | } | 
| 131 | 131 | |
| @@ -140,6 +140,6 @@ discard block | ||
| 140 | 140 |          $name = "{$name}DeleteRequest"; | 
| 141 | 141 | $name = Str::replaceFirst($this->rootNamespace(), '', $name); | 
| 142 | 142 | |
| 143 | -        return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'.php'; | |
| 143 | +        return $this->laravel[ 'path' ].'/'.str_replace('\\', '/', $name).'.php'; | |
| 144 | 144 | } | 
| 145 | 145 | } | 
| @@ -9,7 +9,7 @@ | ||
| 9 | 9 |  { | 
| 10 | 10 | public function setUp(): void | 
| 11 | 11 |      { | 
| 12 | - parent::setUp(); | |
| 12 | + parent::setUp(); | |
| 13 | 13 | } | 
| 14 | 14 | |
| 15 | 15 | protected function defineDatabaseMigrations() | 
| @@ -19,6 +19,6 @@ | ||
| 19 | 19 | |
| 20 | 20 | protected function getPackageProviders($app): array | 
| 21 | 21 |      { | 
| 22 | - return [MagicmakeServiceProvider::class]; | |
| 22 | + return [ MagicmakeServiceProvider::class ]; | |
| 23 | 23 | } | 
| 24 | 24 | } | 
| @@ -67,13 +67,13 @@ | ||
| 67 | 67 | |
| 68 | 68 | $this->handleResourcesPath(); | 
| 69 | 69 | |
| 70 | -        $this->callSilently("vendor:publish", ["--provider" => "Laragear\TwoFactor\TwoFactorServiceProvider"]); | |
| 70 | +        $this->callSilently("vendor:publish", [ "--provider" => "Laragear\TwoFactor\TwoFactorServiceProvider" ]); | |
| 71 | 71 |          $this->components->info("Laragear TwoFactor migration and config file published"); | 
| 72 | 72 | |
| 73 | -        $this->callSilently("vendor:publish", ["--provider" => "Spatie\Activitylog\ActivitylogServiceProvider", "--tag" => "activitylog-migrations"]); | |
| 73 | +        $this->callSilently("vendor:publish", [ "--provider" => "Spatie\Activitylog\ActivitylogServiceProvider", "--tag" => "activitylog-migrations" ]); | |
| 74 | 74 |          $this->components->info("Spatie ActivityLog migration and config file published"); | 
| 75 | 75 | |
| 76 | -        $this->callSilently("vendor:publish", ["--provider" => "Spatie\Permission\PermissionServiceProvider"]); | |
| 76 | +        $this->callSilently("vendor:publish", [ "--provider" => "Spatie\Permission\PermissionServiceProvider" ]); | |
| 77 | 77 |          $this->components->info("Spatie Permissions migration and config file published"); | 
| 78 | 78 | } | 
| 79 | 79 | } | 
| @@ -12,14 +12,14 @@ discard block | ||
| 12 | 12 | |
| 13 | 13 | protected function handleAppActionPath() | 
| 14 | 14 |      { | 
| 15 | -        if (! is_dir($directory = app_path('Actions'))) { | |
| 15 | +        if (!is_dir($directory = app_path('Actions'))) { | |
| 16 | 16 | mkdir($directory, 0755, true); | 
| 17 | 17 | } | 
| 18 | 18 | |
| 19 | 19 | $filesystem = new Filesystem; | 
| 20 | 20 | |
| 21 | 21 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Actions')) | 
| 22 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 22 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 23 | 23 | $filesystem->copy( | 
| 24 | 24 | $file->getPathname(), | 
| 25 | 25 |                      app_path('Actions/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -31,14 +31,14 @@ discard block | ||
| 31 | 31 | |
| 32 | 32 | protected function handleAppContractsPath() | 
| 33 | 33 |      { | 
| 34 | -        if (! is_dir($directory = app_path('Contracts'))) { | |
| 34 | +        if (!is_dir($directory = app_path('Contracts'))) { | |
| 35 | 35 | mkdir($directory, 0755, true); | 
| 36 | 36 | } | 
| 37 | 37 | |
| 38 | 38 | $filesystem = new Filesystem; | 
| 39 | 39 | |
| 40 | 40 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Contracts')) | 
| 41 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 41 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 42 | 42 | $filesystem->copy( | 
| 43 | 43 | $file->getPathname(), | 
| 44 | 44 |                      app_path('Contracts/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -50,14 +50,14 @@ discard block | ||
| 50 | 50 | |
| 51 | 51 | protected function handleAppEnumsPath() | 
| 52 | 52 |      { | 
| 53 | -        if (! is_dir($directory = app_path('Enums'))) { | |
| 53 | +        if (!is_dir($directory = app_path('Enums'))) { | |
| 54 | 54 | mkdir($directory, 0755, true); | 
| 55 | 55 | } | 
| 56 | 56 | |
| 57 | 57 | $filesystem = new Filesystem; | 
| 58 | 58 | |
| 59 | 59 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Enums')) | 
| 60 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 60 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 61 | 61 | $filesystem->copy( | 
| 62 | 62 | $file->getPathname(), | 
| 63 | 63 |                      app_path('Enums/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -69,14 +69,14 @@ discard block | ||
| 69 | 69 | |
| 70 | 70 | protected function handleAppEventsPath() | 
| 71 | 71 |      { | 
| 72 | -        if (! is_dir($directory = app_path('Events'))) { | |
| 72 | +        if (!is_dir($directory = app_path('Events'))) { | |
| 73 | 73 | mkdir($directory, 0755, true); | 
| 74 | 74 | } | 
| 75 | 75 | |
| 76 | 76 | $filesystem = new Filesystem; | 
| 77 | 77 | |
| 78 | 78 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Events')) | 
| 79 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 79 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 80 | 80 | $filesystem->copy( | 
| 81 | 81 | $file->getPathname(), | 
| 82 | 82 |                      app_path('Events/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -88,14 +88,14 @@ discard block | ||
| 88 | 88 | |
| 89 | 89 | protected function handleAppExceptionsPath() | 
| 90 | 90 |      { | 
| 91 | -        if (! is_dir($directory = app_path('Exceptions'))) { | |
| 91 | +        if (!is_dir($directory = app_path('Exceptions'))) { | |
| 92 | 92 | mkdir($directory, 0755, true); | 
| 93 | 93 | } | 
| 94 | 94 | |
| 95 | 95 | $filesystem = new Filesystem; | 
| 96 | 96 | |
| 97 | 97 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Exceptions')) | 
| 98 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 98 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 99 | 99 | $filesystem->copy( | 
| 100 | 100 | $file->getPathname(), | 
| 101 | 101 |                      app_path('Exceptions/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -107,14 +107,14 @@ discard block | ||
| 107 | 107 | |
| 108 | 108 | protected function handleAppHttpPath() | 
| 109 | 109 |      { | 
| 110 | -        if (! is_dir($directory = app_path('Http'))) { | |
| 110 | +        if (!is_dir($directory = app_path('Http'))) { | |
| 111 | 111 | mkdir($directory, 0755, true); | 
| 112 | 112 | } | 
| 113 | 113 | |
| 114 | 114 | $filesystem = new Filesystem; | 
| 115 | 115 | |
| 116 | 116 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Http')) | 
| 117 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 117 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 118 | 118 | $filesystem->copy( | 
| 119 | 119 | $file->getPathname(), | 
| 120 | 120 |                      app_path('Http/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -126,14 +126,14 @@ discard block | ||
| 126 | 126 | |
| 127 | 127 | protected function handleAppHttpControllersPath() | 
| 128 | 128 |      { | 
| 129 | -        if (! is_dir($directory = app_path('Http/Controllers'))) { | |
| 129 | +        if (!is_dir($directory = app_path('Http/Controllers'))) { | |
| 130 | 130 | mkdir($directory, 0755, true); | 
| 131 | 131 | } | 
| 132 | 132 | |
| 133 | 133 | $filesystem = new Filesystem; | 
| 134 | 134 | |
| 135 | 135 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Controllers')) | 
| 136 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 136 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 137 | 137 | $filesystem->copy( | 
| 138 | 138 | $file->getPathname(), | 
| 139 | 139 |                      app_path('Http/Controllers/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -145,14 +145,14 @@ discard block | ||
| 145 | 145 | |
| 146 | 146 | protected function handleAppHttpControllersAuthPath() | 
| 147 | 147 |      { | 
| 148 | -        if (! is_dir($directory = app_path('Http/Controllers/Auth'))) { | |
| 148 | +        if (!is_dir($directory = app_path('Http/Controllers/Auth'))) { | |
| 149 | 149 | mkdir($directory, 0755, true); | 
| 150 | 150 | } | 
| 151 | 151 | |
| 152 | 152 | $filesystem = new Filesystem; | 
| 153 | 153 | |
| 154 | 154 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/AuthControllers')) | 
| 155 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 155 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 156 | 156 | $filesystem->copy( | 
| 157 | 157 | $file->getPathname(), | 
| 158 | 158 |                      app_path('Http/Controllers/Auth/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -164,14 +164,14 @@ discard block | ||
| 164 | 164 | |
| 165 | 165 | protected function handleAppHttpMiddlewarePath() | 
| 166 | 166 |      { | 
| 167 | -        if (! is_dir($directory = app_path('Http/Middleware'))) { | |
| 167 | +        if (!is_dir($directory = app_path('Http/Middleware'))) { | |
| 168 | 168 | mkdir($directory, 0755, true); | 
| 169 | 169 | } | 
| 170 | 170 | |
| 171 | 171 | $filesystem = new Filesystem; | 
| 172 | 172 | |
| 173 | 173 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Middleware')) | 
| 174 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 174 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 175 | 175 | $filesystem->copy( | 
| 176 | 176 | $file->getPathname(), | 
| 177 | 177 |                      app_path('Http/Middleware/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -183,14 +183,14 @@ discard block | ||
| 183 | 183 | |
| 184 | 184 | protected function handleAppHttpRequestsPath() | 
| 185 | 185 |      { | 
| 186 | -        if (! is_dir($directory = app_path('Http/Requests'))) { | |
| 186 | +        if (!is_dir($directory = app_path('Http/Requests'))) { | |
| 187 | 187 | mkdir($directory, 0755, true); | 
| 188 | 188 | } | 
| 189 | 189 | |
| 190 | 190 | $filesystem = new Filesystem; | 
| 191 | 191 | |
| 192 | 192 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Requests')) | 
| 193 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 193 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 194 | 194 | $filesystem->copy( | 
| 195 | 195 | $file->getPathname(), | 
| 196 | 196 |                      app_path('Http/Requests/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -202,14 +202,14 @@ discard block | ||
| 202 | 202 | |
| 203 | 203 | protected function handleAppHttpRequestsAuthPath() | 
| 204 | 204 |      { | 
| 205 | -        if (! is_dir($directory = app_path('Http/Requests/Auth'))) { | |
| 205 | +        if (!is_dir($directory = app_path('Http/Requests/Auth'))) { | |
| 206 | 206 | mkdir($directory, 0755, true); | 
| 207 | 207 | } | 
| 208 | 208 | |
| 209 | 209 | $filesystem = new Filesystem; | 
| 210 | 210 | |
| 211 | 211 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/AuthRequests')) | 
| 212 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 212 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 213 | 213 | $filesystem->copy( | 
| 214 | 214 | $file->getPathname(), | 
| 215 | 215 |                      app_path('Http/Requests/Auth/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -221,14 +221,14 @@ discard block | ||
| 221 | 221 | |
| 222 | 222 | protected function handleAppListenersPath() | 
| 223 | 223 |      { | 
| 224 | -        if (! is_dir($directory = app_path('Listeners'))) { | |
| 224 | +        if (!is_dir($directory = app_path('Listeners'))) { | |
| 225 | 225 | mkdir($directory, 0755, true); | 
| 226 | 226 | } | 
| 227 | 227 | |
| 228 | 228 | $filesystem = new Filesystem; | 
| 229 | 229 | |
| 230 | 230 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Listeners')) | 
| 231 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 231 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 232 | 232 | $filesystem->copy( | 
| 233 | 233 | $file->getPathname(), | 
| 234 | 234 |                      app_path('Listeners/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -240,14 +240,14 @@ discard block | ||
| 240 | 240 | |
| 241 | 241 | protected function handleAppModelsPath() | 
| 242 | 242 |      { | 
| 243 | -        if (! is_dir($directory = app_path('Models'))) { | |
| 243 | +        if (!is_dir($directory = app_path('Models'))) { | |
| 244 | 244 | mkdir($directory, 0755, true); | 
| 245 | 245 | } | 
| 246 | 246 | |
| 247 | 247 | $filesystem = new Filesystem; | 
| 248 | 248 | |
| 249 | 249 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Models')) | 
| 250 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 250 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 251 | 251 | $filesystem->copy( | 
| 252 | 252 | $file->getPathname(), | 
| 253 | 253 |                      app_path('Models/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -259,14 +259,14 @@ discard block | ||
| 259 | 259 | |
| 260 | 260 | protected function handleAppModelsScopesPath() | 
| 261 | 261 |      { | 
| 262 | -        if (! is_dir($directory = app_path('Models/Scopes'))) { | |
| 262 | +        if (!is_dir($directory = app_path('Models/Scopes'))) { | |
| 263 | 263 | mkdir($directory, 0755, true); | 
| 264 | 264 | } | 
| 265 | 265 | |
| 266 | 266 | $filesystem = new Filesystem; | 
| 267 | 267 | |
| 268 | 268 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/ModelsScopes')) | 
| 269 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 269 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 270 | 270 | $filesystem->copy( | 
| 271 | 271 | $file->getPathname(), | 
| 272 | 272 |                      app_path('Models/Scopes/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -278,14 +278,14 @@ discard block | ||
| 278 | 278 | |
| 279 | 279 | protected function handleAppNotificationsPath() | 
| 280 | 280 |      { | 
| 281 | -        if (! is_dir($directory = app_path('Notifications'))) { | |
| 281 | +        if (!is_dir($directory = app_path('Notifications'))) { | |
| 282 | 282 | mkdir($directory, 0755, true); | 
| 283 | 283 | } | 
| 284 | 284 | |
| 285 | 285 | $filesystem = new Filesystem; | 
| 286 | 286 | |
| 287 | 287 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Notifications')) | 
| 288 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 288 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 289 | 289 | $filesystem->copy( | 
| 290 | 290 | $file->getPathname(), | 
| 291 | 291 |                      app_path('Notifications/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -297,14 +297,14 @@ discard block | ||
| 297 | 297 | |
| 298 | 298 | protected function handleAppProvidersPath() | 
| 299 | 299 |      { | 
| 300 | -        if (! is_dir($directory = app_path('Providers'))) { | |
| 300 | +        if (!is_dir($directory = app_path('Providers'))) { | |
| 301 | 301 | mkdir($directory, 0755, true); | 
| 302 | 302 | } | 
| 303 | 303 | |
| 304 | 304 | $filesystem = new Filesystem; | 
| 305 | 305 | |
| 306 | 306 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Providers')) | 
| 307 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 307 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 308 | 308 | $filesystem->copy( | 
| 309 | 309 | $file->getPathname(), | 
| 310 | 310 |                      app_path('Providers/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -316,14 +316,14 @@ discard block | ||
| 316 | 316 | |
| 317 | 317 | protected function handleAppRepositoriesPath() | 
| 318 | 318 |      { | 
| 319 | -        if (! is_dir($directory = app_path('Repositories'))) { | |
| 319 | +        if (!is_dir($directory = app_path('Repositories'))) { | |
| 320 | 320 | mkdir($directory, 0755, true); | 
| 321 | 321 | } | 
| 322 | 322 | |
| 323 | 323 | $filesystem = new Filesystem; | 
| 324 | 324 | |
| 325 | 325 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Repositories')) | 
| 326 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 326 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 327 | 327 | $filesystem->copy( | 
| 328 | 328 | $file->getPathname(), | 
| 329 | 329 |                      app_path('Repositories/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -335,14 +335,14 @@ discard block | ||
| 335 | 335 | |
| 336 | 336 | protected function handleAppRulesPath() | 
| 337 | 337 |      { | 
| 338 | -        if (! is_dir($directory = app_path('Rules'))) { | |
| 338 | +        if (!is_dir($directory = app_path('Rules'))) { | |
| 339 | 339 | mkdir($directory, 0755, true); | 
| 340 | 340 | } | 
| 341 | 341 | |
| 342 | 342 | $filesystem = new Filesystem; | 
| 343 | 343 | |
| 344 | 344 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Rules')) | 
| 345 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 345 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 346 | 346 | $filesystem->copy( | 
| 347 | 347 | $file->getPathname(), | 
| 348 | 348 |                      app_path('Rules/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -354,14 +354,14 @@ discard block | ||
| 354 | 354 | |
| 355 | 355 | protected function handleAppServicesPath() | 
| 356 | 356 |      { | 
| 357 | -        if (! is_dir($directory = app_path('Services'))) { | |
| 357 | +        if (!is_dir($directory = app_path('Services'))) { | |
| 358 | 358 | mkdir($directory, 0755, true); | 
| 359 | 359 | } | 
| 360 | 360 | |
| 361 | 361 | $filesystem = new Filesystem; | 
| 362 | 362 | |
| 363 | 363 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Services')) | 
| 364 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 364 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 365 | 365 | $filesystem->copy( | 
| 366 | 366 | $file->getPathname(), | 
| 367 | 367 |                      app_path('Services/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -373,14 +373,14 @@ discard block | ||
| 373 | 373 | |
| 374 | 374 | protected function handleAppServicesAuthPath() | 
| 375 | 375 |      { | 
| 376 | -        if (! is_dir($directory = app_path('Services/Auth'))) { | |
| 376 | +        if (!is_dir($directory = app_path('Services/Auth'))) { | |
| 377 | 377 | mkdir($directory, 0755, true); | 
| 378 | 378 | } | 
| 379 | 379 | |
| 380 | 380 | $filesystem = new Filesystem; | 
| 381 | 381 | |
| 382 | 382 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/AuthServices')) | 
| 383 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 383 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 384 | 384 | $filesystem->copy( | 
| 385 | 385 | $file->getPathname(), | 
| 386 | 386 |                      app_path('Services/Auth/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -392,14 +392,14 @@ discard block | ||
| 392 | 392 | |
| 393 | 393 | protected function handleAppTraitsPath() | 
| 394 | 394 |      { | 
| 395 | -        if (! is_dir($directory = app_path('Traits'))) { | |
| 395 | +        if (!is_dir($directory = app_path('Traits'))) { | |
| 396 | 396 | mkdir($directory, 0755, true); | 
| 397 | 397 | } | 
| 398 | 398 | |
| 399 | 399 | $filesystem = new Filesystem; | 
| 400 | 400 | |
| 401 | 401 | collect($filesystem->allFiles(__DIR__.'/stubs/init/app/Traits')) | 
| 402 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 402 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 403 | 403 | $filesystem->copy( | 
| 404 | 404 | $file->getPathname(), | 
| 405 | 405 |                      app_path('Traits/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -411,14 +411,14 @@ discard block | ||
| 411 | 411 | |
| 412 | 412 | protected function handleConfigPath() | 
| 413 | 413 |      { | 
| 414 | -        if (! is_dir($directory = base_path('config'))) { | |
| 414 | +        if (!is_dir($directory = base_path('config'))) { | |
| 415 | 415 | mkdir($directory, 0755, true); | 
| 416 | 416 | } | 
| 417 | 417 | |
| 418 | 418 | $filesystem = new Filesystem; | 
| 419 | 419 | |
| 420 | 420 | collect($filesystem->allFiles(__DIR__.'/stubs/init/config')) | 
| 421 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 421 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 422 | 422 | $filesystem->copy( | 
| 423 | 423 | $file->getPathname(), | 
| 424 | 424 |                      base_path('config/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -430,18 +430,18 @@ discard block | ||
| 430 | 430 | |
| 431 | 431 | protected function handleDatabasePath() | 
| 432 | 432 |      { | 
| 433 | -        if (! is_dir($directory = base_path('database/factories'))) { | |
| 433 | +        if (!is_dir($directory = base_path('database/factories'))) { | |
| 434 | 434 | mkdir($directory, 0755, true); | 
| 435 | 435 | } | 
| 436 | 436 | |
| 437 | -        if (! is_dir($directory = base_path('database/migrations'))) { | |
| 437 | +        if (!is_dir($directory = base_path('database/migrations'))) { | |
| 438 | 438 | mkdir($directory, 0755, true); | 
| 439 | 439 | } | 
| 440 | 440 | |
| 441 | 441 | $filesystem = new Filesystem; | 
| 442 | 442 | |
| 443 | 443 | collect($filesystem->allFiles(__DIR__.'/stubs/init/database/factories')) | 
| 444 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 444 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 445 | 445 | $filesystem->copy( | 
| 446 | 446 | $file->getPathname(), | 
| 447 | 447 |                      base_path('database/factories/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -451,7 +451,7 @@ discard block | ||
| 451 | 451 |          $this->components->info('database/factories files scaffolding generated successfully.'); | 
| 452 | 452 | |
| 453 | 453 | collect($filesystem->allFiles(__DIR__.'/stubs/init/database/migrations')) | 
| 454 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 454 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 455 | 455 | $filesystem->copy( | 
| 456 | 456 | $file->getPathname(), | 
| 457 | 457 |                      base_path('database/migrations/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -463,14 +463,14 @@ discard block | ||
| 463 | 463 | |
| 464 | 464 | protected function handleLangPath() | 
| 465 | 465 |      { | 
| 466 | -        if (! is_dir($directory = base_path('lang/en'))) { | |
| 466 | +        if (!is_dir($directory = base_path('lang/en'))) { | |
| 467 | 467 | mkdir($directory, 0755, true); | 
| 468 | 468 | } | 
| 469 | 469 | |
| 470 | 470 | $filesystem = new Filesystem; | 
| 471 | 471 | |
| 472 | 472 | collect($filesystem->allFiles(__DIR__.'/stubs/init/lang/en')) | 
| 473 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 473 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 474 | 474 | $filesystem->copy( | 
| 475 | 475 | $file->getPathname(), | 
| 476 | 476 |                      base_path('lang/en/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -483,14 +483,14 @@ discard block | ||
| 483 | 483 | protected function handleRoutesPath() | 
| 484 | 484 |      { | 
| 485 | 485 | |
| 486 | -        if (! is_dir($directory = base_path('routes/app'))) { | |
| 486 | +        if (!is_dir($directory = base_path('routes/app'))) { | |
| 487 | 487 | mkdir($directory, 0755, true); | 
| 488 | 488 | } | 
| 489 | 489 | |
| 490 | 490 | $filesystem = new Filesystem; | 
| 491 | 491 | |
| 492 | 492 | collect($filesystem->allFiles(__DIR__.'/stubs/init/routes/app')) | 
| 493 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 493 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 494 | 494 | $filesystem->copy( | 
| 495 | 495 | $file->getPathname(), | 
| 496 | 496 |                      base_path('routes/app/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -516,14 +516,14 @@ discard block | ||
| 516 | 516 | |
| 517 | 517 | protected function handleTestsPath() | 
| 518 | 518 |      { | 
| 519 | -        if (! is_dir($directory = base_path('tests/Feature'))) { | |
| 519 | +        if (!is_dir($directory = base_path('tests/Feature'))) { | |
| 520 | 520 | mkdir($directory, 0755, true); | 
| 521 | 521 | } | 
| 522 | 522 | |
| 523 | 523 | $filesystem = new Filesystem; | 
| 524 | 524 | |
| 525 | 525 | collect($filesystem->allFiles(__DIR__.'/stubs/init/tests/Feature')) | 
| 526 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 526 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 527 | 527 | $filesystem->copy( | 
| 528 | 528 | $file->getPathname(), | 
| 529 | 529 |                      base_path('tests/Feature/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -535,26 +535,26 @@ discard block | ||
| 535 | 535 | |
| 536 | 536 | protected function handleResourcesPath() | 
| 537 | 537 |      { | 
| 538 | -        if (! is_dir($directory = base_path('resources/views/layouts'))) { | |
| 538 | +        if (!is_dir($directory = base_path('resources/views/layouts'))) { | |
| 539 | 539 | mkdir($directory, 0755, true); | 
| 540 | 540 | } | 
| 541 | 541 | |
| 542 | -        if (! is_dir($directory = base_path('resources/views/passwords'))) { | |
| 542 | +        if (!is_dir($directory = base_path('resources/views/passwords'))) { | |
| 543 | 543 | mkdir($directory, 0755, true); | 
| 544 | 544 | } | 
| 545 | 545 | |
| 546 | -        if (! is_dir($directory = base_path('resources/views/socialite'))) { | |
| 546 | +        if (!is_dir($directory = base_path('resources/views/socialite'))) { | |
| 547 | 547 | mkdir($directory, 0755, true); | 
| 548 | 548 | } | 
| 549 | 549 | |
| 550 | -        if (! is_dir($directory = base_path('resources/views/twofactor'))) { | |
| 550 | +        if (!is_dir($directory = base_path('resources/views/twofactor'))) { | |
| 551 | 551 | mkdir($directory, 0755, true); | 
| 552 | 552 | } | 
| 553 | 553 | |
| 554 | 554 | $filesystem = new Filesystem; | 
| 555 | 555 | |
| 556 | 556 | collect($filesystem->allFiles(__DIR__.'/stubs/init/resources/views/layouts')) | 
| 557 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 557 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 558 | 558 | $filesystem->copy( | 
| 559 | 559 | $file->getPathname(), | 
| 560 | 560 |                      base_path('resources/views/layouts/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -564,7 +564,7 @@ discard block | ||
| 564 | 564 |          $this->components->info('resources/views/layouts files scaffolding generated successfully.'); | 
| 565 | 565 | |
| 566 | 566 | collect($filesystem->allFiles(__DIR__.'/stubs/init/resources/views/passwords')) | 
| 567 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 567 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 568 | 568 | $filesystem->copy( | 
| 569 | 569 | $file->getPathname(), | 
| 570 | 570 |                      base_path('resources/views/passwords/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -574,7 +574,7 @@ discard block | ||
| 574 | 574 |          $this->components->info('resources/views/passwords files scaffolding generated successfully.'); | 
| 575 | 575 | |
| 576 | 576 | collect($filesystem->allFiles(__DIR__.'/stubs/init/resources/views/socialite')) | 
| 577 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 577 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 578 | 578 | $filesystem->copy( | 
| 579 | 579 | $file->getPathname(), | 
| 580 | 580 |                      base_path('resources/views/socialite/'.Str::replaceLast('.stub', '.php', $file->getFilename())) | 
| @@ -584,7 +584,7 @@ discard block | ||
| 584 | 584 |          $this->components->info('resources/views/socialite files scaffolding generated successfully.'); | 
| 585 | 585 | |
| 586 | 586 | collect($filesystem->allFiles(__DIR__.'/stubs/init/resources/views/twofactor')) | 
| 587 | -            ->each(function (SplFileInfo $file) use ($filesystem) { | |
| 587 | +            ->each(function(SplFileInfo $file) use ($filesystem) { | |
| 588 | 588 | $filesystem->copy( | 
| 589 | 589 | $file->getPathname(), | 
| 590 | 590 |                      base_path('resources/views/twofactor/'.Str::replaceLast('.stub', '.php', $file->getFilename())) |