@@ -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 | } |
@@ -75,7 +75,7 @@ discard block |
||
| 75 | 75 | public function findWith($entityName) |
| 76 | 76 | { |
| 77 | 77 | if (!isset($this->relatedRepository[$entityName])) { |
| 78 | - throw new \RuntimeException(get_class($this) . ": related $entityName repository not exists"); |
|
| 78 | + throw new \RuntimeException(get_class($this).": related $entityName repository not exists"); |
|
| 79 | 79 | } |
| 80 | 80 | |
| 81 | 81 | $this->with[$entityName] = new ArrayObject(); |
@@ -107,7 +107,7 @@ discard block |
||
| 107 | 107 | $relatedField = $this->getRelatedField($relatedEntityName); |
| 108 | 108 | |
| 109 | 109 | if (!isset($row[$relatedField])) { |
| 110 | - throw new \RuntimeException(get_class($this) . ": relation field $relatedEntityName not fetched"); |
|
| 110 | + throw new \RuntimeException(get_class($this).": relation field $relatedEntityName not fetched"); |
|
| 111 | 111 | } |
| 112 | 112 | |
| 113 | 113 | if (!in_array($row[$relatedField], (array)$relatedEntityIds)) { |
@@ -166,7 +166,7 @@ discard block |
||
| 166 | 166 | $relatedField = $this->getRelatedField($relatedEntityName); |
| 167 | 167 | |
| 168 | 168 | if (!isset($row[$relatedField])) { |
| 169 | - throw new \RuntimeException(get_class($this) . ": relation field $relatedEntityName not fetched"); |
|
| 169 | + throw new \RuntimeException(get_class($this).": relation field $relatedEntityName not fetched"); |
|
| 170 | 170 | } |
| 171 | 171 | |
| 172 | 172 | if (!in_array($row[$relatedField], (array)$relatedEntityIds)) { |
@@ -226,7 +226,7 @@ discard block |
||
| 226 | 226 | private function getRelatedField($entityName) |
| 227 | 227 | { |
| 228 | 228 | if (!isset($this->relationsConfig[$entityName])) { |
| 229 | - throw new \RuntimeException(get_class($this) . ": relation $entityName not exists"); |
|
| 229 | + throw new \RuntimeException(get_class($this).": relation $entityName not exists"); |
|
| 230 | 230 | } |
| 231 | 231 | |
| 232 | 232 | list($table, $field) = explode('.', $this->relationsConfig[$entityName][0]); |
@@ -258,7 +258,7 @@ discard block |
||
| 258 | 258 | */ |
| 259 | 259 | public function add(EntityInterface $entity) |
| 260 | 260 | { |
| 261 | - throw new \RuntimeException(get_class($this) . ' cannot adding'); |
|
| 261 | + throw new \RuntimeException(get_class($this).' cannot adding'); |
|
| 262 | 262 | } |
| 263 | 263 | |
| 264 | 264 | /** |
@@ -267,6 +267,6 @@ discard block |
||
| 267 | 267 | */ |
| 268 | 268 | public function remove(EntityInterface $entity) |
| 269 | 269 | { |
| 270 | - throw new \RuntimeException(get_class($this) . ' cannot removing'); |
|
| 270 | + throw new \RuntimeException(get_class($this).' cannot removing'); |
|
| 271 | 271 | } |
| 272 | 272 | } |
| 273 | 273 | \ No newline at end of file |