Completed
Branch master (2ec5df)
by Albert
04:00
created
src/Api/Server.php 2 patches
Indentation   -1 removed lines patch added patch discarded remove patch
@@ -112,7 +112,6 @@
 block discarded – undo
112 112
      * @param string    $vpsPlanId
113 113
      * @param string    $osId
114 114
      * @param array     $options
115
-
116 115
      *
117 116
      * @throws HttpException
118 117
      *
Please login to merge, or discard this patch.
Spacing   +12 added lines, -12 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
 
43 43
         $this->extractMeta($droplets);
44 44
 
45
-        return array_map(function ($droplet) {
45
+        return array_map(function($droplet) {
46 46
             return new DropletEntity($droplet);
47 47
         }, $droplets->droplets);
48 48
     }
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
 
59 59
         $droplets = json_decode($droplets);
60 60
 
61
-        return array_map(function ($droplet) {
61
+        return array_map(function($droplet) {
62 62
             return new DropletEntity($droplet);
63 63
         }, $droplets->droplets);
64 64
     }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
         $neighbors = json_decode($neighbors);
74 74
 
75
-        return array_map(function ($neighbor) {
75
+        return array_map(function($neighbor) {
76 76
             return new DropletEntity($neighbor);
77 77
         }, $neighbors->neighbors);
78 78
     }
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         $upgrades = json_decode($upgrades);
88 88
 
89
-        return array_map(function ($upgrade) {
89
+        return array_map(function($upgrade) {
90 90
             return new UpgradeEntity($upgrade);
91 91
         }, $upgrades);
92 92
     }
@@ -128,8 +128,8 @@  discard block
 block discarded – undo
128 128
         $optional = [
129 129
             'ipxe_chain_url',
130 130
             'ISOID',
131
-            'SCRIPTID' ,
132
-            'SNAPSHOTID' ,
131
+            'SCRIPTID',
132
+            'SNAPSHOTID',
133 133
             'enable_ipv6',
134 134
             'enable_private_network',
135 135
             'label',
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
             'FIREWALLGROUPID',
146 146
         ];
147 147
         foreach ($optional as $key => $option) {
148
-            if(array_key_exists($option, $options)){
148
+            if (array_key_exists($option, $options)) {
149 149
                 
150 150
             }
151 151
         }
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
         $droplet = json_decode($droplet);
156 156
 
157 157
         if (is_array($names)) {
158
-            return array_map(function ($droplet) {
158
+            return array_map(function($droplet) {
159 159
                 return new DropletEntity($droplet);
160 160
             }, $droplet->droplets);
161 161
         }
@@ -188,7 +188,7 @@  discard block
 block discarded – undo
188 188
 
189 189
         $this->meta = $this->extractMeta($kernels);
190 190
 
191
-        return array_map(function ($kernel) {
191
+        return array_map(function($kernel) {
192 192
             return new KernelEntity($kernel);
193 193
         }, $kernels->kernels);
194 194
     }
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
 
207 207
         $this->meta = $this->extractMeta($snapshots);
208 208
 
209
-        return array_map(function ($snapshot) {
209
+        return array_map(function($snapshot) {
210 210
             $snapshot = new ImageEntity($snapshot);
211 211
 
212 212
             return $snapshot;
@@ -226,7 +226,7 @@  discard block
 block discarded – undo
226 226
 
227 227
         $this->meta = $this->extractMeta($backups);
228 228
 
229
-        return array_map(function ($backup) {
229
+        return array_map(function($backup) {
230 230
             return new ImageEntity($backup);
231 231
         }, $backups->backups);
232 232
     }
@@ -244,7 +244,7 @@  discard block
 block discarded – undo
244 244
 
245 245
         $this->meta = $this->extractMeta($actions);
246 246
 
247
-        return array_map(function ($action) {
247
+        return array_map(function($action) {
248 248
             return new ActionEntity($action);
249 249
         }, $actions->actions);
250 250
     }
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
@@ -30,7 +30,7 @@
 block discarded – undo
30 30
 
31 31
         $this->extractMeta($sizes);
32 32
 
33
-        return array_map(function ($size) {
33
+        return array_map(function($size) {
34 34
             return new SizeEntity($size);
35 35
         }, $sizes->sizes);
36 36
     }
Please login to merge, or discard this patch.
src/Support/Str.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@
 block discarded – undo
40 40
      */
41 41
     public static function convertToCamelCase($str)
42 42
     {
43
-        $string =  static::studly($str);
43
+        $string = static::studly($str);
44 44
 
45 45
         return lcfirst($string);
46 46
     }
Please login to merge, or discard this patch.