Completed
Branch master (2ec5df)
by Albert
04:00
created
src/Api/AbstractApi.php 2 patches
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,6 @@
 block discarded – undo
36 36
 
37 37
     /**
38 38
      * @param AdapterInterface $adapter
39
-     * @param string|null      $endpoint
40 39
      */
41 40
     public function __construct(AdapterInterface $adapter)
42 41
     {
Please login to merge, or discard this 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/Backup.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -21,8 +21,8 @@
 block discarded – undo
21 21
     /**
22 22
      * List all backups on the current account.
23 23
      *
24
-     * @param int    $sub_id    Filter result set to only contain backups of this subscription object
25
-     * @param string $backup_id filter result set to only contain this backup
24
+     * @param int    $subId    Filter result set to only contain backups of this subscription object
25
+     * @param string $backupId filter result set to only contain this backup
26 26
      * 
27 27
      * @return BackupEntity
28 28
      */
Please login to merge, or discard this patch.
src/Api/ReservervedIp.php 2 patches
Doc Comments   +2 added lines, -3 removed lines patch added patch discarded remove patch
@@ -82,9 +82,8 @@  discard block
 block discarded – undo
82 82
     /**
83 83
      * Convert an existing IP on a subscription to a reserved IP.
84 84
      *
85
-     * @param int    $serverId  SUBID of the server that currently has the IP address
85
+     * @param int    $serverIdd  SUBID of the server that currently has the IP address
86 86
      * @param string $ipAddress IP address you want to convert
87
-     * @param string $paramname Label for this reserved IP
88 87
      *
89 88
      * @throws HttpException
90 89
      */
@@ -108,7 +107,7 @@  discard block
 block discarded – undo
108 107
      *
109 108
      * @throws HttpException
110 109
      *
111
-     * @return ActionEntity
110
+     * @return string
112 111
      */
113 112
     public function attach($ipAddress, $serverId)
114 113
     {
Please login to merge, or discard this 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/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.