@@ -1,7 +1,6 @@ |
||
| 1 | 1 | <?php |
| 2 | 2 | namespace WorkEtcClient; |
| 3 | 3 | |
| 4 | -use InvalidArgumentException; |
|
| 5 | 4 | use WorkEtcClient\HttpfulClient; |
| 6 | 5 | |
| 7 | 6 | /** |
@@ -86,7 +86,7 @@ discard block |
||
| 86 | 86 | { |
| 87 | 87 | $this->domain = $domain; |
| 88 | 88 | |
| 89 | - $this->url = 'https://' . $domain . '.worketc.com'; |
|
| 89 | + $this->url = 'https://'.$domain.'.worketc.com'; |
|
| 90 | 90 | } |
| 91 | 91 | |
| 92 | 92 | /** |
@@ -122,10 +122,10 @@ discard block |
||
| 122 | 122 | protected function buildUrl(string $endpoint): string |
| 123 | 123 | { |
| 124 | 124 | if ($this->sessionKey !== null) { |
| 125 | - $endpoint = $endpoint . '?VeetroSession=' . $this->sessionKey; |
|
| 125 | + $endpoint = $endpoint.'?VeetroSession='.$this->sessionKey; |
|
| 126 | 126 | } |
| 127 | 127 | |
| 128 | - return $this->url . '/json/' . $endpoint; |
|
| 128 | + return $this->url.'/json/'.$endpoint; |
|
| 129 | 129 | } |
| 130 | 130 | |
| 131 | 131 | /** |
@@ -21,7 +21,7 @@ discard block |
||
| 21 | 21 | */ |
| 22 | 22 | public function get(string $endpoint, array $parameters = []) |
| 23 | 23 | { |
| 24 | - $request = Request::get($endpoint . $this->buildQuery($parameters)) |
|
| 24 | + $request = Request::get($endpoint.$this->buildQuery($parameters)) |
|
| 25 | 25 | ->expects('application/json'); |
| 26 | 26 | |
| 27 | 27 | return $this->send($request); |
@@ -92,7 +92,7 @@ discard block |
||
| 92 | 92 | return ''; |
| 93 | 93 | } |
| 94 | 94 | |
| 95 | - return '?' . http_build_query($data); |
|
| 95 | + return '?'.http_build_query($data); |
|
| 96 | 96 | } |
| 97 | 97 | |
| 98 | 98 | /** |
@@ -32,7 +32,7 @@ |
||
| 32 | 32 | ? $response['Message'] |
| 33 | 33 | : $this->defaultMessage; |
| 34 | 34 | |
| 35 | - $message .= '; response = ' . json_encode($response); |
|
| 35 | + $message .= '; response = '.json_encode($response); |
|
| 36 | 36 | |
| 37 | 37 | return $message; |
| 38 | 38 | } |