@@ -171,8 +171,8 @@ discard block |
||
| 171 | 171 | $this->table = $table['table']; |
| 172 | 172 | $this->schema = $table['schema']; |
| 173 | 173 | } |
| 174 | - $this->quotedTable = ($this->schema ? "{$driver->quoteIdentifier($this->schema)}." : '') . $driver->quoteIdentifier($this->table); |
|
| 175 | - $this->unquotedTable = ($this->schema ? "{$this->schema}." : '') . $this->table; |
|
| 174 | + $this->quotedTable = ($this->schema ? "{$driver->quoteIdentifier($this->schema)}." : '').$driver->quoteIdentifier($this->table); |
|
| 175 | + $this->unquotedTable = ($this->schema ? "{$this->schema}." : '').$this->table; |
|
| 176 | 176 | $this->adapter->setModel($this, $this->quotedTable); |
| 177 | 177 | $this->initialized = true; |
| 178 | 178 | } |
@@ -196,7 +196,7 @@ discard block |
||
| 196 | 196 | $this->initialize(); |
| 197 | 197 | |
| 198 | 198 | return $this->context->getCache()->read( |
| 199 | - "{$this->className}::desc", function () { |
|
| 199 | + "{$this->className}::desc", function() { |
|
| 200 | 200 | return $this->context->getModelDescription($this); |
| 201 | 201 | }); |
| 202 | 202 | } |
@@ -374,7 +374,7 @@ discard block |
||
| 374 | 374 | $newInstance = clone $this; |
| 375 | 375 | $newInstance->setData($this->modelData[$offset]); |
| 376 | 376 | return $newInstance; |
| 377 | - } else if(!$this->hasMultipleItems() && !empty($this->modelData)) { |
|
| 377 | + } else if (!$this->hasMultipleItems() && !empty($this->modelData)) { |
|
| 378 | 378 | $newInstance = clone $this; |
| 379 | 379 | $newInstance->setData($this->modelData); |
| 380 | 380 | return $newInstance; |
@@ -605,7 +605,7 @@ discard block |
||
| 605 | 605 | { |
| 606 | 606 | $mapped = []; |
| 607 | 607 | if ($this->hasMultipleItems()) { |
| 608 | - foreach($this as $item) { |
|
| 608 | + foreach ($this as $item) { |
|
| 609 | 609 | $mapped[] = $callback($item); |
| 610 | 610 | } |
| 611 | 611 | } else if ($this->hasDataBeenSet) { |