@@ -17,7 +17,7 @@ |
||
| 17 | 17 | */ |
| 18 | 18 | public function firstByAttribute($attributeName, $attributeValue) |
| 19 | 19 | { |
| 20 | - $callback = function ($entity) use ($attributeName, $attributeValue) { |
|
| 20 | + $callback = function($entity) use ($attributeName, $attributeValue) { |
|
| 21 | 21 | $method = 'get' . ucfirst($attributeName); |
| 22 | 22 | return $entity->$method() == $attributeValue; |
| 23 | 23 | }; |
@@ -16,7 +16,7 @@ |
||
| 16 | 16 | */ |
| 17 | 17 | public static function createEntities($entityClass, $dataArray) |
| 18 | 18 | { |
| 19 | - return array_map(function ($data) use ($entityClass) { |
|
| 19 | + return array_map(function($data) use ($entityClass) { |
|
| 20 | 20 | return static::createEntity($entityClass, $data); |
| 21 | 21 | }, $dataArray); |
| 22 | 22 | } |