@@ -69,7 +69,7 @@ discard block |
||
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 |
||
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) { |
@@ -55,7 +55,9 @@ |
||
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; |
@@ -153,7 +153,7 @@ |
||
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 |
@@ -106,7 +106,7 @@ |
||
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")) { |
@@ -40,7 +40,7 @@ |
||
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 |
@@ -205,7 +205,7 @@ |
||
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); |
@@ -38,7 +38,7 @@ |
||
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 |
@@ -38,7 +38,7 @@ discard block |
||
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 |
||
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 |
||
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 |
@@ -957,7 +957,7 @@ |
||
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 | } |
@@ -885,7 +885,9 @@ |
||
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 | /** |
@@ -58,7 +58,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 |
||
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 | /** |
@@ -873,7 +873,7 @@ |
||
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 | } |