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
Push — 2.8 ( b9ed1f...cd67fa )
by Thorsten
15:59
created
phpmyfaq/inc/PMF/Category.php 1 patch
Spacing   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -232,9 +232,9 @@  discard block
 block discarded – undo
232 232
 
233 233
         while ($row = $this->_config->getDb()->fetchArray($result)) {
234 234
             $this->categoryName[$row['id']] = $row;
235
-            $this->categories[] =& $this->categoryName[$row['id']];
236
-            $this->children[$row['parent_id']][$row['id']] =& $this->categoryName[$row['id']];
237
-            $this->owner[$row['id']] =& $row['user_id'];
235
+            $this->categories[] = & $this->categoryName[$row['id']];
236
+            $this->children[$row['parent_id']][$row['id']] = & $this->categoryName[$row['id']];
237
+            $this->owner[$row['id']] = & $row['user_id'];
238 238
         }
239 239
 
240 240
         return $this->categories;
@@ -398,8 +398,8 @@  discard block
 block discarded – undo
398 398
             $symbol = 'minus';
399 399
         } else {
400 400
             $temp = isset($this->children[$thisParent_id]) ? array_keys($this->children[$thisParent_id]) : array();
401
-            if (isset($temp[count($temp)-1])) {
402
-                $symbol = ($id == $temp[count($temp)-1]) ? 'angle' : 'medium';
401
+            if (isset($temp[count($temp) - 1])) {
402
+                $symbol = ($id == $temp[count($temp) - 1]) ? 'angle' : 'medium';
403 403
             }
404 404
         }
405 405
 
@@ -472,7 +472,7 @@  discard block
 block discarded – undo
472 472
         $childs = array();
473 473
 
474 474
         if (isset($this->children[$id])) {
475
-            foreach(array_keys($this->children[$id]) as $childId) {
475
+            foreach (array_keys($this->children[$id]) as $childId) {
476 476
                 $childs = array_merge($childs, array($childId));
477 477
                 $childs = array_merge($childs, $this->getChildNodes($childId));
478 478
             }
@@ -625,7 +625,7 @@  discard block
 block discarded – undo
625 625
         $open = 0;
626 626
         $this->expandAll();
627 627
 
628
-        for ($y = 0 ;$y < $this->height(); $y = $this->getNextLineTree($y)) {
628
+        for ($y = 0; $y < $this->height(); $y = $this->getNextLineTree($y)) {
629 629
 
630 630
             list($categoryName, $parent, $description) = $this->getLineDisplay($y);
631 631
             $level     = $this->treeTab[$y]['level'];
@@ -667,14 +667,14 @@  discard block
 block discarded – undo
667 667
                 $num_entries = '';
668 668
             } else {
669 669
                 $totFaqRecords += $number[$parent];
670
-                $num_entries    = '<span class="rssCategoryLink"> ('.$plr->GetMsg('plmsgEntries',$number[$parent]);
670
+                $num_entries    = '<span class="rssCategoryLink"> ('.$plr->GetMsg('plmsgEntries', $number[$parent]);
671 671
                 $num_entries   .= sprintf(
672 672
                     ' <a href="feed/category/rss.php?category_id=%d&category_lang=%s" target="_blank"><img id="category_%d_RSS" src="assets/img/feed.png" width="16" height="16" alt="RSS"></a>',
673 673
                     $parent,
674 674
                     $this->language,
675 675
                     $parent
676 676
                 );
677
-                $num_entries   .= ')</span>';
677
+                $num_entries .= ')</span>';
678 678
             }
679 679
 
680 680
             $url = sprintf(
@@ -688,7 +688,7 @@  discard block
 block discarded – undo
688 688
             $oLink->text      = $categoryName;
689 689
             $oLink->tooltip   = $description;
690 690
 
691
-            $output .= $oLink->toHtmlAnchor() . $num_entries;
691
+            $output .= $oLink->toHtmlAnchor().$num_entries;
692 692
             $open    = $level;
693 693
         }
694 694
 
@@ -731,7 +731,7 @@  discard block
 block discarded – undo
731 731
             return $l + 1;
732 732
         } else {
733 733
             for ($i = $l + 1; $i < $this->height(); $i++) {
734
-                if ($this->treeTab[$i]["level"]<=$this->treeTab[$l]["level"]) {
734
+                if ($this->treeTab[$i]["level"] <= $this->treeTab[$l]["level"]) {
735 735
                     return $i;
736 736
                 }
737 737
             }
@@ -771,7 +771,7 @@  discard block
 block discarded – undo
771 771
         );
772 772
 
773 773
         $oLink            = new PMF_Link($url, $this->_config);
774
-        $oLink->id        = 'category_' . $categoryId;
774
+        $oLink->id        = 'category_'.$categoryId;
775 775
         $oLink->itemTitle = $categoryName;
776 776
         $oLink->text      = $categoryName;
777 777
 
@@ -852,7 +852,7 @@  discard block
 block discarded – undo
852 852
             return sprintf(
853 853
                 '<ul class="%s">%s</ul>',
854 854
                 $useCssClass,
855
-                implode('<li class="divider">' . $separator . '</li>', $temp)
855
+                implode('<li class="divider">'.$separator.'</li>', $temp)
856 856
             );
857 857
         } else {
858 858
             return implode($separator, $temp);
@@ -1302,7 +1302,7 @@  discard block
 block discarded – undo
1302 1302
                 if ($lang == $selected_lang) {
1303 1303
                     $output .= " selected=\"selected\"";
1304 1304
                 }
1305
-                $output .=  ">".$langname."</option>\n";
1305
+                $output .= ">".$langname."</option>\n";
1306 1306
             }
1307 1307
         }
1308 1308
 
@@ -1329,10 +1329,10 @@  discard block
 block discarded – undo
1329 1329
         $query .= ' ORDER BY id';
1330 1330
         $result = $this->_config->getDb()->query($query);
1331 1331
         while ($row = $this->_config->getDb()->fetchArray($result)) {
1332
-            if (!array_key_exists($row['id'],$this->categoryName)) {
1332
+            if (!array_key_exists($row['id'], $this->categoryName)) {
1333 1333
                $this->categoryName[$row['id']] = $row;
1334
-               $this->categories[] =& $this->categoryName[$row['id']];
1335
-               $this->children[$row['parent_id']][$row['id']] =& $this->categoryName[$row['id']];
1334
+               $this->categories[] = & $this->categoryName[$row['id']];
1335
+               $this->children[$row['parent_id']][$row['id']] = & $this->categoryName[$row['id']];
1336 1336
             }
1337 1337
         }
1338 1338
     }
Please login to merge, or discard this patch.