@@ -238,7 +238,7 @@ |
||
238 | 238 | foreach ($orders as $item) { |
239 | 239 | $exploded = explode(' ', trim($item)); |
240 | 240 | if (count($exploded) == 2) { |
241 | - $order = $this->getField($exploded[0]) . ' ' . $exploded[1]; |
|
241 | + $order = $this->getField($exploded[0]).' '.$exploded[1]; |
|
242 | 242 | } else { |
243 | 243 | $order = $this->getField($attribute); |
244 | 244 | } |
@@ -88,7 +88,7 @@ |
||
88 | 88 | } |
89 | 89 | |
90 | 90 | /** |
91 | - * @param CriteriaInterface|array $criteria |
|
91 | + * @param CriteriaInterface $criteria |
|
92 | 92 | * @return EntityInterface|null |
93 | 93 | */ |
94 | 94 | public function find($criteria) |
@@ -79,7 +79,7 @@ discard block |
||
79 | 79 | public function with($entityName) |
80 | 80 | { |
81 | 81 | if (!isset($this->relatedRepository[$entityName])) { |
82 | - throw new \RuntimeException(get_class($this) . ": related $entityName repository not exists"); |
|
82 | + throw new \RuntimeException(get_class($this).": related $entityName repository not exists"); |
|
83 | 83 | } |
84 | 84 | |
85 | 85 | $this->with[$entityName] = []; |
@@ -118,7 +118,7 @@ discard block |
||
118 | 118 | $relatedField = $this->getRelatedField($relatedEntityName); |
119 | 119 | |
120 | 120 | if (!array_key_exists($relatedField, $row)) { |
121 | - throw new \RuntimeException(get_class($this) . ": relation field $relatedEntityName not fetched"); |
|
121 | + throw new \RuntimeException(get_class($this).": relation field $relatedEntityName not fetched"); |
|
122 | 122 | } |
123 | 123 | |
124 | 124 | if (!isset($relatedEntityIds[$relatedEntityName])) { |
@@ -194,7 +194,7 @@ discard block |
||
194 | 194 | $relatedField = $this->getRelatedField($relatedEntityName); |
195 | 195 | |
196 | 196 | if (!array_key_exists($relatedField, $row)) { |
197 | - throw new \RuntimeException(get_class($this) . ": relation field $relatedEntityName not fetched"); |
|
197 | + throw new \RuntimeException(get_class($this).": relation field $relatedEntityName not fetched"); |
|
198 | 198 | } |
199 | 199 | |
200 | 200 | if (!isset($relatedEntityIds[$relatedEntityName])) { |
@@ -262,7 +262,7 @@ discard block |
||
262 | 262 | private function getRelatedField($entityName) |
263 | 263 | { |
264 | 264 | if (!isset($this->relationsConfig[$entityName])) { |
265 | - throw new \RuntimeException(get_class($this) . ": relation $entityName not exists"); |
|
265 | + throw new \RuntimeException(get_class($this).": relation $entityName not exists"); |
|
266 | 266 | } |
267 | 267 | |
268 | 268 | list($table, $field) = explode('.', $this->relationsConfig[$entityName][0]); |
@@ -294,7 +294,7 @@ discard block |
||
294 | 294 | */ |
295 | 295 | public function add(EntityInterface $entity) |
296 | 296 | { |
297 | - throw new \RuntimeException(get_class($this) . ' cannot adding'); |
|
297 | + throw new \RuntimeException(get_class($this).' cannot adding'); |
|
298 | 298 | } |
299 | 299 | |
300 | 300 | /** |
@@ -303,6 +303,6 @@ discard block |
||
303 | 303 | */ |
304 | 304 | public function remove(EntityInterface $entity) |
305 | 305 | { |
306 | - throw new \RuntimeException(get_class($this) . ' cannot removing'); |
|
306 | + throw new \RuntimeException(get_class($this).' cannot removing'); |
|
307 | 307 | } |
308 | 308 | } |
@@ -256,7 +256,7 @@ |
||
256 | 256 | /** |
257 | 257 | * @param EntityInterface $createdEntity |
258 | 258 | */ |
259 | - protected function triggerCreate(EntityInterface &$createdEntity) |
|
259 | + protected function triggerCreate(EntityInterface&$createdEntity) |
|
260 | 260 | { |
261 | 261 | $this->eventManager->addIdentifiers(get_class($createdEntity)); |
262 | 262 |
@@ -135,7 +135,7 @@ discard block |
||
135 | 135 | } |
136 | 136 | |
137 | 137 | /** |
138 | - * @param CriteriaInterface|array $criteria |
|
138 | + * @param CriteriaInterface $criteria |
|
139 | 139 | * @return EntityInterface|null |
140 | 140 | */ |
141 | 141 | public function find($criteria) |
@@ -190,7 +190,7 @@ discard block |
||
190 | 190 | } |
191 | 191 | |
192 | 192 | /** |
193 | - * @param CriteriaInterface|array $criteria |
|
193 | + * @param CriteriaInterface $criteria |
|
194 | 194 | * @return EntityInterface[] |
195 | 195 | */ |
196 | 196 | public function findMany($criteria) |
@@ -256,7 +256,7 @@ |
||
256 | 256 | /** |
257 | 257 | * @param EntityInterface $createdEntity |
258 | 258 | */ |
259 | - protected function triggerCreate(EntityInterface &$createdEntity) |
|
259 | + protected function triggerCreate(EntityInterface&$createdEntity) |
|
260 | 260 | { |
261 | 261 | $this->eventManager->addIdentifiers(get_class($createdEntity)); |
262 | 262 |