@@ -18,14 +18,14 @@ discard block |
||
18 | 18 | |
19 | 19 | protected function registerCreator() |
20 | 20 | { |
21 | - $this->app->singleton('migration.creator', function ($app) { |
|
21 | + $this->app->singleton('migration.creator', function($app) { |
|
22 | 22 | return new MigrationCreator($app['files']); |
23 | 23 | }); |
24 | 24 | } |
25 | 25 | |
26 | 26 | protected function registerMigrator() |
27 | 27 | { |
28 | - $this->app->singleton('migrator', function ($app) { |
|
28 | + $this->app->singleton('migrator', function($app) { |
|
29 | 29 | $repository = $app['migration.repository']; |
30 | 30 | |
31 | 31 | return new Migrator($repository, $app['db'], $app['files']); |
@@ -34,14 +34,14 @@ discard block |
||
34 | 34 | |
35 | 35 | protected function registerMigrateOrganise() |
36 | 36 | { |
37 | - $this->app->singleton('command.migrate.organise', function ($app) { |
|
37 | + $this->app->singleton('command.migrate.organise', function($app) { |
|
38 | 38 | return new MigrateOrganise($app['files'], $app['migrator']); |
39 | 39 | }); |
40 | 40 | } |
41 | 41 | |
42 | 42 | protected function registerMigrateDisorganise() |
43 | 43 | { |
44 | - $this->app->singleton('command.migrate.disorganise', function ($app) { |
|
44 | + $this->app->singleton('command.migrate.disorganise', function($app) { |
|
45 | 45 | return new MigrateDisorganise($app['files'], $app['migrator']); |
46 | 46 | }); |
47 | 47 | } |
@@ -28,7 +28,7 @@ |
||
28 | 28 | return []; |
29 | 29 | } |
30 | 30 | |
31 | - $files = array_map(function ($file) { |
|
31 | + $files = array_map(function($file) { |
|
32 | 32 | return str_replace('.php', '', basename($file)); |
33 | 33 | |
34 | 34 | }, $files); |
@@ -10,7 +10,7 @@ |
||
10 | 10 | { |
11 | 11 | $path = $path.'/'.date('Y').'/'.date('m'); |
12 | 12 | |
13 | - if (! $this->files->exists($path)) { |
|
13 | + if ( ! $this->files->exists($path)) { |
|
14 | 14 | $this->files->makeDirectory($path, 0775, true); |
15 | 15 | } |
16 | 16 |
@@ -70,7 +70,7 @@ |
||
70 | 70 | $datePath = $this->migrator->getDateFolderStructure($migration); |
71 | 71 | |
72 | 72 | // Create folder if it does not already exist |
73 | - if (! $this->files->exists($basePath.'/'.$datePath)) { |
|
73 | + if ( ! $this->files->exists($basePath.'/'.$datePath)) { |
|
74 | 74 | $this->files->makeDirectory($basePath.'/'.$datePath, 0775, true); |
75 | 75 | } |
76 | 76 |