@@ -78,9 +78,9 @@ discard block |
||
| 78 | 78 | * Configure the static property $_DEFAULTS with settings from defaults.php |
| 79 | 79 | */ |
| 80 | 80 | protected function loadDefaults(){ |
| 81 | - if (empty(static::$_DEFAULTS)) { |
|
| 82 | - include __DIR__ . DIRECTORY_SEPARATOR . 'defaults.php'; |
|
| 83 | - if (isset($defaults)) { |
|
| 81 | + if (empty(static::$_DEFAULTS)){ |
|
| 82 | + include __DIR__.DIRECTORY_SEPARATOR.'defaults.php'; |
|
| 83 | + if (isset($defaults)){ |
|
| 84 | 84 | static::$_DEFAULTS = $defaults; |
| 85 | 85 | } |
| 86 | 86 | } |
@@ -168,7 +168,7 @@ discard block |
||
| 168 | 168 | $response = $EP->data($this->authOptions)->execute()->getResponse(); |
| 169 | 169 | if ($response->getStatus()=='200'){ |
| 170 | 170 | $this->authToken = $response->getBody(); |
| 171 | - } else{ |
|
| 171 | + }else{ |
|
| 172 | 172 | throw new AuthenticationException($response->getBody()); |
| 173 | 173 | } |
| 174 | 174 | } |