@@ -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)) { |
|
| 81 | + if (empty(static::$_DEFAULTS)){ |
|
| 82 | 82 | include __DIR__ . DIRECTORY_SEPARATOR . 'defaults.php'; |
| 83 | - if (isset($defaults)) { |
|
| 83 | + if (isset($defaults)){ |
|
| 84 | 84 | static::$_DEFAULTS = $defaults; |
| 85 | 85 | } |
| 86 | 86 | } |
@@ -146,12 +146,12 @@ discard block |
||
| 146 | 146 | if ($EntryPoint->authRequired()){ |
| 147 | 147 | if (isset($this->authToken)){ |
| 148 | 148 | $EntryPoint->configureAuth($this->authToken->access_token); |
| 149 | - }else{ |
|
| 149 | + } else{ |
|
| 150 | 150 | throw new AuthenticationException('Authentication is required for EntryPoint ['.$name.'].'); |
| 151 | 151 | } |
| 152 | 152 | } |
| 153 | 153 | return $EntryPoint; |
| 154 | - }else{ |
|
| 154 | + } else{ |
|
| 155 | 155 | throw new SDKException('Method '.$name.', is not a registered method of the SugarAPI SDK'); |
| 156 | 156 | } |
| 157 | 157 | } |