@@ -56,7 +56,7 @@ discard block |
||
| 56 | 56 | */ |
| 57 | 57 | public static function prefixColumn(string $column): string |
| 58 | 58 | { |
| 59 | - return static::getTableName() . '.' . $column; |
|
| 59 | + return static::getTableName().'.'.$column; |
|
| 60 | 60 | } |
| 61 | 61 | |
| 62 | 62 | public function getDatabaseExplorer(): Explorer |
@@ -77,14 +77,14 @@ discard block |
||
| 77 | 77 | $scopeName = lcfirst(substr($name, 5)); |
| 78 | 78 | $scope = $this->structure->getScope(static::$tableName, $scopeName); |
| 79 | 79 | if (!$scope) { |
| 80 | - throw new RepositoryException('Scope ' . $scopeName . ' is not defined for table ' . static::$tableName); |
|
| 80 | + throw new RepositoryException('Scope '.$scopeName.' is not defined for table '.static::$tableName); |
|
| 81 | 81 | } |
| 82 | 82 | |
| 83 | - $scopeNameToCall = 'scope' . ucfirst($scope->getName()); |
|
| 83 | + $scopeNameToCall = 'scope'.ucfirst($scope->getName()); |
|
| 84 | 84 | return call_user_func_array([$this->findAll(), $scopeNameToCall], $arguments); |
| 85 | 85 | } |
| 86 | 86 | |
| 87 | - throw new RepositoryException('Call to undefined method ' . get_class($this) . '::' . $name . '()'); |
|
| 87 | + throw new RepositoryException('Call to undefined method '.get_class($this).'::'.$name.'()'); |
|
| 88 | 88 | } |
| 89 | 89 | |
| 90 | 90 | /********************************************************************\ |
@@ -120,7 +120,7 @@ discard block |
||
| 120 | 120 | */ |
| 121 | 121 | public function insert(array $data): ?ActiveRow |
| 122 | 122 | { |
| 123 | - $result = $this->transaction(function () use ($data) { |
|
| 123 | + $result = $this->transaction(function() use ($data) { |
|
| 124 | 124 | foreach ($this->behaviours as $behaviour) { |
| 125 | 125 | $data = $behaviour->beforeInsert($data); |
| 126 | 126 | } |
@@ -144,7 +144,7 @@ discard block |
||
| 144 | 144 | |
| 145 | 145 | public function update(ActiveRow $record, array $data): ?ActiveRow |
| 146 | 146 | { |
| 147 | - $result = $this->transaction(function () use ($record, $data) { |
|
| 147 | + $result = $this->transaction(function() use ($record, $data) { |
|
| 148 | 148 | $oldRecord = clone $record; |
| 149 | 149 | |
| 150 | 150 | foreach ($this->behaviours as $behaviour) { |
@@ -165,7 +165,7 @@ discard block |
||
| 165 | 165 | |
| 166 | 166 | public function delete(ActiveRow $record): bool |
| 167 | 167 | { |
| 168 | - return $this->transaction(function () use ($record): bool { |
|
| 168 | + return $this->transaction(function() use ($record): bool { |
|
| 169 | 169 | $oldRecord = clone $record; |
| 170 | 170 | |
| 171 | 171 | foreach ($this->behaviours as $behaviour) { |