@@ -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 | } |
@@ -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] = []; |
@@ -114,7 +114,7 @@ discard block |
||
| 114 | 114 | $relatedField = $this->getRelatedField($relatedEntityName); |
| 115 | 115 | |
| 116 | 116 | if (!isset($row[$relatedField])) { |
| 117 | - throw new \RuntimeException(get_class($this) . ": relation field $relatedEntityName not fetched"); |
|
| 117 | + throw new \RuntimeException(get_class($this).": relation field $relatedEntityName not fetched"); |
|
| 118 | 118 | } |
| 119 | 119 | |
| 120 | 120 | if (!isset($relatedEntityIds[$relatedEntityName])) { |
@@ -177,7 +177,7 @@ discard block |
||
| 177 | 177 | $relatedField = $this->getRelatedField($relatedEntityName); |
| 178 | 178 | |
| 179 | 179 | if (!isset($row[$relatedField])) { |
| 180 | - throw new \RuntimeException(get_class($this) . ": relation field $relatedEntityName not fetched"); |
|
| 180 | + throw new \RuntimeException(get_class($this).": relation field $relatedEntityName not fetched"); |
|
| 181 | 181 | } |
| 182 | 182 | |
| 183 | 183 | if (!isset($relatedEntityIds[$relatedEntityName])) { |
@@ -241,7 +241,7 @@ discard block |
||
| 241 | 241 | private function getRelatedField($entityName) |
| 242 | 242 | { |
| 243 | 243 | if (!isset($this->relationsConfig[$entityName])) { |
| 244 | - throw new \RuntimeException(get_class($this) . ": relation $entityName not exists"); |
|
| 244 | + throw new \RuntimeException(get_class($this).": relation $entityName not exists"); |
|
| 245 | 245 | } |
| 246 | 246 | |
| 247 | 247 | list($table, $field) = explode('.', $this->relationsConfig[$entityName][0]); |
@@ -273,7 +273,7 @@ discard block |
||
| 273 | 273 | */ |
| 274 | 274 | public function add(EntityInterface $entity) |
| 275 | 275 | { |
| 276 | - throw new \RuntimeException(get_class($this) . ' cannot adding'); |
|
| 276 | + throw new \RuntimeException(get_class($this).' cannot adding'); |
|
| 277 | 277 | } |
| 278 | 278 | |
| 279 | 279 | /** |
@@ -282,6 +282,6 @@ discard block |
||
| 282 | 282 | */ |
| 283 | 283 | public function remove(EntityInterface $entity) |
| 284 | 284 | { |
| 285 | - throw new \RuntimeException(get_class($this) . ' cannot removing'); |
|
| 285 | + throw new \RuntimeException(get_class($this).' cannot removing'); |
|
| 286 | 286 | } |
| 287 | 287 | } |
@@ -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) |
@@ -296,7 +296,7 @@ |
||
| 296 | 296 | /** |
| 297 | 297 | * @param EntityInterface $createdEntity |
| 298 | 298 | */ |
| 299 | - protected function triggerCreate(EntityInterface &$createdEntity) |
|
| 299 | + protected function triggerCreate(EntityInterface&$createdEntity) |
|
| 300 | 300 | { |
| 301 | 301 | $this->eventManager->addIdentifiers(get_class($createdEntity)); |
| 302 | 302 | |
@@ -296,7 +296,7 @@ |
||
| 296 | 296 | /** |
| 297 | 297 | * @param EntityInterface $createdEntity |
| 298 | 298 | */ |
| 299 | - protected function triggerCreate(EntityInterface &$createdEntity) |
|
| 299 | + protected function triggerCreate(EntityInterface&$createdEntity) |
|
| 300 | 300 | { |
| 301 | 301 | $this->eventManager->addIdentifiers(get_class($createdEntity)); |
| 302 | 302 | |
@@ -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) |