@@ -69,7 +69,7 @@ discard block |
||
| 69 | 69 | // Here we will replace the table place-holders with the table specified by |
| 70 | 70 | // the developer, which is useful for quickly creating a tables creation |
| 71 | 71 | // or update migration from the console instead of typing it manually. |
| 72 | - if (! is_null($collection)) { |
|
| 72 | + if (!is_null($collection)) { |
|
| 73 | 73 | $stub = str_replace('DummyCollection', $collection, $stub); |
| 74 | 74 | } |
| 75 | 75 | |
@@ -83,6 +83,6 @@ discard block |
||
| 83 | 83 | */ |
| 84 | 84 | public function stubPath() |
| 85 | 85 | { |
| 86 | - return __DIR__ . '/stubs'; |
|
| 86 | + return __DIR__.'/stubs'; |
|
| 87 | 87 | } |
| 88 | 88 | } |
@@ -56,7 +56,7 @@ |
||
| 56 | 56 | // foreign key name by using the name of the relationship function, which |
| 57 | 57 | // when combined with an "_id" should conventionally match the columns. |
| 58 | 58 | if (is_null($foreignKey)) { |
| 59 | - $foreignKey = Str::snake($relation) . $instance->getKeyName(); |
|
| 59 | + $foreignKey = Str::snake($relation).$instance->getKeyName(); |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | // Once we have the foreign key names, we'll just create a new Eloquent query |
@@ -54,13 +54,13 @@ discard block |
||
| 54 | 54 | */ |
| 55 | 55 | public function qualifyColumn($column) |
| 56 | 56 | { |
| 57 | - $tableReferer = Str::singular($this->getTable()) . 'Doc'; |
|
| 57 | + $tableReferer = Str::singular($this->getTable()).'Doc'; |
|
| 58 | 58 | |
| 59 | - if (Str::startsWith($column, $tableReferer . '.')) { |
|
| 59 | + if (Str::startsWith($column, $tableReferer.'.')) { |
|
| 60 | 60 | return $column; |
| 61 | 61 | } |
| 62 | 62 | |
| 63 | - return $tableReferer . '.' . $column; |
|
| 63 | + return $tableReferer.'.'.$column; |
|
| 64 | 64 | } |
| 65 | 65 | |
| 66 | 66 | /** |
@@ -70,6 +70,6 @@ discard block |
||
| 70 | 70 | */ |
| 71 | 71 | public function getForeignKey() |
| 72 | 72 | { |
| 73 | - return Str::snake(class_basename($this)) . $this->getKeyName(); |
|
| 73 | + return Str::snake(class_basename($this)).$this->getKeyName(); |
|
| 74 | 74 | } |
| 75 | 75 | } |
@@ -57,7 +57,7 @@ discard block |
||
| 57 | 57 | $this->connection = $connection; |
| 58 | 58 | $this->grammar = $grammar ?: $connection->getQueryGrammar(); |
| 59 | 59 | $this->processor = $processor ?: $connection->getPostProcessor(); |
| 60 | - if (! $aqb instanceof QueryBuilder) { |
|
| 60 | + if (!$aqb instanceof QueryBuilder) { |
|
| 61 | 61 | $aqb = new QueryBuilder(); |
| 62 | 62 | } |
| 63 | 63 | $this->aqb = $aqb; |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | */ |
| 169 | 169 | public function get($columns = ['*']) |
| 170 | 170 | { |
| 171 | - $results = collect($this->onceWithColumns(Arr::wrap($columns), function () { |
|
| 171 | + $results = collect($this->onceWithColumns(Arr::wrap($columns), function() { |
|
| 172 | 172 | return $this->runSelect(); |
| 173 | 173 | })); |
| 174 | 174 | |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | */ |
| 210 | 210 | public function registerAlias(string $table, string $alias): void |
| 211 | 211 | { |
| 212 | - if (! isset($this->aliasRegistry[$table])) { |
|
| 212 | + if (!isset($this->aliasRegistry[$table])) { |
|
| 213 | 213 | $this->aliasRegistry[$table] = $alias; |
| 214 | 214 | } |
| 215 | 215 | } |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | |
| 242 | 242 | $this->aqb = new QueryBuilder(); |
| 243 | 243 | |
| 244 | - if (! $results->isEmpty()) { |
|
| 244 | + if (!$results->isEmpty()) { |
|
| 245 | 245 | return array_change_key_case((array) $results[0])['aggregate']; |
| 246 | 246 | } |
| 247 | 247 | |
@@ -322,7 +322,7 @@ discard block |
||
| 322 | 322 | 'boolean' |
| 323 | 323 | ); |
| 324 | 324 | |
| 325 | - if (! $value instanceof Expression) { |
|
| 325 | + if (!$value instanceof Expression) { |
|
| 326 | 326 | $this->addBinding($value, 'where'); |
| 327 | 327 | } |
| 328 | 328 | |
@@ -358,8 +358,8 @@ discard block |
||
| 358 | 358 | */ |
| 359 | 359 | protected function invalidOperator($operator) |
| 360 | 360 | { |
| 361 | - return ! in_array(strtolower($operator), $this->operators, true) && |
|
| 362 | - ! isset($this->grammar->getOperators()[strtoupper($operator)]); |
|
| 361 | + return !in_array(strtolower($operator), $this->operators, true) && |
|
| 362 | + !isset($this->grammar->getOperators()[strtoupper($operator)]); |
|
| 363 | 363 | } |
| 364 | 364 | |
| 365 | 365 | /** |
@@ -389,7 +389,7 @@ discard block |
||
| 389 | 389 | if ($this->isQueryable($column)) { |
| 390 | 390 | [$query, $bindings] = $this->createSub($column); |
| 391 | 391 | |
| 392 | - $column = new Expression('(' . $query . ')'); |
|
| 392 | + $column = new Expression('('.$query.')'); |
|
| 393 | 393 | } |
| 394 | 394 | |
| 395 | 395 | $this->{$this->unions ? 'unionOrders' : 'orders'}[] = [ |