Passed
Push — master ( bed3c3...6007cb )
by Jesse
28:09 queued 13s
created
src/AbstractClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
         $clientOptions = ['timeout', 'proxy'];
72 72
 
73 73
         // Only allow turning off ssl verification is it's for a proxy
74
-        if (! empty($options['proxy'])) {
74
+        if (!empty($options['proxy'])) {
75 75
             $clientOptions[] = 'verify';
76 76
         }
77 77
 
Please login to merge, or discard this patch.
src/Client.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -343,7 +343,7 @@  discard block
 block discarded – undo
343 343
     {
344 344
         // We need to modify the nested array keys to get them accepted by Cloudstack.
345 345
         // For example 'details[0][key]' should resolve to 'details[0].key'.
346
-        array_walk($params, function (&$value, $key) {
346
+        array_walk($params, function(&$value, $key) {
347 347
             if (is_array($value)) {
348 348
                 $parsedParams = [];
349 349
 
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
         // to encode the values, but we can't encode the keys. This would otherwise
363 363
         // compromise the signature. Therefore we can't use http_build_query().
364 364
         $queryParams = $this->flattenParams($params);
365
-        array_walk($queryParams, function (&$value, $key) {
365
+        array_walk($queryParams, function(&$value, $key) {
366 366
             $value = $key.'='.rawurlencode($value);
367 367
         });
368 368
 
Please login to merge, or discard this patch.
src/Util/UrlHelpersTrait.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -5,7 +5,6 @@
 block discarded – undo
5 5
 namespace PCextreme\Cloudstack\Util;
6 6
 
7 7
 use InvalidArgumentException;
8
-use PCextreme\Cloudstack\Exception\ClientException;
9 8
 
10 9
 trait UrlHelpersTrait
11 10
 {
Please login to merge, or discard this patch.
src/Console/ApiListCommand.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -93,7 +93,7 @@  discard block
 block discarded – undo
93 93
     protected function askApiKey(InputInterface $input, OutputInterface $output) : string
94 94
     {
95 95
         $question = (new Question('Enter API key: '))
96
-            ->setValidator(function ($answer) {
96
+            ->setValidator(function($answer) {
97 97
                 if (is_null($answer)) {
98 98
                     throw new \InvalidArgumentException("API key can't be null.");
99 99
                 }
@@ -115,7 +115,7 @@  discard block
 block discarded – undo
115 115
     protected function askSecretKey(InputInterface $input, OutputInterface $output) : string
116 116
     {
117 117
         $question = (new Question('Enter secret key: '))
118
-            ->setValidator(function ($answer) {
118
+            ->setValidator(function($answer) {
119 119
                 if (is_null($answer)) {
120 120
                     throw new \InvalidArgumentException("Secret key can't be null.");
121 121
                 }
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
         $listFile .= "// api_list.php @generated by api:list command\n\n";
177 177
         $listFile .= "return ".var_export($commands, true).";\n";
178 178
 
179
-        file_put_contents(__DIR__ . '/../../cache/api_list.php', $listFile);
179
+        file_put_contents(__DIR__.'/../../cache/api_list.php', $listFile);
180 180
 
181 181
         $progress->finish();
182 182
     }
Please login to merge, or discard this patch.
src/Console/Application.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
      */
35 35
     public function getHelp() : string
36 36
     {
37
-        return self::$logo . parent::getHelp();
37
+        return self::$logo.parent::getHelp();
38 38
     }
39 39
 
40 40
     /**
Please login to merge, or discard this patch.