@@ -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 | } |