Completed
Push — master ( a52247...91a49a )
by Zach
02:12
created
src/Migrations/Migrator.php 2 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     {
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -99,11 +99,11 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
src/Migrations/DatabaseMigrationRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Helpers/helpers.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Commands/Migrate.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -17,15 +17,15 @@
 block discarded – undo
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,
Please login to merge, or discard this patch.