Passed
Push — 0.8.x ( 471128...356857 )
by Alexander
06:08 queued 03:09
created
src/components/Collections/Traits/Enumerates.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
             $operator = '=';
70 70
         }
71 71
         
72
-        return function ($item) use ($key, $operator, $value) {
72
+        return function($item) use ($key, $operator, $value) {
73 73
             $retrieved = data_get($item, $key);
74 74
 
75 75
             switch ($operator) {
@@ -147,7 +147,7 @@  discard block
 block discarded – undo
147 147
      */
148 148
     public function jsonSerialize(): array
149 149
     {
150
-        return array_map(function ($value) {
150
+        return array_map(function($value) {
151 151
             if ($value instanceof JsonSerializable) {
152 152
                 return $value->jsonSerialize();
153 153
             } elseif ($value instanceof Arrayable) {
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -55,7 +55,9 @@
 block discarded – undo
55 55
      */
56 56
     public function operatorCallback($key, $operator = null, $value = null)
57 57
     {
58
-        if ($this->useAsCallable($key)) return $key;
58
+        if ($this->useAsCallable($key)) {
59
+            return $key;
60
+        }
59 61
         
60 62
         if (func_num_args() === 1) {
61 63
             $value = true;
Please login to merge, or discard this patch.
src/components/Dotenv/Repository/RepositoryCreator.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
      * 
154 154
      * @return string|object
155 155
      */
156
-    protected function getReflectionClass($class): string|object
156
+    protected function getReflectionClass($class): string | object
157 157
     {
158 158
         $object = new ReflectionClass($class);
159 159
 
Please login to merge, or discard this patch.
src/components/Translation/Loader/FileLoader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
     protected function loadJsonPaths($locale): array
107 107
     {
108 108
         return collect([$this->path])
109
-            ->reduce(function ($output, $path) use ($locale) {
109
+            ->reduce(function($output, $path) use ($locale) {
110 110
                 $slash = DIRECTORY_SEPARATOR;
111 111
 
112 112
                 if ($this->files->exists($fullPath = "{$path}$slash{$locale}.json")) {
Please login to merge, or discard this patch.
src/components/Translation/TranslationServiceProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
     {
41 41
         $this->registerLoader();
42 42
 
43
-        $this->app->singleton('translator', function ($app) {            
43
+        $this->app->singleton('translator', function($app) {            
44 44
             $locale = $app['config']['app.locale'];
45 45
             $loader = $app['translator.loader'];
46 46
             
Please login to merge, or discard this patch.
src/components/Database/Schema/Builders/Builder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -205,7 +205,7 @@
 block discarded – undo
205 205
      */
206 206
     public function create($table, Closure $callback): void
207 207
     {
208
-        $this->build(take($this->createDataprint($table), function ($dataprint) use ($callback) {
208
+        $this->build(take($this->createDataprint($table), function($dataprint) use ($callback) {
209 209
             $dataprint->create();
210 210
             
211 211
             $callback($dataprint);
Please login to merge, or discard this patch.
src/components/Database/Schema/Builders/MySqlBuilder.php 1 patch
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     public function createDatabase($name): bool
39 39
     {
40 40
         return $this->connection->statement(
41
-           $this->grammar->compileCreateDatabase($name, $this->connection)
41
+            $this->grammar->compileCreateDatabase($name, $this->connection)
42 42
         );
43 43
     }
44 44
     
Please login to merge, or discard this patch.
src/components/Database/Schema/Builders/PostgresBuilder.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     public function createDatabase($name): bool
39 39
     {
40 40
         return $this->connection->statement(
41
-           $this->grammar->compileCreateDatabase($name, $this->connection)
41
+            $this->grammar->compileCreateDatabase($name, $this->connection)
42 42
         );
43 43
     }
44 44
     
@@ -152,10 +152,10 @@  discard block
 block discarded – undo
152 152
     public function getAllTables()
153 153
     {
154 154
         return $this->connection->select(
155
-                      $this->grammar->compileGetAllTables(
156
-                             $this->connection->getConfig('schema')
157
-                      )
158
-               );
155
+                        $this->grammar->compileGetAllTables(
156
+                                $this->connection->getConfig('schema')
157
+                        )
158
+                );
159 159
     }
160 160
     
161 161
     /**
@@ -166,9 +166,9 @@  discard block
 block discarded – undo
166 166
     public function getAllViews()
167 167
     {
168 168
         return $this->connection->select(
169
-                      $this->grammar->compileGetAllViews(
170
-                             $this->connection->getConfig('schema')
171
-                      )
172
-               );
169
+                        $this->grammar->compileGetAllViews(
170
+                                $this->connection->getConfig('schema')
171
+                        )
172
+                );
173 173
     }
174 174
 }
175 175
\ No newline at end of file
Please login to merge, or discard this patch.
src/components/Database/Schema/Grammars/MySqlGrammar.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -957,7 +957,7 @@
 block discarded – undo
957 957
      */
958 958
     protected function modifyDefault(Dataprint $dataprint, Flowing $column)
959 959
     {
960
-        if ( ! is_null($column->default))  {
960
+        if ( ! is_null($column->default)) {
961 961
             return " default ".$this->getDefaultValue($column->default);
962 962
         }
963 963
     }
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -885,7 +885,9 @@
 block discarded – undo
885 885
      */
886 886
     protected function modifyUnsigned(Dataprint $dataprint, Flowing $column): string
887 887
     {
888
-        if ($column->unsigned) return ' unsigned';
888
+        if ($column->unsigned) {
889
+            return ' unsigned';
890
+        }
889 891
     }
890 892
 
891 893
     /**
Please login to merge, or discard this patch.
src/components/Database/Schema/Grammars/PostgresGrammar.php 2 patches
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
         return sprintf('create database %s enconding %s',
59 59
                     $this->wrapValue($name),
60 60
                     $this->wrapValue($connection->getConfig('charset')),
61
-               );
61
+                );
62 62
     }
63 63
 
64 64
     /**
@@ -107,7 +107,7 @@  discard block
 block discarded – undo
107 107
                     $dataprint->temporary ? 'create temporary' : 'create',
108 108
                     $this->wrapTable($dataprint),
109 109
                     implode(', ', $this->getColumns($dataprint))
110
-               );
110
+                );
111 111
     }
112 112
     
113 113
     /**
@@ -123,7 +123,7 @@  discard block
 block discarded – undo
123 123
         return sprintf('alter table %s %s',
124 124
                     $this->wrapTable($dataprint),
125 125
                     implode(', ', $this->prefixArray('add column', $this->getColumns($dataprint)))
126
-               );
126
+                );
127 127
     }
128 128
     
129 129
     /**
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
                     $this->wrapTable($dataprint),
156 156
                     $this->wrap($command->index),
157 157
                     $this->columnize($command->columns)
158
-               );
158
+                );
159 159
     }
160 160
     
161 161
     /**
@@ -173,7 +173,7 @@  discard block
 block discarded – undo
173 173
                     $this->wrapTable($dataprint),
174 174
                     $command->option ? ' using '.$command->option : '',
175 175
                     $this->columnize($command->columns)
176
-               );        
176
+                );        
177 177
     }
178 178
     
179 179
     /**
@@ -190,7 +190,7 @@  discard block
 block discarded – undo
190 190
                     $this->wrap($command->index),
191 191
                     $this->wrapTable($dataprint),
192 192
                     implode(' || ', $command->columns)
193
-               );        
193
+                );        
194 194
     }
195 195
     
196 196
     /**
@@ -385,7 +385,7 @@  discard block
 block discarded – undo
385 385
         return sprintf('alter table %s rename to %s',
386 386
                     $this->wrap($command->from),
387 387
                     $this->wrap($command->to)
388
-               );
388
+                );
389 389
     }
390 390
     
391 391
     /**
@@ -470,7 +470,7 @@  discard block
 block discarded – undo
470 470
                     $this->wrapTable($dataprint),
471 471
                     $this->wrap($command->column->name),
472 472
                     "'".str_replace("'", "''", $command->value)."'"
473
-               );
473
+                );
474 474
     }
475 475
     
476 476
     /**
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -873,7 +873,7 @@
 block discarded – undo
873 873
      */
874 874
     protected function modifyDefault(Dataprint $dataprint, Flowing $column)
875 875
     {
876
-        if ( ! is_null($column->default))  {
876
+        if ( ! is_null($column->default)) {
877 877
             return ' default '.$this->getDefaultValue($column->default);
878 878
         }
879 879
     }
Please login to merge, or discard this patch.