@@ -66,7 +66,7 @@ discard block |
||
| 66 | 66 | { |
| 67 | 67 | $struct = parse_url($url); |
| 68 | 68 | // @codeCoverageIgnoreStart |
| 69 | - if (! $struct) { |
|
| 69 | + if (!$struct) { |
|
| 70 | 70 | throw new \InvalidArgumentException("$url is not valid URL"); |
| 71 | 71 | } |
| 72 | 72 | // @codeCoverageIgnoreEnd |
@@ -78,7 +78,7 @@ discard block |
||
| 78 | 78 | $this->username = self::setOr($struct, 'user', null); |
| 79 | 79 | $this->password = self::setOr($struct, 'pass', null); |
| 80 | 80 | |
| 81 | - if (! empty($struct['query'])) { |
|
| 81 | + if (!empty($struct['query'])) { |
|
| 82 | 82 | parse_str($struct['query'], $this->query); |
| 83 | 83 | } |
| 84 | 84 | } |
@@ -89,7 +89,7 @@ discard block |
||
| 89 | 89 | * @param string $key |
| 90 | 90 | * @param string $default |
| 91 | 91 | */ |
| 92 | - private static function setOr(array $struct, $key, $default=null) |
|
| 92 | + private static function setOr(array $struct, $key, $default = null) |
|
| 93 | 93 | { |
| 94 | 94 | if (!empty($struct[$key])) { |
| 95 | 95 | return $struct[$key]; |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | |
| 93 | 93 | // make url |
| 94 | 94 | $url = $package->getDistUrl(); |
| 95 | - if (! $url) { |
|
| 95 | + if (!$url) { |
|
| 96 | 96 | ++$this->skippedCnt; |
| 97 | 97 | continue; |
| 98 | 98 | } |
@@ -114,10 +114,10 @@ discard block |
||
| 114 | 114 | if ($pluginConfig['insecure']) { |
| 115 | 115 | $opts[CURLOPT_SSL_VERIFYPEER] = false; |
| 116 | 116 | } |
| 117 | - if (! empty($pluginConfig['userAgent'])) { |
|
| 117 | + if (!empty($pluginConfig['userAgent'])) { |
|
| 118 | 118 | $opts[CURLOPT_USERAGENT] = $pluginConfig['userAgent']; |
| 119 | 119 | } |
| 120 | - if (! empty($pluginConfig['capath'])) { |
|
| 120 | + if (!empty($pluginConfig['capath'])) { |
|
| 121 | 121 | $opts[CURLOPT_CAPATH] = $pluginConfig['capath']; |
| 122 | 122 | } |
| 123 | 123 | unset($opts[CURLOPT_ENCODING]); |
@@ -30,7 +30,7 @@ |
||
| 30 | 30 | $validator = new JsonSchema\Validator; |
| 31 | 31 | $validator->check((object)$config, json_decode($schema)); |
| 32 | 32 | |
| 33 | - if (! $validator->isValid()) { |
|
| 33 | + if (!$validator->isValid()) { |
|
| 34 | 34 | throw new \InvalidArgumentException(var_export($validator->getErrors(), true)); |
| 35 | 35 | } |
| 36 | 36 | |