1 | <?php |
||
11 | class ModuleMigrateRollbackCommand extends Command |
||
12 | { |
||
13 | use MigrationTrait, ConfirmableTrait; |
||
14 | |||
15 | /** |
||
16 | * The console command name. |
||
17 | * |
||
18 | * @var string |
||
19 | */ |
||
20 | protected $name = 'module:migrate:rollback'; |
||
21 | |||
22 | /** |
||
23 | * The console command description. |
||
24 | * |
||
25 | * @var string |
||
26 | */ |
||
27 | protected $description = 'Rollback the last database migrations for a specific or all modules'; |
||
28 | |||
29 | /** |
||
30 | * @var Modules |
||
31 | */ |
||
32 | protected $module; |
||
33 | |||
34 | /** |
||
35 | * Create a new command instance. |
||
36 | * |
||
37 | * @param Modules $module |
||
38 | */ |
||
39 | public function __construct(Modules $module) |
||
45 | |||
46 | /** |
||
47 | * Execute the console command. |
||
48 | * |
||
49 | * @return mixed |
||
50 | */ |
||
51 | public function fire() |
||
65 | |||
66 | /** |
||
67 | * Run the migration rollback for the specified module. |
||
68 | * |
||
69 | * @param string $slug |
||
70 | * @return mixed |
||
71 | */ |
||
72 | protected function rollback($slug) |
||
82 | |||
83 | /** |
||
84 | * Get the console command arguments. |
||
85 | * |
||
86 | * @return array |
||
87 | */ |
||
88 | protected function getArguments() |
||
92 | |||
93 | /** |
||
94 | * Get the console command options. |
||
95 | * |
||
96 | * @return array |
||
97 | */ |
||
98 | protected function getOptions() |
||
106 | } |
||
107 |
This check marks access to variables or properties that have not been declared yet. While PHP has no explicit notion of declaring a variable, accessing it before a value is assigned to it is most likely a bug.