We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -49,7 +49,7 @@ |
||
49 | 49 | /** |
50 | 50 | * Execute the console command. |
51 | 51 | * |
52 | - * @return bool|null |
|
52 | + * @return false|null |
|
53 | 53 | */ |
54 | 54 | public function fire() |
55 | 55 | { |
@@ -90,7 +90,7 @@ |
||
90 | 90 | */ |
91 | 91 | protected function getPath($name) |
92 | 92 | { |
93 | - return $this->laravel['path'].'/../resources/views/'.str_replace('\\', '/', $name).'.blade.php'; |
|
93 | + return $this->laravel[ 'path' ].'/../resources/views/'.str_replace('\\', '/', $name).'.blade.php'; |
|
94 | 94 | } |
95 | 95 | |
96 | 96 | /** |
@@ -88,7 +88,7 @@ |
||
88 | 88 | */ |
89 | 89 | protected function getPath($name) |
90 | 90 | { |
91 | - return $this->laravel['path'].'/../config/'.str_replace('\\', '/', $name).'.php'; |
|
91 | + return $this->laravel[ 'path' ].'/../config/'.str_replace('\\', '/', $name).'.php'; |
|
92 | 92 | } |
93 | 93 | |
94 | 94 | /** |
@@ -49,7 +49,7 @@ |
||
49 | 49 | /** |
50 | 50 | * Execute the console command. |
51 | 51 | * |
52 | - * @return bool|null |
|
52 | + * @return false|null |
|
53 | 53 | */ |
54 | 54 | public function fire() |
55 | 55 | { |
@@ -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 | { |
@@ -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 | /** |
@@ -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 |
@@ -31,15 +31,15 @@ |
||
31 | 31 | $name = ucfirst($this->argument('name')); |
32 | 32 | |
33 | 33 | // Create the CRUD Controller and show output |
34 | - Artisan::call('backpack:crud-controller', ['name' => $name]); |
|
34 | + Artisan::call('backpack:crud-controller', [ 'name' => $name ]); |
|
35 | 35 | echo Artisan::output(); |
36 | 36 | |
37 | 37 | // Create the CRUD Model and show output |
38 | - Artisan::call('backpack:crud-model', ['name' => $name]); |
|
38 | + Artisan::call('backpack:crud-model', [ 'name' => $name ]); |
|
39 | 39 | echo Artisan::output(); |
40 | 40 | |
41 | 41 | // Create the CRUD Request and show output |
42 | - Artisan::call('backpack:crud-request', ['name' => $name]); |
|
42 | + Artisan::call('backpack:crud-request', [ 'name' => $name ]); |
|
43 | 43 | echo Artisan::output(); |
44 | 44 | } |
45 | 45 | } |
@@ -62,7 +62,7 @@ |
||
62 | 62 | * @param string $stub |
63 | 63 | * @param string $name |
64 | 64 | * |
65 | - * @return string |
|
65 | + * @return CrudModelBackpackCommand |
|
66 | 66 | */ |
67 | 67 | protected function replaceTable(&$stub, $name) |
68 | 68 | { |
@@ -66,7 +66,7 @@ |
||
66 | 66 | * @param string $stub |
67 | 67 | * @param string $name |
68 | 68 | * |
69 | - * @return string |
|
69 | + * @return ModelBackpackCommand |
|
70 | 70 | */ |
71 | 71 | protected function replaceTable(&$stub, $name) |
72 | 72 | { |
@@ -71,6 +71,10 @@ |
||
71 | 71 | } |
72 | 72 | } |
73 | 73 | |
74 | + /** |
|
75 | + * @param string $file |
|
76 | + * @param string $label |
|
77 | + */ |
|
74 | 78 | protected function processPublish($file, $label) |
75 | 79 | { |
76 | 80 | $sourceFile = $this->packageDir.$file.'.blade.php'; |
@@ -76,7 +76,7 @@ discard block |
||
76 | 76 | $sourceFile = $this->packageDir.$file.'.blade.php'; |
77 | 77 | $copiedFile = $this->appDir.$file.'.blade.php'; |
78 | 78 | |
79 | - if (! file_exists($sourceFile)) { |
|
79 | + if (!file_exists($sourceFile)) { |
|
80 | 80 | return $this->error( |
81 | 81 | 'Cannot find source '.$label.' at ' |
82 | 82 | .$sourceFile. |
@@ -96,8 +96,8 @@ discard block |
||
96 | 96 | if ($canCopy) { |
97 | 97 | $path = pathinfo($copiedFile); |
98 | 98 | |
99 | - if (! file_exists($path['dirname'])) { |
|
100 | - mkdir($path['dirname'], 0755, true); |
|
99 | + if (!file_exists($path[ 'dirname' ])) { |
|
100 | + mkdir($path[ 'dirname' ], 0755, true); |
|
101 | 101 | } |
102 | 102 | |
103 | 103 | if (copy($sourceFile, $copiedFile)) { |