Completed
Branch master (ae6db9)
by Matt
01:40
created
src/Billow/DropletService.php 1 patch
Upper-Lower-Casing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
      * @return \Psr\Http\Message\ResponseInterface
91 91
      * @throws \Billow\Exceptions\ProvisionException
92 92
      */
93
-    public function create(Array $dropletRequest, Array $headers = [])
93
+    public function create(array $dropletRequest, array $headers = [])
94 94
     {
95 95
         $headers = $this->prepareHeaders($headers);
96 96
 
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      * @return \Billow\Droplets\Droplet
122 122
      * @throws \Billow\Exceptions\DropletException
123 123
      */
124
-    public function retrieve($dropletId, Array $headers = [])
124
+    public function retrieve($dropletId, array $headers = [])
125 125
     {
126 126
         $headers = $this->prepareHeaders($headers);
127 127
         $params = ['headers' => $headers];
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
      * @param int $page
152 152
      * @return Array
153 153
      */
154
-    public function retrieveAll(Array $headers = [], $per_page = 25, $page = 1)
154
+    public function retrieveAll(array $headers = [], $per_page = 25, $page = 1)
155 155
     {
156 156
         $headers = $this->prepareHeaders($headers);
157 157
         $params = ['headers' => $headers];
@@ -191,7 +191,7 @@  discard block
 block discarded – undo
191 191
      * @param Array $headers
192 192
      * @return \Psr\Http\Message\ResponseInterface
193 193
      */
194
-    public function performAction(DropletInterface $droplet, ActionInterface $action, Array $headers = [])
194
+    public function performAction(DropletInterface $droplet, ActionInterface $action, array $headers = [])
195 195
     {
196 196
         $headers = $this->prepareHeaders($headers);
197 197
         $dropletValues = $droplet->toArray();   
Please login to merge, or discard this patch.
src/Billow/Client.php 1 patch
Upper-Lower-Casing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
      * @throws \GuzzleHttp\Exception\RequestException
42 42
      * @throws \Exception
43 43
      */
44
-    public function get($url = null, Array $options = [])
44
+    public function get($url = null, array $options = [])
45 45
     {
46 46
         $this->getHttpClient();
47 47
         try {
@@ -63,7 +63,7 @@  discard block
 block discarded – undo
63 63
      * @throws \GuzzleHttp\Exception\RequestException
64 64
      * @throws \Exception
65 65
      */
66
-    public function post($url = null, Array $options = [])
66
+    public function post($url = null, array $options = [])
67 67
     {
68 68
         $this->getHttpClient();
69 69
         try {
Please login to merge, or discard this patch.
src/Billow/Droplets/Droplet.php 2 patches
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,7 @@
 block discarded – undo
10 10
  * @method toArray represent the droplet as an Array
11 11
  * @method setImage set the image name
12 12
  */
13
-abstract class Droplet 
13
+abstract class Droplet
14 14
 {
15 15
     /**
16 16
      * ID for the droplet
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -137,7 +137,7 @@
 block discarded – undo
137 137
      *
138 138
      * @params array $boxData
139 139
      */
140
-    public function __construct(Array $boxData)
140
+    public function __construct(array $boxData)
141 141
     {
142 142
         foreach ($boxData as $key => $value) {
143 143
             $this->$key = $value;
Please login to merge, or discard this patch.
src/Billow/Droplets/DropletFactoryInterface.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -14,5 +14,5 @@
 block discarded – undo
14 14
      *
15 15
      * @param Array $dropletInfo
16 16
      */
17
-    public function getDroplet(Array $dropletInfo);
17
+    public function getDroplet(array $dropletInfo);
18 18
 }
Please login to merge, or discard this patch.
src/Billow/Droplets/DropletFactory.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      * @param Array $dropletInfo 
18 18
      * @return \Billow\Droplets\DropletInterface
19 19
      */
20
-    public function getDroplet(Array $dropletInfo)
20
+    public function getDroplet(array $dropletInfo)
21 21
     {
22 22
         if (!isset($dropletInfo['image']['distribution'])) {
23 23
             throw new InvalidArgumentException('Image information not found in droplet info');
Please login to merge, or discard this patch.
src/Billow/Actions/ChangeKernel.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      * @param array $values
38 38
      * @throws \InvalidArgumentException
39 39
      */
40
-    public function __construct(Array $values)
40
+    public function __construct(array $values)
41 41
     {
42 42
         if (!isset($values['kernel'])) {
43 43
             throw new InvalidArgumentException('Kernel argument must be an integer');
Please login to merge, or discard this patch.
src/Billow/Actions/Action.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public function setId($id)
42 42
     {
43
-       $this->id = $id; 
43
+        $this->id = $id; 
44 44
     }
45 45
 
46 46
     /**
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
      * @param string $body
51 51
      * @return \GuzzleHttp\Psr7\Request
52 52
      */
53
-    public function getRequest(Array $headers = [], $body = '')
53
+    public function getRequest(array $headers = [], $body = '')
54 54
     {
55 55
         if ($this->id === null) {
56 56
             throw new RuntimeException('You must provide the Droplet ID you want to perform an action on');
Please login to merge, or discard this patch.
src/Billow/Actions/CreateSnapshot.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
      * @param Array $values
38 38
      * @throws \InvalidArgumentException
39 39
      */
40
-    public function __construct(Array $values)
40
+    public function __construct(array $values)
41 41
     {
42 42
         if (!isset($values['name'])) {
43 43
             throw new InvalidArgumentException('Required value "Name" is not present');
Please login to merge, or discard this patch.
src/Billow/Actions/ActionInterface.php 1 patch
Upper-Lower-Casing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -17,7 +17,7 @@
 block discarded – undo
17 17
      * @param string $body
18 18
      * @return \GuzzleHttp\Psr7\Request 
19 19
      */
20
-    public function getRequest(Array $headers, $body);
20
+    public function getRequest(array $headers, $body);
21 21
 
22 22
     /**
23 23
      * Method to set the id for the request
Please login to merge, or discard this patch.