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.9 ( 7343d3...e1b57e )
by Thorsten
16:48
created
phpmyfaq/inc/PMF/Faq.php 1 patch
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -28,17 +28,17 @@  discard block
 block discarded – undo
28 28
  * SQL constants definitions
29 29
  */
30 30
 define('FAQ_SQL_ACTIVE_YES', 'yes');
31
-define('FAQ_SQL_ACTIVE_NO',  'no');
31
+define('FAQ_SQL_ACTIVE_NO', 'no');
32 32
 
33 33
 /*
34 34
  * Query type definitions
35 35
  */
36
-define('FAQ_QUERY_TYPE_DEFAULT',      'faq_default');
37
-define('FAQ_QUERY_TYPE_APPROVAL',     'faq_approval');
38
-define('FAQ_QUERY_TYPE_EXPORT_PDF',   'faq_export_pdf');
36
+define('FAQ_QUERY_TYPE_DEFAULT', 'faq_default');
37
+define('FAQ_QUERY_TYPE_APPROVAL', 'faq_approval');
38
+define('FAQ_QUERY_TYPE_EXPORT_PDF', 'faq_export_pdf');
39 39
 define('FAQ_QUERY_TYPE_EXPORT_XHTML', 'faq_export_xhtml');
40
-define('FAQ_QUERY_TYPE_EXPORT_XML',   'faq_export_xml');
41
-define('FAQ_QUERY_TYPE_RSS_LATEST',   'faq_rss_latest');
40
+define('FAQ_QUERY_TYPE_EXPORT_XML', 'faq_export_xml');
41
+define('FAQ_QUERY_TYPE_RSS_LATEST', 'faq_rss_latest');
42 42
 
43 43
 /*
44 44
  * Sorting type definitions
@@ -384,12 +384,12 @@  discard block
 block discarded – undo
384 384
 
385 385
         $result = $this->_config->getDb()->query($query);
386 386
         $num = $this->_config->getDb()->numRows($result);
387
-        $pages = (int) ceil($num / $numPerPage);
387
+        $pages = (int)ceil($num/$numPerPage);
388 388
 
389 389
         if ($page == 1) {
390 390
             $first = 0;
391 391
         } else {
392
-            $first = $page * $numPerPage - $numPerPage;
392
+            $first = $page*$numPerPage - $numPerPage;
393 393
         }
394 394
 
395 395
         if ($num > 0) {
@@ -570,12 +570,12 @@  discard block
 block discarded – undo
570 570
         $result = $this->_config->getDb()->query($query);
571 571
 
572 572
         $num = $this->_config->getDb()->numRows($result);
573
-        $pages = ceil($num / $this->_config->get('records.numberOfRecordsPerPage'));
573
+        $pages = ceil($num/$this->_config->get('records.numberOfRecordsPerPage'));
574 574
 
575 575
         if ($page == 1) {
576 576
             $first = 0;
577 577
         } else {
578
-            $first = ($page * $this->_config->get('records.numberOfRecordsPerPage')) - $this->_config->get('records.numberOfRecordsPerPage');
578
+            $first = ($page*$this->_config->get('records.numberOfRecordsPerPage')) - $this->_config->get('records.numberOfRecordsPerPage');
579 579
         }
580 580
 
581 581
         if ($num > 0) {
@@ -1258,7 +1258,7 @@  discard block
 block discarded – undo
1258 1258
                 AND
1259 1259
                 lang = '%s'",
1260 1260
             PMF_Db::getTablePrefix(),
1261
-            (int) $faqId,
1261
+            (int)$faqId,
1262 1262
             $this->_config->getDb()->escape($faqLang)
1263 1263
         );
1264 1264
 
@@ -2311,7 +2311,7 @@  discard block
 block discarded – undo
2311 2311
                     'category_id' => $row->category_id,
2312 2312
                     'question' => $row->question,
2313 2313
                     'created' => $row->created,
2314
-                    'is_visible' => $row->is_visible, );
2314
+                    'is_visible' => $row->is_visible,);
2315 2315
             }
2316 2316
         }
2317 2317
 
@@ -2479,7 +2479,7 @@  discard block
 block discarded – undo
2479 2479
                     'revision_id' => $row->revision_id,
2480 2480
                     'user' => $row->usr,
2481 2481
                     'date' => $row->datum,
2482
-                    'changelog' => $row->what, );
2482
+                    'changelog' => $row->what,);
2483 2483
             }
2484 2484
         }
2485 2485
 
@@ -2790,13 +2790,13 @@  discard block
 block discarded – undo
2790 2790
             $mode,
2791 2791
             PMF_Db::getTablePrefix(),
2792 2792
             $mode,
2793
-            (int) $recordId);
2793
+            (int)$recordId);
2794 2794
 
2795 2795
         $result = $this->_config->getDb()->query($query);
2796 2796
 
2797 2797
         if ($this->_config->getDb()->numRows($result) > 0) {
2798 2798
             while (($row = $this->_config->getDb()->fetchObject($result))) {
2799
-                $permissions[] = (int) $row->permission;
2799
+                $permissions[] = (int)$row->permission;
2800 2800
             }
2801 2801
         }
2802 2802
 
@@ -3043,7 +3043,7 @@  discard block
 block discarded – undo
3043 3043
                 $lang
3044 3044
             );
3045 3045
 
3046
-            $retval = (bool) $this->_config->getDb()->query($update);
3046
+            $retval = (bool)$this->_config->getDb()->query($update);
3047 3047
         }
3048 3048
 
3049 3049
         return $retval;
Please login to merge, or discard this patch.