@@ -31,7 +31,7 @@ |
||
| 31 | 31 | protected function main() |
| 32 | 32 | { |
| 33 | 33 | $useOAuthSignup = $this->getSiteConfiguration()->getUseOAuthSignup(); |
| 34 | - if (! $this->getSiteConfiguration()->isRegistrationAllowed()) { |
|
| 34 | + if (!$this->getSiteConfiguration()->isRegistrationAllowed()) { |
|
| 35 | 35 | throw new AccessDeniedException(); |
| 36 | 36 | } |
| 37 | 37 | |
@@ -54,7 +54,7 @@ |
||
| 54 | 54 | $currentUser = User::getCurrent($database); |
| 55 | 55 | $this->assign('currentUser', $currentUser); |
| 56 | 56 | |
| 57 | - if($this->securityManager !== null) { |
|
| 57 | + if ($this->securityManager !== null) { |
|
| 58 | 58 | $this->setupNavMenuAccess($currentUser); |
| 59 | 59 | } |
| 60 | 60 | |
@@ -90,7 +90,7 @@ |
||
| 90 | 90 | |
| 91 | 91 | $apiParams['format'] = 'json'; |
| 92 | 92 | |
| 93 | - if ($apiParams === null || ! is_array($apiParams)) { |
|
| 93 | + if ($apiParams === null || !is_array($apiParams)) { |
|
| 94 | 94 | throw new CurlException("Invalid API call"); |
| 95 | 95 | } |
| 96 | 96 | |
@@ -141,7 +141,7 @@ |
||
| 141 | 141 | |
| 142 | 142 | $loginResponse = $this->callApi($params, 'POST'); |
| 143 | 143 | |
| 144 | - if($loginResponse->login->result == 'Success'){ |
|
| 144 | + if ($loginResponse->login->result == 'Success') { |
|
| 145 | 145 | return; |
| 146 | 146 | } |
| 147 | 147 | |
@@ -33,7 +33,7 @@ |
||
| 33 | 33 | curl_setopt($this->curlHandle, CURLOPT_SSL_VERIFYPEER, false); |
| 34 | 34 | } |
| 35 | 35 | |
| 36 | - if($cookieJar !== null) { |
|
| 36 | + if ($cookieJar !== null) { |
|
| 37 | 37 | curl_setopt($this->curlHandle, CURLOPT_COOKIEFILE, $cookieJar); |
| 38 | 38 | curl_setopt($this->curlHandle, CURLOPT_COOKIEJAR, $cookieJar); |
| 39 | 39 | } |
@@ -167,7 +167,7 @@ discard block |
||
| 167 | 167 | public function isHospitalised() |
| 168 | 168 | { |
| 169 | 169 | $this->whereClause .= ' AND status = ?'; |
| 170 | - $this->parameterList[] = RequestStatus::HOSPITAL; |
|
| 170 | + $this->parameterList[] = RequestStatus::HOSPITAL; |
|
| 171 | 171 | |
| 172 | 172 | return $this; |
| 173 | 173 | } |
@@ -180,7 +180,7 @@ discard block |
||
| 180 | 180 | public function notHospitalised() |
| 181 | 181 | { |
| 182 | 182 | $this->whereClause .= ' AND status <> ?'; |
| 183 | - $this->parameterList[] = RequestStatus::HOSPITAL; |
|
| 183 | + $this->parameterList[] = RequestStatus::HOSPITAL; |
|
| 184 | 184 | |
| 185 | 185 | return $this; |
| 186 | 186 | } |
@@ -323,7 +323,7 @@ |
||
| 323 | 323 | $taskDescriptions = JobQueue::getTaskDescriptions(); |
| 324 | 324 | |
| 325 | 325 | $task = $job->getTask(); |
| 326 | - if(isset($taskDescriptions[$task])){ |
|
| 326 | + if (isset($taskDescriptions[$task])) { |
|
| 327 | 327 | $description = $taskDescriptions[$task]; |
| 328 | 328 | } else { |
| 329 | 329 | $description = 'Unknown task'; |
@@ -319,8 +319,8 @@ |
||
| 319 | 319 | * |
| 320 | 320 | * @param string $path The path (relative to the application root) of the file |
| 321 | 321 | */ |
| 322 | - final protected function addJs($path){ |
|
| 323 | - if(in_array($path, $this->extraJs)){ |
|
| 322 | + final protected function addJs($path) { |
|
| 323 | + if (in_array($path, $this->extraJs)) { |
|
| 324 | 324 | // nothing to do |
| 325 | 325 | return; |
| 326 | 326 | } |
@@ -102,7 +102,7 @@ |
||
| 102 | 102 | $formParameters['limit'] = $this->limit; |
| 103 | 103 | $this->assign('searchParamsUrl', http_build_query($formParameters, '', '&')); |
| 104 | 104 | |
| 105 | - foreach ($formParameters as $key => $value) { |
|
| 105 | + foreach ($formParameters as $key => $value) { |
|
| 106 | 106 | $this->assign($key, $value); |
| 107 | 107 | } |
| 108 | 108 | } |