@@ -46,7 +46,7 @@ |
||
| 46 | 46 | 'email' => $email |
| 47 | 47 | ] |
| 48 | 48 | ); |
| 49 | - $url = self::URL_REGISTER; |
|
| 49 | + $url = self::URL_REGISTER; |
|
| 50 | 50 | |
| 51 | 51 | $response = $this->transport->sendRequest($method, $url, $body); |
| 52 | 52 | |
@@ -13,7 +13,7 @@ discard block |
||
| 13 | 13 | * @var Transport |
| 14 | 14 | */ |
| 15 | 15 | private $transport; |
| 16 | - private $endpoints = []; |
|
| 16 | + private $endpoints = [ ]; |
|
| 17 | 17 | |
| 18 | 18 | /** |
| 19 | 19 | * BarenoteClient constructor. |
@@ -23,7 +23,7 @@ discard block |
||
| 23 | 23 | $this->transport = new HttpfulTransport(); |
| 24 | 24 | $this->transport->setHost("http://localhost:8080"); |
| 25 | 25 | |
| 26 | - $this->endpoints['authentication'] = new Authentication($this->transport); |
|
| 26 | + $this->endpoints[ 'authentication' ] = new Authentication($this->transport); |
|
| 27 | 27 | } |
| 28 | 28 | |
| 29 | 29 | public function authenticate(string $username, string $password) |
@@ -37,6 +37,6 @@ discard block |
||
| 37 | 37 | */ |
| 38 | 38 | public function getAuthenticationEndpoint() |
| 39 | 39 | { |
| 40 | - return $this->endpoints['authentication']; |
|
| 40 | + return $this->endpoints[ 'authentication' ]; |
|
| 41 | 41 | } |
| 42 | 42 | } |
| 43 | 43 | \ No newline at end of file |
@@ -45,6 +45,6 @@ |
||
| 45 | 45 | |
| 46 | 46 | public function jsonSerialize() |
| 47 | 47 | { |
| 48 | - return ['username' => $this->username, 'password' => $this->password]; |
|
| 48 | + return [ 'username' => $this->username, 'password' => $this->password ]; |
|
| 49 | 49 | } |
| 50 | 50 | } |
| 51 | 51 | \ No newline at end of file |