Completed
Push — master ( cd0850...1ede1c )
by Nasrul Hazim
03:59
created
src/stubs/tests/Traits/TestCaseTrait.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -40,8 +40,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/stubs/tests/TestCase.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.