| @@ -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) |