@@ -115,7 +115,7 @@ discard block |
||
115 | 115 | $this->join[$name] = $loader->withContext($this); |
116 | 116 | } |
117 | 117 | |
118 | - $this->inherit = $this->inherit?->withContext($this); |
|
118 | + $this->inherit = $this->inherit ? ->withContext($this); |
|
119 | 119 | |
120 | 120 | foreach ($this->subclasses as $i => $loader) { |
121 | 121 | $this->subclasses[$i] = $loader->withContext($this); |
@@ -228,7 +228,7 @@ discard block |
||
228 | 228 | $this->target, |
229 | 229 | $relation |
230 | 230 | ); |
231 | - } catch (SchemaException | FactoryException $e) { |
|
231 | + } catch (SchemaException|FactoryException $e) { |
|
232 | 232 | if ($this->inherit instanceof self) { |
233 | 233 | return $this->inherit->loadRelation($relation, $options, $join, $load); |
234 | 234 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | |
32 | 32 | protected function applyScope(SelectQuery $query): SelectQuery |
33 | 33 | { |
34 | - $this->scope?->apply(new QueryBuilder($query, $this)); |
|
34 | + $this->scope ? ->apply(new QueryBuilder($query, $this)); |
|
35 | 35 | |
36 | 36 | return $query; |
37 | 37 | } |
@@ -54,7 +54,7 @@ |
||
54 | 54 | $query->andWhere($fields[0], 'IN', new Parameter(array_column($outerKeys, key($outerKeys[0])))); |
55 | 55 | } else { |
56 | 56 | $query->andWhere( |
57 | - static function (SelectQuery $select) use ($outerKeys, $fields) { |
|
57 | + static function(SelectQuery $select) use ($outerKeys, $fields) { |
|
58 | 58 | foreach ($outerKeys as $set) { |
59 | 59 | $select->orWhere(array_combine($fields, array_values($set))); |
60 | 60 | } |