@@ -71,7 +71,7 @@ |
||
| 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 | |
@@ -34,7 +34,7 @@ |
||
| 34 | 34 | */ |
| 35 | 35 | public function getHelp() |
| 36 | 36 | { |
| 37 | - return self::$logo . parent::getHelp(); |
|
| 37 | + return self::$logo.parent::getHelp(); |
|
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php namespace PCextreme\Cloudstack\Util; |
| 2 | 2 | |
| 3 | 3 | use InvalidArgumentException; |
| 4 | -use PCextreme\Cloudstack\Exception\ClientException; |
|
| 5 | 4 | |
| 6 | 5 | trait UrlHelpersTrait |
| 7 | 6 | { |
@@ -91,7 +91,7 @@ discard block |
||
| 91 | 91 | protected function askApiKey(InputInterface $input, OutputInterface $output) |
| 92 | 92 | { |
| 93 | 93 | $question = (new Question('Enter API key: ')) |
| 94 | - ->setValidator(function ($answer) { |
|
| 94 | + ->setValidator(function($answer) { |
|
| 95 | 95 | if (is_null($answer)) { |
| 96 | 96 | throw new \InvalidArgumentException("API key can't be null."); |
| 97 | 97 | } |
@@ -113,7 +113,7 @@ discard block |
||
| 113 | 113 | protected function askSecretKey(InputInterface $input, OutputInterface $output) |
| 114 | 114 | { |
| 115 | 115 | $question = (new Question('Enter secret key: ')) |
| 116 | - ->setValidator(function ($answer) { |
|
| 116 | + ->setValidator(function($answer) { |
|
| 117 | 117 | if (is_null($answer)) { |
| 118 | 118 | throw new \InvalidArgumentException("Secret key can't be null."); |
| 119 | 119 | } |
@@ -174,7 +174,7 @@ discard block |
||
| 174 | 174 | $listFile .= "// api_list.php @generated by api:list command\n\n"; |
| 175 | 175 | $listFile .= "return ".var_export($commands, true).";\n"; |
| 176 | 176 | |
| 177 | - file_put_contents(__DIR__ . '/../../cache/api_list.php', $listFile); |
|
| 177 | + file_put_contents(__DIR__.'/../../cache/api_list.php', $listFile); |
|
| 178 | 178 | |
| 179 | 179 | $progress->finish(); |
| 180 | 180 | } |
@@ -169,7 +169,7 @@ discard block |
||
| 169 | 169 | */ |
| 170 | 170 | private function assertRequiredCommandOptions(string $command, array $options = []) |
| 171 | 171 | { |
| 172 | - if (! $this->isCommandValid($command)) { |
|
| 172 | + if (!$this->isCommandValid($command)) { |
|
| 173 | 173 | throw new RuntimeException( |
| 174 | 174 | "Call to unsupported API command [{$command}], this call is not present in the API list." |
| 175 | 175 | ); |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | |
| 181 | 181 | $missing = array_diff($requiredParameters, $providedParameters); |
| 182 | 182 | |
| 183 | - if (! empty($missing)) { |
|
| 183 | + if (!empty($missing)) { |
|
| 184 | 184 | $missing = implode(', ', $missing); |
| 185 | 185 | |
| 186 | 186 | throw new InvalidArgumentException( |
@@ -209,7 +209,7 @@ discard block |
||
| 209 | 209 | $commands = $this->getApiList(); |
| 210 | 210 | $parameters = $commands[$command]['params']; |
| 211 | 211 | |
| 212 | - $required = array_filter($parameters, function ($rules) { |
|
| 212 | + $required = array_filter($parameters, function($rules) { |
|
| 213 | 213 | return (bool) $rules['required']; |
| 214 | 214 | }); |
| 215 | 215 | |