@@ -14,7 +14,7 @@ discard block |
||
14 | 14 | */ |
15 | 15 | public function parse(string $url): ParsedURL { |
16 | 16 | $splitURL = explode('/', trim($url, '/')); |
17 | - if(count($splitURL) < 3){ |
|
17 | + if (count($splitURL) < 3) { |
|
18 | 18 | throw new InvalidRequestURLException(); |
19 | 19 | } |
20 | 20 | //Find endpoint |
@@ -27,7 +27,7 @@ discard block |
||
27 | 27 | |
28 | 28 | $instance = null; |
29 | 29 | |
30 | - if(count($splitURL) == 4){ |
|
30 | + if (count($splitURL) == 4) { |
|
31 | 31 | $instance = implode('.', $splitExtension); |
32 | 32 | } else { |
33 | 33 | $endpoint = implode('.', $splitExtension); |
@@ -62,7 +62,7 @@ discard block |
||
62 | 62 | * @param string $extension |
63 | 63 | * @param string $instance |
64 | 64 | */ |
65 | - public function __construct($method, array $headers, RequestData $body, RequestData $urlData, $ip, $version, $apiKey, $endpoint, $extension, $instance = null){ |
|
65 | + public function __construct($method, array $headers, RequestData $body, RequestData $urlData, $ip, $version, $apiKey, $endpoint, $extension, $instance = null) { |
|
66 | 66 | $this->method = strtolower($method); |
67 | 67 | $this->headers = $headers; |
68 | 68 | $this->body = $body; |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | * @return string |
87 | 87 | */ |
88 | 88 | public function getMethod() { |
89 | - return $this->method . ($this->instance ? '' : 'All'); |
|
89 | + return $this->method.($this->instance ? '' : 'All'); |
|
90 | 90 | } |
91 | 91 | |
92 | 92 | /** |