@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | */ |
23 | 23 | public function handle() |
24 | 24 | { |
25 | - foreach ($this->tableFilters() as $table=>$files){ |
|
25 | + foreach ($this->tableFilters() as $table=>$files) { |
|
26 | 26 | |
27 | 27 | $table = strtolower($table); |
28 | 28 | |
@@ -30,20 +30,20 @@ discard block |
||
30 | 30 | |
31 | 31 | $checkMigrationMain = $this->schema->getConnection()->checkMigrationMain(); |
32 | 32 | |
33 | - if($checkMigrationMain===false && isset($this->tableFilters()['Migrations'][0])){ |
|
34 | - $this->apply($this->tableFilters()['Migrations'][0],'migrations'); |
|
33 | + if ($checkMigrationMain===false && isset($this->tableFilters()['Migrations'][0])) { |
|
34 | + $this->apply($this->tableFilters()['Migrations'][0], 'migrations'); |
|
35 | 35 | } |
36 | 36 | |
37 | - $checkMigration = $this->schema->getConnection()->checkMigration($table,$file); |
|
37 | + $checkMigration = $this->schema->getConnection()->checkMigration($table, $file); |
|
38 | 38 | |
39 | - if(!$checkMigration){ |
|
39 | + if (!$checkMigration) { |
|
40 | 40 | |
41 | - $getClassName = preg_replace('@(\d+)_@is','',$file); |
|
41 | + $getClassName = preg_replace('@(\d+)_@is', '', $file); |
|
42 | 42 | $className = $this->getClassName($getClassName); |
43 | 43 | |
44 | 44 | require_once ($file); |
45 | 45 | |
46 | - $capsule = new SchemaCapsule($this->config,$file,$table); |
|
46 | + $capsule = new SchemaCapsule($this->config, $file, $table); |
|
47 | 47 | |
48 | 48 | $this->list[$table][] = (new $className)->up($capsule); |
49 | 49 | |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | } |
52 | 52 | } |
53 | 53 | |
54 | - app()->register('arguments','connection',$this->schema->getConnection()); |
|
54 | + app()->register('arguments', 'connection', $this->schema->getConnection()); |
|
55 | 55 | return $this->processHandler(); |
56 | 56 | } |
57 | 57 | |
@@ -60,14 +60,14 @@ discard block |
||
60 | 60 | * @param $table |
61 | 61 | * @return mixed|string |
62 | 62 | */ |
63 | - public function apply($file,$table) |
|
63 | + public function apply($file, $table) |
|
64 | 64 | { |
65 | - $getClassName = preg_replace('@(\d+)_@is','',$file); |
|
65 | + $getClassName = preg_replace('@(\d+)_@is', '', $file); |
|
66 | 66 | $className = $this->getClassName($getClassName); |
67 | 67 | |
68 | 68 | require_once ($file); |
69 | 69 | |
70 | - $capsule = new SchemaCapsule($this->config,$file,$table); |
|
70 | + $capsule = new SchemaCapsule($this->config, $file, $table); |
|
71 | 71 | |
72 | 72 | $this->list[$table][] = (new $className)->up($capsule); |
73 | 73 |