| @@ -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 | } | 
| @@ -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 | |
| @@ -18,7 +18,7 @@ | ||
| 18 | 18 | /** | 
| 19 | 19 | * Get all of the migration files in a given path. | 
| 20 | 20 | * | 
| 21 | - * @param string $path | |
| 21 | + * @param string $paths | |
| 22 | 22 | * @param bool $recursive | 
| 23 | 23 | * | 
| 24 | 24 | * @return array | 
| @@ -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 | |