Passed
Push — dependabot/composer/fortawesom... ( b43113 )
by
unknown
05:17
created
includes/Pages/Registration/PageRegisterBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
includes/Exceptions/AccessDeniedException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -54,7 +54,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
includes/Helpers/OAuthProtocolHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -90,7 +90,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
includes/Helpers/BotMediaWikiClient.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -141,7 +141,7 @@
 block discarded – undo
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
 
Please login to merge, or discard this patch.
includes/Helpers/HttpHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
includes/Helpers/SearchHelpers/RequestSearchHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
     }
Please login to merge, or discard this patch.
includes/Helpers/LogHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -323,7 +323,7 @@
 block discarded – undo
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';
Please login to merge, or discard this patch.
includes/Tasks/PageBase.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -319,8 +319,8 @@
 block discarded – undo
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
         }
Please login to merge, or discard this patch.
includes/Tasks/PagedInternalPageBase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@
 block discarded – undo
102 102
         $formParameters['limit'] = $this->limit;
103 103
         $this->assign('searchParamsUrl', http_build_query($formParameters, '', '&amp;'));
104 104
 
105
-        foreach ($formParameters as $key => $value)  {
105
+        foreach ($formParameters as $key => $value) {
106 106
             $this->assign($key, $value);
107 107
         }
108 108
     }
Please login to merge, or discard this patch.