@@ -24,7 +24,7 @@ |
||
| 24 | 24 | */ |
| 25 | 25 | public function searchCall($query, $scope, $bookmarks = []) |
| 26 | 26 | { |
| 27 | - $url = UrlHelper::getSearchUrl(! empty($bookmarks)); |
|
| 27 | + $url = UrlHelper::getSearchUrl( ! empty($bookmarks)); |
|
| 28 | 28 | $get = $this->createSearchRequest($query, $scope, $bookmarks); |
| 29 | 29 | $url = $url.'?'.UrlHelper::buildRequestString($get); |
| 30 | 30 | $response = $this->request->exec($url); |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | |
| 103 | 103 | $response = $this->request->exec(UrlHelper::RESOURCE_LOGIN, $postString); |
| 104 | 104 | $result = $this->response->checkErrorInResponse($response); |
| 105 | - if (!$result) { |
|
| 105 | + if ( ! $result) { |
|
| 106 | 106 | throw new AuthException($this->response->getLastError()['message']); |
| 107 | 107 | } |
| 108 | 108 | $this->request->setLoggedIn(); |
@@ -98,7 +98,7 @@ |
||
| 98 | 98 | */ |
| 99 | 99 | protected function checkMethodForLoginRequired($method) |
| 100 | 100 | { |
| 101 | - if (in_array($method, $this->loginRequired) && !$this->request->isLoggedIn()) { |
|
| 101 | + if (in_array($method, $this->loginRequired) && ! $this->request->isLoggedIn()) { |
|
| 102 | 102 | throw new AuthException("You must log in before."); |
| 103 | 103 | } |
| 104 | 104 | } |