Completed
Branch master (2ec5df)
by Albert
04:00
created
src/Api/ReservervedIp.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Api/Volume.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Api/DomainRecord.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
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;
Please login to merge, or discard this patch.
src/Api/Image.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Api/AbstractApi.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -76,7 +76,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
src/Api/Snapshot.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Api/Key.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Api/Region.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
src/Api/Block.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     /**
Please login to merge, or discard this patch.