GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Pull Request — master (#1192)
by
unknown
14:48
created
phpmyfaq/ajaxservice.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -630,7 +630,7 @@
 block discarded – undo
630 630
 
631 631
             if (!$faq->getNumberOfVotings($recordId)) {
632 632
                 $faq->addVoting($votingData);
633
-            }  else {
633
+            } else {
634 634
                 $faq->updateVoting($votingData);
635 635
             }
636 636
             $faqRating = new PMF_Rating($faqConfig);
Please login to merge, or discard this patch.
phpmyfaq/admin/record.show.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -407,7 +407,7 @@
 block discarded – undo
407 407
                        onclick="saveStatus(<?php print $cid . ', [' . $record['id'] . ']' ?>, 'active', '<?php echo $user->getCsrfTokenFromSession() ?>');"
408 408
                        id="active_record_<?php print $cid . '_' . $record['id'] ?>"
409 409
                     <?php 'yes' == $record['active'] ? print 'checked="checked"' : print '    ' ?> />
410
-                <?php }  else { ?>
410
+                <?php } else { ?>
411 411
                 <span class="label label-important"><i class="icon-white icon-ban-circle"></i></span>
412 412
                 <?php } ?>
413 413
             </td>
Please login to merge, or discard this patch.
phpmyfaq/admin/group.php 1 patch
Braces   +5 added lines, -3 removed lines patch added patch discarded remove patch
@@ -210,8 +210,9 @@  discard block
 block discarded – undo
210 210
             'auto_join'   => $group_auto_join
211 211
         );
212 212
 
213
-        if ($user->perm->addGroup($group_data) <= 0)
214
-            $messages[] = $PMF_LANG['ad_adus_dberr'];
213
+        if ($user->perm->addGroup($group_data) <= 0) {
214
+                    $messages[] = $PMF_LANG['ad_adus_dberr'];
215
+        }
215 216
     }
216 217
     // no errors, show list
217 218
     if (count($messages) == 0) {
@@ -228,8 +229,9 @@  discard block
 block discarded – undo
228 229
     }
229 230
 }
230 231
 
231
-if (!isset($message))
232
+if (!isset($message)) {
232 233
     $message = '';
234
+}
233 235
 
234 236
 // show new group form
235 237
 if ($groupAction == 'add' && $permission['addgroup']) {
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Filesystem.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -160,7 +160,7 @@
 block discarded – undo
160 160
                         $source . '/' . $file,
161 161
                         $dest . '/' . $directoryName . '/' . $file
162 162
                     );
163
-                }  else {
163
+                } else {
164 164
                     $this->recursiveCopy($source . '/' . $file, $dest . '/' . $directoryName);
165 165
                 }
166 166
             }
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Language.php 1 patch
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -364,7 +364,9 @@
 block discarded – undo
364 364
             if (count($matches[1])) {
365 365
                 $languages = array_combine($matches[1], $matches[4]);
366 366
                 foreach ($languages as $lang => $val) {
367
-                    if ($val === '') $languages[$lang] = 1;
367
+                    if ($val === '') {
368
+                        $languages[$lang] = 1;
369
+                    }
368 370
                 }
369 371
                 arsort($languages, SORT_NUMERIC);
370 372
             }
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Captcha.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -329,8 +329,7 @@
 block discarded – undo
329 329
                 if ($nextline < 1) {
330 330
                     $nextline = 2;
331 331
                 }
332
-            }
333
-            else {
332
+            } else {
334 333
                 $nextline += rand(1, 7);
335 334
             }
336 335
             $w1 += rand(-4, 4);
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/User.php 1 patch
Braces   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -329,8 +329,7 @@
 block discarded – undo
329 329
                 if ($nextline < 1) {
330 330
                     $nextline = 2;
331 331
                 }
332
-            }
333
-            else {
332
+            } else {
334 333
                 $nextline += rand(1, 7);
335 334
             }
336 335
             $w1 += rand(-4, 4);
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Helper/AdminMenuBuilder.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -187,8 +187,9 @@
 block discarded – undo
187 187
         // check user rights, set them TRUE
188 188
         $allUserRights = $user->perm->getAllUserRights($user->getUserId());
189 189
         foreach ($allRights as $right) {
190
-            if (in_array($right['right_id'], $allUserRights))
191
-                $this->permission[$right['name']] = true;
190
+            if (in_array($right['right_id'], $allUserRights)) {
191
+                            $this->permission[$right['name']] = true;
192
+            }
192 193
         }
193 194
     }
194 195
 
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Tags.php 1 patch
Braces   +9 added lines, -6 removed lines patch added patch discarded remove patch
@@ -595,8 +595,9 @@  discard block
 block discarded – undo
595 595
         if ($result) {
596 596
             while ($row = $this->_config->getDb()->fetchObject($result)) {
597 597
                 $tags[$row->tagging_id] = $row->freq;
598
-                if (--$limit === 0)
599
-                    break;
598
+                if (--$limit === 0) {
599
+                                    break;
600
+                }
600 601
             }
601 602
         }
602 603
         return $tags;
@@ -632,10 +633,12 @@  discard block
 block discarded – undo
632 633
      */
633 634
     public function is_english($chr)
634 635
     {
635
-        if (($chr >= 'A') && ($chr <= 'Z'))
636
-                return true;
637
-        if (($chr >= 'a') && ($chr <= 'z'))
638
-                return true;
636
+        if (($chr >= 'A') && ($chr <= 'Z')) {
637
+                        return true;
638
+        }
639
+        if (($chr >= 'a') && ($chr <= 'z')) {
640
+                        return true;
641
+        }
639 642
         return false;
640 643
     }
641 644
 }
Please login to merge, or discard this patch.