@@ -37,7 +37,7 @@ |
||
37 | 37 | */ |
38 | 38 | public function getRecursiveFolders($folders) |
39 | 39 | { |
40 | - if (! is_array($folders)) { |
|
40 | + if ( ! is_array($folders)) { |
|
41 | 41 | $folders = [$folders]; |
42 | 42 | } |
43 | 43 |
@@ -70,7 +70,7 @@ |
||
70 | 70 | $datePath = $this->migrator->getDateFolderStructure($migration_name); |
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 |
@@ -9,7 +9,7 @@ discard block |
||
9 | 9 | { |
10 | 10 | protected function ensureMigrationDoesntAlreadyExist($name, $migrationPath = null) |
11 | 11 | { |
12 | - if (! empty($migrationPath)) { |
|
12 | + if ( ! empty($migrationPath)) { |
|
13 | 13 | $migrationPath = $migrationPath.'/'.date('Y').'/'.date('m'); |
14 | 14 | $migrationFiles = $this->files->glob($migrationPath.'/*.php'); |
15 | 15 | |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | { |
28 | 28 | $path = $path.'/'.date('Y').'/'.date('m'); |
29 | 29 | |
30 | - if (! $this->files->exists($path)) { |
|
30 | + if ( ! $this->files->exists($path)) { |
|
31 | 31 | $this->files->makeDirectory($path, 0775, true); |
32 | 32 | } |
33 | 33 |
@@ -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'], $app->basePath('stubs')); |
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'], $app['events']); |
@@ -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 | } |