@@ -26,7 +26,7 @@ discard block |
||
26 | 26 | */ |
27 | 27 | protected function verifyProjectDoesExist($directory) |
28 | 28 | { |
29 | - if (! is_dir($directory)) { |
|
29 | + if (!is_dir($directory)) { |
|
30 | 30 | throw new LaravelProjectException('Laravel Project does not exists!'); |
31 | 31 | } |
32 | 32 | } |
@@ -38,7 +38,7 @@ discard block |
||
38 | 38 | */ |
39 | 39 | protected function verifyPackageDoesExist($directory) |
40 | 40 | { |
41 | - if (! is_dir($directory)) { |
|
41 | + if (!is_dir($directory)) { |
|
42 | 42 | throw new LaravelProjectException('Package does not exists!'); |
43 | 43 | } |
44 | 44 | } |
@@ -35,6 +35,6 @@ |
||
35 | 35 | */ |
36 | 36 | public function gitInstalled(): bool |
37 | 37 | { |
38 | - return ! empty(exec('which git')); |
|
38 | + return !empty(exec('which git')); |
|
39 | 39 | } |
40 | 40 | } |
@@ -45,8 +45,8 @@ discard block |
||
45 | 45 | */ |
46 | 46 | public function migrate() |
47 | 47 | { |
48 | - $this->loadLaravelMigrations(['--database' => 'testbench']); |
|
49 | - $this->artisan('migrate', ['--database' => 'testbench']); |
|
48 | + $this->loadLaravelMigrations([ '--database' => 'testbench' ]); |
|
49 | + $this->artisan('migrate', [ '--database' => 'testbench' ]); |
|
50 | 50 | } |
51 | 51 | |
52 | 52 | /** |
@@ -84,7 +84,7 @@ discard block |
||
84 | 84 | public function removeMigrationFiles() |
85 | 85 | { |
86 | 86 | collect(glob(database_path('migrations/*.php'))) |
87 | - ->each(function ($path) { |
|
87 | + ->each(function($path) { |
|
88 | 88 | $this->removeIfExist($path); |
89 | 89 | }); |
90 | 90 | } |
@@ -95,7 +95,7 @@ discard block |
||
95 | 95 | public function removeSeederFiles() |
96 | 96 | { |
97 | 97 | collect(glob(database_path('seeds/*.php'))) |
98 | - ->each(function ($path) { |
|
98 | + ->each(function($path) { |
|
99 | 99 | $this->removeIfExist($path); |
100 | 100 | }); |
101 | 101 | } |
@@ -139,8 +139,8 @@ discard block |
||
139 | 139 | protected function getEnvironmentSetUp($app) |
140 | 140 | { |
141 | 141 | // Setup default database to use sqlite :memory: |
142 | - $app['config']->set('database.default', 'testbench'); |
|
143 | - $app['config']->set('database.connections.testbench', [ |
|
142 | + $app[ 'config' ]->set('database.default', 'testbench'); |
|
143 | + $app[ 'config' ]->set('database.connections.testbench', [ |
|
144 | 144 | 'driver' => 'sqlite', |
145 | 145 | 'database' => ':memory:', |
146 | 146 | 'prefix' => '', |
@@ -169,7 +169,7 @@ discard block |
||
169 | 169 | */ |
170 | 170 | protected function assertTableHasColumns($table, $columns) |
171 | 171 | { |
172 | - collect($columns)->each(function ($column) use ($table) { |
|
172 | + collect($columns)->each(function($column) use ($table) { |
|
173 | 173 | $this->assertTrue(Schema::hasColumn($table, $column)); |
174 | 174 | }); |
175 | 175 | } |