Completed
Push — master ( 73c817...aaf0a0 )
by Nasrul Hazim
04:32
created
src/stubs/tests/Traits/TestCaseTrait.php 1 patch
Spacing   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -38,8 +38,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Traits/GitTrait.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,6 +35,6 @@
 block discarded – undo
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
 }
Please login to merge, or discard this patch.