@@ -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 | } |
@@ -23,6 +23,6 @@ |
||
| 23 | 23 | */ |
| 24 | 24 | public function gitInstalled() |
| 25 | 25 | { |
| 26 | - return ! empty(exec('which git')); |
|
| 26 | + return !empty(exec('which git')); |
|
| 27 | 27 | } |
| 28 | 28 | } |
@@ -40,8 +40,8 @@ discard block |
||
| 40 | 40 | */ |
| 41 | 41 | public function migrate() |
| 42 | 42 | { |
| 43 | - $this->loadLaravelMigrations(['--database' => 'testbench']); |
|
| 44 | - $this->artisan('migrate', ['--database' => 'testbench']); |
|
| 43 | + $this->loadLaravelMigrations([ '--database' => 'testbench' ]); |
|
| 44 | + $this->artisan('migrate', [ '--database' => 'testbench' ]); |
|
| 45 | 45 | } |
| 46 | 46 | |
| 47 | 47 | /** |
@@ -79,7 +79,7 @@ discard block |
||
| 79 | 79 | public function removeMigrationFiles() |
| 80 | 80 | { |
| 81 | 81 | collect(glob(database_path('migrations/*.php'))) |
| 82 | - ->each(function ($path) { |
|
| 82 | + ->each(function($path) { |
|
| 83 | 83 | $this->removeIfExist($path); |
| 84 | 84 | }); |
| 85 | 85 | } |
@@ -90,7 +90,7 @@ discard block |
||
| 90 | 90 | public function removeSeederFiles() |
| 91 | 91 | { |
| 92 | 92 | collect(glob(database_path('seeds/*.php'))) |
| 93 | - ->each(function ($path) { |
|
| 93 | + ->each(function($path) { |
|
| 94 | 94 | $this->removeIfExist($path); |
| 95 | 95 | }); |
| 96 | 96 | } |
@@ -148,7 +148,7 @@ discard block |
||
| 148 | 148 | */ |
| 149 | 149 | protected function assertTableHasColumns($table, $columns) |
| 150 | 150 | { |
| 151 | - collect($columns)->each(function ($column) use ($table) { |
|
| 151 | + collect($columns)->each(function($column) use ($table) { |
|
| 152 | 152 | $this->assertTrue(Schema::hasColumn($table, $column)); |
| 153 | 153 | }); |
| 154 | 154 | } |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | protected function tearDown() |
| 22 | 22 | { |
| 23 | 23 | collect(glob(database_path('migrations/*.php'))) |
| 24 | - ->each(function ($path) { |
|
| 24 | + ->each(function($path) { |
|
| 25 | 25 | unlink($path); |
| 26 | 26 | }); |
| 27 | 27 | parent::tearDown(); |
@@ -49,8 +49,8 @@ discard block |
||
| 49 | 49 | protected function getEnvironmentSetUp($app) |
| 50 | 50 | { |
| 51 | 51 | // Setup default database to use sqlite :memory: |
| 52 | - $app['config']->set('database.default', 'testbench'); |
|
| 53 | - $app['config']->set('database.connections.testbench', [ |
|
| 52 | + $app[ 'config' ]->set('database.default', 'testbench'); |
|
| 53 | + $app[ 'config' ]->set('database.connections.testbench', [ |
|
| 54 | 54 | 'driver' => 'sqlite', |
| 55 | 55 | 'database' => ':memory:', |
| 56 | 56 | 'prefix' => '', |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | */ |
| 76 | 76 | protected function assertTableHasColumns($table, $columns) |
| 77 | 77 | { |
| 78 | - collect($columns)->each(function ($column) use ($table) { |
|
| 78 | + collect($columns)->each(function($column) use ($table) { |
|
| 79 | 79 | $this->assertTrue(Schema::hasColumn($table, $column)); |
| 80 | 80 | }); |
| 81 | 81 | } |