Passed
Push — master ( 6a6590...3d4bfe )
by Bas
18:29
created
src/Providers/CommandServiceProvider.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
      */
57 57
     protected function registerRepository()
58 58
     {
59
-        $this->app->singleton('migration.repository', function ($app) {
59
+        $this->app->singleton('migration.repository', function($app) {
60 60
             $collection = $app['config']['database.migrations'];
61 61
 
62 62
             return new DatabaseMigrationRepository($app['db'], $collection);
@@ -65,7 +65,7 @@  discard block
 block discarded – undo
65 65
 
66 66
     protected function registerCreator()
67 67
     {
68
-        $this->app->singleton('migration.creator', function ($app) {
68
+        $this->app->singleton('migration.creator', function($app) {
69 69
             return new MigrationCreator($app['files']);
70 70
         });
71 71
     }
@@ -77,7 +77,7 @@  discard block
 block discarded – undo
77 77
      */
78 78
     protected function registerMigrateMakeCommand()
79 79
     {
80
-        $this->app->singleton('command.migrate.make', function ($app) {
80
+        $this->app->singleton('command.migrate.make', function($app) {
81 81
             $creator = $app['migration.creator'];
82 82
 
83 83
             $composer = $app['composer'];
@@ -88,14 +88,14 @@  discard block
 block discarded – undo
88 88
 
89 89
     protected function registerAranguentConvertMigrationsCommand()
90 90
     {
91
-        $this->app->singleton('command.aranguent.convert-migrations', function ($app) {
91
+        $this->app->singleton('command.aranguent.convert-migrations', function($app) {
92 92
             return new AranguentConvertMigrationsCommand($app['migrator']);
93 93
         });
94 94
     }
95 95
 
96 96
     protected function registerMakeModelCommand()
97 97
     {
98
-        $this->app->singleton('command.model.aranguent', function ($app) {
98
+        $this->app->singleton('command.model.aranguent', function($app) {
99 99
             return new ModelAranguentCommand($app['files']);
100 100
         });
101 101
     }
Please login to merge, or discard this patch.
src/AranguentServiceProvider.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -39,10 +39,10 @@  discard block
 block discarded – undo
39 39
         // Add database driver.
40 40
         $this->app->resolving(
41 41
             'db',
42
-            function ($db) {
42
+            function($db) {
43 43
                 $db->extend(
44 44
                     'arangodb',
45
-                    function ($config, $name) {
45
+                    function($config, $name) {
46 46
                         $config['name'] = $name;
47 47
                         $connection = new Connection($config);
48 48
                         $connection->setSchemaGrammar(new SchemaGrammar());
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
         );
55 55
 
56 56
         $this->app->resolving(
57
-            function ($app) {
57
+            function($app) {
58 58
                 if (class_exists('Illuminate\Foundation\AliasLoader')) {
59 59
                     $loader = \Illuminate\Foundation\AliasLoader::getInstance();
60 60
                     $loader->alias('Eloquent', 'LaravelFreelancerNL\Aranguent\Eloquent\Model');
Please login to merge, or discard this patch.
src/Connection.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -157,7 +157,7 @@  discard block
 block discarded – undo
157 157
      */
158 158
     public function cursor($query, $bindings = [], $useReadPdo = null, $transactionCollections = null)
159 159
     {
160
-        return $this->run($query, $bindings, function ($query, $bindings) use ($transactionCollections) {
160
+        return $this->run($query, $bindings, function($query, $bindings) use ($transactionCollections) {
161 161
             if ($this->pretending()) {
162 162
                 return [];
163 163
             }
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
             $query = $query->query;
191 191
         }
192 192
 
193
-        return $this->run($query, $bindings, function ($query, $bindings) use ($transactionCollections) {
193
+        return $this->run($query, $bindings, function($query, $bindings) use ($transactionCollections) {
194 194
             if ($this->pretending()) {
195 195
                 return true;
196 196
             }
@@ -228,7 +228,7 @@  discard block
 block discarded – undo
228 228
             $query = $query->query;
229 229
         }
230 230
 
231
-        return $this->run($query, $bindings, function ($query, $bindings) use ($transactionCollections) {
231
+        return $this->run($query, $bindings, function($query, $bindings) use ($transactionCollections) {
232 232
             if ($this->pretending()) {
233 233
                 return 0;
234 234
             }
@@ -262,7 +262,7 @@  discard block
 block discarded – undo
262 262
      */
263 263
     public function unprepared($query)
264 264
     {
265
-        return $this->run($query, [], function ($query) {
265
+        return $this->run($query, [], function($query) {
266 266
             if ($this->pretending()) {
267 267
                 return true;
268 268
             }
@@ -336,7 +336,7 @@  discard block
 block discarded – undo
336 336
             $query = $query->query;
337 337
         }
338 338
 
339
-        return $this->run($query, $bindings, function ($query, $bindings, $transactionCollections = null) {
339
+        return $this->run($query, $bindings, function($query, $bindings, $transactionCollections = null) {
340 340
             if ($this->pretending()) {
341 341
                 return [];
342 342
             }
Please login to merge, or discard this patch.
src/Schema/Builder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
      */
70 70
     public function create($collection, Closure $callback, $config = [])
71 71
     {
72
-        $this->build(tap($this->createBlueprint($collection), function ($blueprint) use ($callback, $config) {
72
+        $this->build(tap($this->createBlueprint($collection), function($blueprint) use ($callback, $config) {
73 73
             $blueprint->create($config);
74 74
 
75 75
             $callback($blueprint);
Please login to merge, or discard this patch.
src/Schema/Concerns/Tables.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
      */
30 30
     protected function creating()
31 31
     {
32
-        return collect($this->commands)->contains(function ($command) {
32
+        return collect($this->commands)->contains(function($command) {
33 33
             return $command->name === 'create';
34 34
         });
35 35
     }
Please login to merge, or discard this patch.
src/Query/Builder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -178,7 +178,7 @@
 block discarded – undo
178 178
      */
179 179
     public function get($columns = ['*'])
180 180
     {
181
-        $results = collect($this->onceWithColumns(Arr::wrap($columns), function () {
181
+        $results = collect($this->onceWithColumns(Arr::wrap($columns), function() {
182 182
             return $this->runSelect();
183 183
         }));
184 184
 
Please login to merge, or discard this patch.
src/Query/Grammar.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -330,7 +330,7 @@
 block discarded – undo
330 330
      */
331 331
     protected function compileWheresToArray($builder)
332 332
     {
333
-        $result = collect($builder->wheres)->map(function ($where) use ($builder) {
333
+        $result = collect($builder->wheres)->map(function($where) use ($builder) {
334 334
             if (isset($where['operator'])) {
335 335
                 $where['operator'] = $this->translateOperator($where['operator']);
336 336
             } else {
Please login to merge, or discard this patch.
src/Concerns/ManagesTransactions.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
     {
31 31
         $this->beginTransaction();
32 32
 
33
-        return tap($callback($this), function () use ($options, $attempts) {
33
+        return tap($callback($this), function() use ($options, $attempts) {
34 34
             $this->commit($options, $attempts);
35 35
         });
36 36
     }
Please login to merge, or discard this patch.