Completed
Branch master (7b5e5d)
by Taosikai
03:11
created
src/EntityCollection.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
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
         };
Please login to merge, or discard this patch.
src/EntityFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.