@@ -90,8 +90,8 @@ discard block |
||
90 | 90 | |
91 | 91 | $request = $this->httpClient |
92 | 92 | ->setMethod('post') |
93 | - ->setEndPoint(self::ENDPOINT . 'login/') |
|
94 | - ->setFormData(['username' => $username, 'password' => $password]); |
|
93 | + ->setEndPoint(self::ENDPOINT.'login/') |
|
94 | + ->setFormData([ 'username' => $username, 'password' => $password ]); |
|
95 | 95 | |
96 | 96 | $result = $this->execute($request); |
97 | 97 | |
@@ -110,7 +110,7 @@ discard block |
||
110 | 110 | */ |
111 | 111 | public function keepAlive() |
112 | 112 | { |
113 | - $result = $this->execute($this->httpClient->setEndPoint(self::ENDPOINT . 'keepAlive/')); |
|
113 | + $result = $this->execute($this->httpClient->setEndPoint(self::ENDPOINT.'keepAlive/')); |
|
114 | 114 | |
115 | 115 | self::$lastLogin = time(); |
116 | 116 | |
@@ -125,7 +125,7 @@ discard block |
||
125 | 125 | */ |
126 | 126 | public function logout() |
127 | 127 | { |
128 | - $this->execute($this->httpClient->setEndPoint(self::ENDPOINT . 'logout/')); |
|
128 | + $this->execute($this->httpClient->setEndPoint(self::ENDPOINT.'logout/')); |
|
129 | 129 | |
130 | 130 | self::$appKey = null; |
131 | 131 | self::$sessionToken = null; |
@@ -158,7 +158,7 @@ discard block |
||
158 | 158 | $result = $request->authHeaders()->send(); |
159 | 159 | |
160 | 160 | if ($result->status === self::API_STATUS_FAIL) { |
161 | - throw new Exception('Error: ' . $result->error); |
|
161 | + throw new Exception('Error: '.$result->error); |
|
162 | 162 | } |
163 | 163 | |
164 | 164 | return $result; |