@@ -38,8 +38,8 @@ discard block |
||
38 | 38 | protected function getEnvironmentSetUp($app) |
39 | 39 | { |
40 | 40 | // Setup default database to use sqlite :memory: |
41 | - $app['config']->set('database.default', 'testbench'); |
|
42 | - $app['config']->set('database.connections.testbench', [ |
|
41 | + $app[ 'config' ]->set('database.default', 'testbench'); |
|
42 | + $app[ 'config' ]->set('database.connections.testbench', [ |
|
43 | 43 | 'driver' => 'sqlite', |
44 | 44 | 'database' => ':memory:', |
45 | 45 | 'prefix' => '', |
@@ -61,8 +61,8 @@ discard block |
||
61 | 61 | */ |
62 | 62 | public function migrate() |
63 | 63 | { |
64 | - $this->loadLaravelMigrations(['--database' => 'testbench']); |
|
65 | - $this->artisan('migrate', ['--database' => 'testbench']); |
|
64 | + $this->loadLaravelMigrations([ '--database' => 'testbench' ]); |
|
65 | + $this->artisan('migrate', [ '--database' => 'testbench' ]); |
|
66 | 66 | } |
67 | 67 | |
68 | 68 | /** |
@@ -100,7 +100,7 @@ discard block |
||
100 | 100 | public function removeMigrationFiles() |
101 | 101 | { |
102 | 102 | collect(glob(database_path('migrations/*.php'))) |
103 | - ->each(function ($path) { |
|
103 | + ->each(function($path) { |
|
104 | 104 | $this->removeIfExist($path); |
105 | 105 | }); |
106 | 106 | } |
@@ -111,7 +111,7 @@ discard block |
||
111 | 111 | public function removeSeederFiles() |
112 | 112 | { |
113 | 113 | collect(glob(database_path('seeds/*.php'))) |
114 | - ->each(function ($path) { |
|
114 | + ->each(function($path) { |
|
115 | 115 | $this->removeIfExist($path); |
116 | 116 | }); |
117 | 117 | } |
@@ -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 | } |
@@ -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 | } |