We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -77,7 +77,7 @@ |
||
77 | 77 | * @param string $stub |
78 | 78 | * @param string $name |
79 | 79 | * |
80 | - * @return string |
|
80 | + * @return CrudControllerBackpackCommand |
|
81 | 81 | */ |
82 | 82 | protected function replaceNameStrings(&$stub, $name) |
83 | 83 | { |
@@ -3,7 +3,6 @@ |
||
3 | 3 | namespace Backpack\Generators\Console\Commands; |
4 | 4 | |
5 | 5 | use Illuminate\Console\GeneratorCommand; |
6 | -use Illuminate\Support\Str; |
|
7 | 6 | |
8 | 7 | class CrudControllerBackpackCommand extends GeneratorCommand |
9 | 8 | { |
@@ -46,7 +46,7 @@ |
||
46 | 46 | { |
47 | 47 | $name = str_replace($this->laravel->getNamespace(), '', $name); |
48 | 48 | |
49 | - return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'CrudController.php'; |
|
49 | + return $this->laravel[ 'path' ].'/'.str_replace('\\', '/', $name).'CrudController.php'; |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
@@ -33,15 +33,15 @@ |
||
33 | 33 | $name = ucfirst($this->argument('name')); |
34 | 34 | |
35 | 35 | // Create the CRUD Controller and show output |
36 | - Artisan::call('backpack:crud-controller', ['name' => $name]); |
|
36 | + Artisan::call('backpack:crud-controller', [ 'name' => $name ]); |
|
37 | 37 | echo(Artisan::output()); |
38 | 38 | |
39 | 39 | // Create the CRUD Model and show output |
40 | - Artisan::call('backpack:crud-model', ['name' => $name]); |
|
40 | + Artisan::call('backpack:crud-model', [ 'name' => $name ]); |
|
41 | 41 | echo(Artisan::output()); |
42 | 42 | |
43 | 43 | // Create the CRUD Request and show output |
44 | - Artisan::call('backpack:crud-request', ['name' => $name]); |
|
44 | + Artisan::call('backpack:crud-request', [ 'name' => $name ]); |
|
45 | 45 | echo(Artisan::output()); |
46 | 46 | } |
47 | 47 | } |
48 | 48 | \ No newline at end of file |
@@ -45,7 +45,7 @@ |
||
45 | 45 | { |
46 | 46 | $name = str_replace($this->laravel->getNamespace(), '', $name); |
47 | 47 | |
48 | - return $this->laravel['path'].'/'.str_replace('\\', '/', $name).'Request.php'; |
|
48 | + return $this->laravel[ 'path' ].'/'.str_replace('\\', '/', $name).'Request.php'; |
|
49 | 49 | } |
50 | 50 | |
51 | 51 |