@@ -61,12 +61,12 @@ |
||
| 61 | 61 | $scopeName = lcfirst(substr($name, 5)); |
| 62 | 62 | $scope = $this->structure->getScope($this->selection->getName(), $scopeName); |
| 63 | 63 | if (!$scope) { |
| 64 | - trigger_error('Scope ' . $scopeName . ' is not defined for table ' . $this->selection->getName(), E_USER_ERROR); |
|
| 64 | + trigger_error('Scope '.$scopeName.' is not defined for table '.$this->selection->getName(), E_USER_ERROR); |
|
| 65 | 65 | } |
| 66 | 66 | return $this->where(call_user_func_array($scope->getCallback(), $arguments)); |
| 67 | 67 | } |
| 68 | 68 | |
| 69 | - trigger_error('Call to undefined method ' . get_class($this) . '::' . $name . '()', E_USER_ERROR); |
|
| 69 | + trigger_error('Call to undefined method '.get_class($this).'::'.$name.'()', E_USER_ERROR); |
|
| 70 | 70 | } |
| 71 | 71 | |
| 72 | 72 | /**********************************************************************\ |
@@ -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) { |
@@ -29,7 +29,7 @@ |
||
| 29 | 29 | { |
| 30 | 30 | foreach ($scopes as $scope) { |
| 31 | 31 | if (!($scope instanceof Scope)) { |
| 32 | - throw new SimpleMapperException('Scopes can be only of class ' . Scope::class); |
|
| 32 | + throw new SimpleMapperException('Scopes can be only of class '.Scope::class); |
|
| 33 | 33 | } |
| 34 | 34 | |
| 35 | 35 | $this->data[$tableName]['scopes'][$scope->getName()] = $scope; |