@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | /** |
| 57 | 57 | * Execute the console command. |
| 58 | 58 | * |
| 59 | - * @return mixed |
|
| 59 | + * @return boolean |
|
| 60 | 60 | */ |
| 61 | 61 | public function handle() |
| 62 | 62 | { |
@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | /** |
| 77 | 77 | * Install Migration. |
| 78 | 78 | * |
| 79 | - * @return bool |
|
| 79 | + * @return boolean|null |
|
| 80 | 80 | */ |
| 81 | 81 | public function installMigration() |
| 82 | 82 | { |
@@ -122,7 +122,7 @@ discard block |
||
| 122 | 122 | /** |
| 123 | 123 | * Install Model. |
| 124 | 124 | * |
| 125 | - * @return bool |
|
| 125 | + * @return boolean|null |
|
| 126 | 126 | */ |
| 127 | 127 | public function installModel() |
| 128 | 128 | { |
@@ -164,7 +164,7 @@ discard block |
||
| 164 | 164 | /** |
| 165 | 165 | * Install View. |
| 166 | 166 | * |
| 167 | - * @return bool |
|
| 167 | + * @return boolean|null |
|
| 168 | 168 | */ |
| 169 | 169 | public function installView() |
| 170 | 170 | { |
@@ -257,7 +257,7 @@ discard block |
||
| 257 | 257 | /** |
| 258 | 258 | * Install RouteMaps. |
| 259 | 259 | * |
| 260 | - * @return bool |
|
| 260 | + * @return boolean|null |
|
| 261 | 261 | */ |
| 262 | 262 | |
| 263 | 263 | public function installRouteMaps() |
@@ -287,7 +287,7 @@ discard block |
||
| 287 | 287 | /** |
| 288 | 288 | * Install RouteFile. |
| 289 | 289 | * |
| 290 | - * @return bool |
|
| 290 | + * @return boolean|null |
|
| 291 | 291 | */ |
| 292 | 292 | |
| 293 | 293 | public function installRouteFiles() |
@@ -315,7 +315,7 @@ discard block |
||
| 315 | 315 | /** |
| 316 | 316 | * Install Controller. |
| 317 | 317 | * |
| 318 | - * @return bool |
|
| 318 | + * @return boolean|null |
|
| 319 | 319 | */ |
| 320 | 320 | |
| 321 | 321 | public function installControllers() |
@@ -407,7 +407,7 @@ discard block |
||
| 407 | 407 | /** |
| 408 | 408 | * Install Configs. |
| 409 | 409 | * |
| 410 | - * @return bool |
|
| 410 | + * @return boolean|null |
|
| 411 | 411 | */ |
| 412 | 412 | |
| 413 | 413 | public function installConfigs() |
@@ -450,7 +450,7 @@ discard block |
||
| 450 | 450 | /** |
| 451 | 451 | * Install Middleware. |
| 452 | 452 | * |
| 453 | - * @return bool |
|
| 453 | + * @return boolean|null |
|
| 454 | 454 | */ |
| 455 | 455 | |
| 456 | 456 | public function installMiddleware() |
@@ -617,6 +617,11 @@ discard block |
||
| 617 | 617 | return file_put_contents($file_path, $new_contents); |
| 618 | 618 | } |
| 619 | 619 | |
| 620 | + /** |
|
| 621 | + * @param string $file_path |
|
| 622 | + * @param string $keyword |
|
| 623 | + * @param string $body |
|
| 624 | + */ |
|
| 620 | 625 | function insert($file_path, $keyword, $body, $after = true) { |
| 621 | 626 | |
| 622 | 627 | $contents = file_get_contents($file_path); |
@@ -4,9 +4,8 @@ |
||
| 4 | 4 | |
| 5 | 5 | use Illuminate\Console\Command; |
| 6 | 6 | use Illuminate\Database\Console\Migrations\BaseCommand; |
| 7 | -use Illuminate\Support\Composer; |
|
| 8 | -use Symfony\Component\Console\Input\InputOption; |
|
| 9 | 7 | use Illuminate\Database\Migrations\MigrationCreator; |
| 8 | +use Illuminate\Support\Composer; |
|
| 10 | 9 | |
| 11 | 10 | |
| 12 | 11 | class MultiAuthPrepare extends BaseCommand |