Completed
Push — master ( dc704c...7795f0 )
by Albert
01:44
created
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/ReservedIp.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   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 
31 31
         $this->extractMeta($ips);
32 32
 
33
-        return \array_map(function ($ip) {
33
+        return \array_map(function($ip) {
34 34
             return new ReservedIpEntity($ip);
35 35
         }, $ips);
36 36
     }
@@ -135,6 +135,6 @@  discard block
 block discarded – undo
135 135
      */
136 136
     private function executeAction($ipAddress, $serverId, $action)
137 137
     {
138
-        return $this->adapter->post(\sprintf('%s/reservedip/' . $action, $this->endpoint), ['ip_address' => $ipAddress, 'attach_SUBID' => $serverId]);
138
+        return $this->adapter->post(\sprintf('%s/reservedip/'.$action, $this->endpoint), ['ip_address' => $ipAddress, 'attach_SUBID' => $serverId]);
139 139
     }
140 140
 }
Please login to merge, or discard this patch.
tests/TestCase.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -28,6 +28,9 @@
 block discarded – undo
28 28
         Mockery::close();
29 29
     }
30 30
 
31
+    /**
32
+     * @return AdapterInterface
33
+     */
31 34
     protected function getRequest()
32 35
     {
33 36
         return Mockery::mock(AdapterInterface::class)->shouldReceive('get')->andReturn($this->getResponse())->mock();
Please login to merge, or discard this patch.
src/Vultr.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -63,7 +63,7 @@
 block discarded – undo
63 63
     protected function getClass($class)
64 64
     {
65 65
         $resource = static::studly($class);
66
-        $class    = 'Vultr\\Api\\' . $resource;
66
+        $class    = 'Vultr\\Api\\'.$resource;
67 67
         if (\class_exists($class)) {
68 68
             return new $class($this->adapter);
69 69
         }
Please login to merge, or discard this patch.
src/Api/FirewallGroup.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     {
63 63
         $params = null !== $groupId ? '?FIREWALLGROUPID=%s' : '';
64 64
 
65
-        return $this->adapter->get(\sprintf('%s/firewall/group_list' . $params, $this->endpoint, $groupId));
65
+        return $this->adapter->get(\sprintf('%s/firewall/group_list'.$params, $this->endpoint, $groupId));
66 66
     }
67 67
 
68 68
     /**
Please login to merge, or discard this patch.
src/Api/Block.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
 
28 28
         $blocks = \json_decode($blocks, true);
29 29
 
30
-        return \array_map(function ($block) {
30
+        return \array_map(function($block) {
31 31
             return new BlockEntity($block);
32 32
         }, $blocks);
33 33
     }
Please login to merge, or discard this patch.
src/Api/Size.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,7 +28,7 @@
 block discarded – undo
28 28
 
29 29
         $this->extractMeta($sizes);
30 30
 
31
-        return \array_map(function ($size) {
31
+        return \array_map(function($size) {
32 32
             return new SizeEntity($size);
33 33
         }, $sizes->sizes);
34 34
     }
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
@@ -31,7 +31,7 @@  discard block
 block discarded – undo
31 31
 
32 32
         $this->extractMeta($volumes);
33 33
 
34
-        return \array_map(function ($volume) {
34
+        return \array_map(function($volume) {
35 35
             return new VolumeEntity($volume);
36 36
         }, $volumes->volumes);
37 37
     }
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         $this->extractMeta($volumes);
52 52
 
53
-        return \array_map(function ($volume) {
53
+        return \array_map(function($volume) {
54 54
             return new VolumeEntity($volume);
55 55
         }, $volumes->volumes);
56 56
     }
@@ -210,7 +210,7 @@  discard block
 block discarded – undo
210 210
 
211 211
         $this->meta = $this->extractMeta($actions);
212 212
 
213
-        return \array_map(function ($action) {
213
+        return \array_map(function($action) {
214 214
             return new ActionEntity($action);
215 215
         }, $actions->actions);
216 216
     }
Please login to merge, or discard this patch.
src/Api/FirewallRule.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     public function list($groupId, $direction, $ipType)
27 27
     {
28 28
         $params   = 'FIREWALLGROUPID=%s&direction=%s&ip_type=%s';
29
-        $response = $this->adapter->get(\sprintf('%s/firewall/rule_list' . $params, $this->endpoint, $groupId, $direction, $ipType));
29
+        $response = $this->adapter->get(\sprintf('%s/firewall/rule_list'.$params, $this->endpoint, $groupId, $direction, $ipType));
30 30
 
31 31
         return $this->handleResponse($response, self::class, true);
32 32
     }
Please login to merge, or discard this patch.