@@ -32,7 +32,7 @@ |
||
32 | 32 | |
33 | 33 | $this->extractMeta($ips); |
34 | 34 | |
35 | - return array_map(function ($ip) { |
|
35 | + return array_map(function($ip) { |
|
36 | 36 | return new ReservedIpEntity($ip); |
37 | 37 | }, $ips); |
38 | 38 | } |
@@ -33,7 +33,7 @@ discard block |
||
33 | 33 | |
34 | 34 | $this->extractMeta($volumes); |
35 | 35 | |
36 | - return array_map(function ($volume) { |
|
36 | + return array_map(function($volume) { |
|
37 | 37 | return new VolumeEntity($volume); |
38 | 38 | }, $volumes->volumes); |
39 | 39 | } |
@@ -52,7 +52,7 @@ discard block |
||
52 | 52 | |
53 | 53 | $this->extractMeta($volumes); |
54 | 54 | |
55 | - return array_map(function ($volume) { |
|
55 | + return array_map(function($volume) { |
|
56 | 56 | return new VolumeEntity($volume); |
57 | 57 | }, $volumes->volumes); |
58 | 58 | } |
@@ -212,7 +212,7 @@ discard block |
||
212 | 212 | |
213 | 213 | $this->meta = $this->extractMeta($actions); |
214 | 214 | |
215 | - return array_map(function ($action) { |
|
215 | + return array_map(function($action) { |
|
216 | 216 | return new ActionEntity($action); |
217 | 217 | }, $actions->actions); |
218 | 218 | } |
@@ -96,7 +96,7 @@ |
||
96 | 96 | public function update($domain, $recordId, $name = null, $data = null, $priority = null, $ttl = null) |
97 | 97 | { |
98 | 98 | $content = compact('name', 'data', 'priority', 'ttl', 'domain'); |
99 | - $content = array_filter($content, function ($val) { |
|
99 | + $content = array_filter($content, function($val) { |
|
100 | 100 | return $val !== null; |
101 | 101 | }); |
102 | 102 | $content['RECORDID'] = $recordId; |
@@ -31,7 +31,7 @@ |
||
31 | 31 | |
32 | 32 | $this->extractMeta($images); |
33 | 33 | |
34 | - return array_map(function ($image) { |
|
34 | + return array_map(function($image) { |
|
35 | 35 | return new ImageEntity($image); |
36 | 36 | }, $images); |
37 | 37 | } |
@@ -76,7 +76,7 @@ |
||
76 | 76 | { |
77 | 77 | $object = json_decode($response, true); |
78 | 78 | if ($isArray) { |
79 | - return array_map(function ($entity) use ($class) { |
|
79 | + return array_map(function($entity) use ($class) { |
|
80 | 80 | return new $class($entity); |
81 | 81 | }, $object); |
82 | 82 | } |
@@ -38,7 +38,7 @@ |
||
38 | 38 | |
39 | 39 | $this->extractMeta($snapshots); |
40 | 40 | |
41 | - return array_map(function ($snapshots) { |
|
41 | + return array_map(function($snapshots) { |
|
42 | 42 | return new SnapshotEntity($snapshots); |
43 | 43 | }, $snapshots->snapshots); |
44 | 44 | } |
@@ -31,7 +31,7 @@ |
||
31 | 31 | |
32 | 32 | $this->extractMeta($keys); |
33 | 33 | |
34 | - return array_map(function ($key) { |
|
34 | + return array_map(function($key) { |
|
35 | 35 | return new KeyEntity($key); |
36 | 36 | }, $keys->ssh_keys); |
37 | 37 | } |
@@ -29,7 +29,7 @@ |
||
29 | 29 | |
30 | 30 | $this->extractMeta($regions); |
31 | 31 | |
32 | - return array_map(function ($region) { |
|
32 | + return array_map(function($region) { |
|
33 | 33 | return new RegionEntity($region); |
34 | 34 | }, $regions->regions); |
35 | 35 | } |
@@ -29,7 +29,7 @@ discard block |
||
29 | 29 | |
30 | 30 | $blocks = json_decode($blocks, true); |
31 | 31 | |
32 | - return array_map(function ($block) { |
|
32 | + return array_map(function($block) { |
|
33 | 33 | return new BlockEntity($block); |
34 | 34 | }, $blocks); |
35 | 35 | } |
@@ -45,7 +45,7 @@ discard block |
||
45 | 45 | { |
46 | 46 | $response = $this->adapter->get(sprintf('%s/block/list?SUBID=%d', $this->endpoint, $subId)); |
47 | 47 | |
48 | - return $this->handleResponse($blocks, BlockEntity::class); |
|
48 | + return $this->handleResponse($blocks, BlockEntity::class); |
|
49 | 49 | } |
50 | 50 | |
51 | 51 | /** |