@@ -64,7 +64,7 @@ |
||
64 | 64 | |
65 | 65 | public function collection() |
66 | 66 | { |
67 | - return array_map(function (array $data) { |
|
67 | + return array_map(function(array $data) { |
|
68 | 68 | return new $this->class($data, $this->apiProvider, $this->resource); |
69 | 69 | }, $this->data); |
70 | 70 | } |
@@ -60,7 +60,7 @@ |
||
60 | 60 | return []; |
61 | 61 | } |
62 | 62 | |
63 | - return array_map(function (array $item) { |
|
63 | + return array_map(function(array $item) { |
|
64 | 64 | return $this->makeEntityFrom(TweetMedia::class, $item); |
65 | 65 | }, $media); |
66 | 66 | } |
@@ -66,7 +66,7 @@ |
||
66 | 66 | return []; |
67 | 67 | } |
68 | 68 | |
69 | - $entities = array_map(function (array $item) { |
|
69 | + $entities = array_map(function(array $item) { |
|
70 | 70 | switch ($item['type'] ?? 0) { |
71 | 71 | case MediaType::IMAGE: |
72 | 72 | return $this->makeEntityFrom(Image::class, $item); |
@@ -22,7 +22,7 @@ |
||
22 | 22 | { |
23 | 23 | $reflection = new \ReflectionClass($this); |
24 | 24 | /** @var \ReflectionProperty[] $properties */ |
25 | - $properties = array_filter($reflection->getProperties(), function (\ReflectionProperty $property) { |
|
25 | + $properties = array_filter($reflection->getProperties(), function(\ReflectionProperty $property) { |
|
26 | 26 | return $property->isPublic(); |
27 | 27 | }); |
28 | 28 |