@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | * |
52 | 52 | * @param Config $config |
53 | 53 | * @param ConnectionResolver $resolver |
54 | - * @param MigrationRepositoryInterface $repository |
|
54 | + * @param MigrationRepository $repository |
|
55 | 55 | */ |
56 | 56 | public function __construct( |
57 | 57 | Config $config, |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | /** |
287 | 287 | * Set connection to database on object. |
288 | 288 | * |
289 | - * @return Pdo |
|
289 | + * @return Migrator |
|
290 | 290 | */ |
291 | 291 | public function setConnection() |
292 | 292 | { |
@@ -99,11 +99,11 @@ |
||
99 | 99 | { |
100 | 100 | $files = scandir($this->config->getMigrationDirectory()); |
101 | 101 | |
102 | - $files = array_filter($files, function ($file) { |
|
102 | + $files = array_filter($files, function($file) { |
|
103 | 103 | return strpos($file, '.php') !== false; |
104 | 104 | }); |
105 | 105 | |
106 | - $files = array_map(function ($file) { |
|
106 | + $files = array_map(function($file) { |
|
107 | 107 | return str_replace('.php', '', $file); |
108 | 108 | }, $files); |
109 | 109 |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | { |
82 | 82 | $ran = $this->getRan($ran, $steps); |
83 | 83 | |
84 | - return array_map(function ($item) { |
|
84 | + return array_map(function($item) { |
|
85 | 85 | return $item['migration']; |
86 | 86 | }, $ran); |
87 | 87 | } |
@@ -97,7 +97,7 @@ discard block |
||
97 | 97 | { |
98 | 98 | $ran = $this->getRan($ran); |
99 | 99 | |
100 | - return array_map(function ($item) { |
|
100 | + return array_map(function($item) { |
|
101 | 101 | return $item['batch']; |
102 | 102 | }, $ran); |
103 | 103 | } |
@@ -10,7 +10,7 @@ |
||
10 | 10 | */ |
11 | 11 | function dd() |
12 | 12 | { |
13 | - array_map(function ($x) { |
|
13 | + array_map(function($x) { |
|
14 | 14 | $string = (new Dump(null, true))->variable($x); |
15 | 15 | |
16 | 16 | echo PHP_SAPI == 'cli' ? strip_tags($string).PHP_EOL : $string; |
@@ -17,15 +17,15 @@ |
||
17 | 17 | protected function configure() |
18 | 18 | { |
19 | 19 | $this->setName('migrate') |
20 | - ->setDescription('Run the database migrations.') |
|
21 | - ->setHelp('This command allows you to run migrations.') |
|
22 | - ->addOption( |
|
20 | + ->setDescription('Run the database migrations.') |
|
21 | + ->setHelp('This command allows you to run migrations.') |
|
22 | + ->addOption( |
|
23 | 23 | 'rollback', |
24 | 24 | null, |
25 | 25 | InputOption::VALUE_NONE, |
26 | 26 | 'Rollback migrations by given number of steps.' |
27 | 27 | ) |
28 | - ->addOption( |
|
28 | + ->addOption( |
|
29 | 29 | 'steps', |
30 | 30 | null, |
31 | 31 | InputOption::VALUE_OPTIONAL, |