@@ -120,7 +120,7 @@ discard block |
||
120 | 120 | { |
121 | 121 | $missing = array_diff_key(array_flip($this->getRequiredOptions()), $options); |
122 | 122 | |
123 | - if (! empty($missing)) { |
|
123 | + if (!empty($missing)) { |
|
124 | 124 | throw new InvalidArgumentException( |
125 | 125 | 'Required options not defined: ' . implode(', ', array_keys($missing)) |
126 | 126 | ); |
@@ -150,14 +150,14 @@ discard block |
||
150 | 150 | { |
151 | 151 | $apiList = $this->getApiList(); |
152 | 152 | |
153 | - if (! array_key_exists($command, $apiList)) { |
|
153 | + if (!array_key_exists($command, $apiList)) { |
|
154 | 154 | throw new RuntimeException( |
155 | 155 | "Call to unsupported API command [{$command}], this call is not present in the API list." |
156 | 156 | ); |
157 | 157 | } |
158 | 158 | |
159 | 159 | foreach ($apiList[$command]['params'] as $key => $value) { |
160 | - if (! array_key_exists($key, $options) && (bool) $value['required']) { |
|
160 | + if (!array_key_exists($key, $options) && (bool) $value['required']) { |
|
161 | 161 | throw new InvalidArgumentException( |
162 | 162 | "Missing argument [{$key}] for command [{$command}] must be of type [{$value['type']}]." |
163 | 163 | ); |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | if (is_null($this->apiList)) { |
262 | 262 | $path = __DIR__ . '/../cache/api_list.php'; |
263 | 263 | |
264 | - if (! file_exists($path)) { |
|
264 | + if (!file_exists($path)) { |
|
265 | 265 | throw new RuntimeException( |
266 | 266 | "Cloudstack Client API list not found. This file needs to be generated before using the client." |
267 | 267 | ); |
@@ -81,7 +81,7 @@ discard block |
||
81 | 81 | protected function askApiKey(InputInterface $input, OutputInterface $output) |
82 | 82 | { |
83 | 83 | $question = (new Question('Enter API key: ')) |
84 | - ->setValidator(function ($answer) { |
|
84 | + ->setValidator(function($answer) { |
|
85 | 85 | if (is_null($answer)) { |
86 | 86 | throw new \InvalidArgumentException("API key can't be null."); |
87 | 87 | } |
@@ -103,7 +103,7 @@ discard block |
||
103 | 103 | protected function askSecretKey(InputInterface $input, OutputInterface $output) |
104 | 104 | { |
105 | 105 | $question = (new Question('Enter secret key: ')) |
106 | - ->setValidator(function ($answer) { |
|
106 | + ->setValidator(function($answer) { |
|
107 | 107 | if (is_null($answer)) { |
108 | 108 | throw new \InvalidArgumentException("Secret key can't be null."); |
109 | 109 | } |
@@ -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 |