@@ -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 | /**********************************************************************\ |
@@ -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; |
@@ -72,7 +72,7 @@ discard block |
||
72 | 72 | */ |
73 | 73 | public static function prefixColumn(string $column): string |
74 | 74 | { |
75 | - return static::getTableName() . '.' . $column; |
|
75 | + return static::getTableName().'.'.$column; |
|
76 | 76 | } |
77 | 77 | |
78 | 78 | /** |
@@ -99,14 +99,14 @@ discard block |
||
99 | 99 | $scopeName = lcfirst(substr($name, 5)); |
100 | 100 | $scope = $this->structure->getScope(static::$tableName, $scopeName); |
101 | 101 | if (!$scope) { |
102 | - throw new RepositoryException('Scope ' . $scopeName . ' is not defined for table ' . static::$tableName); |
|
102 | + throw new RepositoryException('Scope '.$scopeName.' is not defined for table '.static::$tableName); |
|
103 | 103 | } |
104 | 104 | |
105 | - $scopeNameToCall = 'scope' . ucfirst($scope->getName()); |
|
105 | + $scopeNameToCall = 'scope'.ucfirst($scope->getName()); |
|
106 | 106 | return call_user_func_array([$this->findAll(), $scopeNameToCall], $arguments); |
107 | 107 | } |
108 | 108 | |
109 | - throw new RepositoryException('Call to undefined method ' . get_class($this) . '::' . $name . '()'); |
|
109 | + throw new RepositoryException('Call to undefined method '.get_class($this).'::'.$name.'()'); |
|
110 | 110 | } |
111 | 111 | |
112 | 112 | /********************************************************************\ |
@@ -162,7 +162,7 @@ discard block |
||
162 | 162 | */ |
163 | 163 | public function insert(array $data): ?ActiveRow |
164 | 164 | { |
165 | - $result = $this->transaction(function () use ($data) { |
|
165 | + $result = $this->transaction(function() use ($data) { |
|
166 | 166 | foreach ($this->behaviours as $behaviour) { |
167 | 167 | $data = $behaviour->beforeInsert($data); |
168 | 168 | } |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | */ |
193 | 193 | public function update(ActiveRow $record, array $data): ?ActiveRow |
194 | 194 | { |
195 | - $result = $this->transaction(function () use ($record, $data) { |
|
195 | + $result = $this->transaction(function() use ($record, $data) { |
|
196 | 196 | $oldRecord = clone $record; |
197 | 197 | |
198 | 198 | foreach ($this->behaviours as $behaviour) { |
@@ -218,7 +218,7 @@ discard block |
||
218 | 218 | */ |
219 | 219 | public function delete(ActiveRow $record): bool |
220 | 220 | { |
221 | - $result = $this->transaction(function () use ($record): bool { |
|
221 | + $result = $this->transaction(function() use ($record): bool { |
|
222 | 222 | $oldRecord = clone $record; |
223 | 223 | |
224 | 224 | foreach ($this->behaviours as $behaviour) { |
@@ -133,7 +133,7 @@ |
||
133 | 133 | public function ref($key, $throughColumn = null): ?ActiveRow |
134 | 134 | { |
135 | 135 | $row = $this->record->ref($key, $throughColumn); |
136 | - if($row instanceof IRow) { |
|
136 | + if ($row instanceof IRow) { |
|
137 | 137 | $result = $this->prepareRecord($row); |
138 | 138 | $result->setReferencingRecord($this); |
139 | 139 | return $result; |