@@ -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] = []; |
@@ -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 | } |