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 ( 28c5d1...c3ab3a )
by Thorsten
16:09 queued 03:14
created
phpmyfaq/inc/PMF/Instance/Elasticsearch.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
     public function createIndex()
93 93
     {
94 94
         $this->client->indices()->create($this->getParams());
95
-        return $this->putMapping();;
95
+        return $this->putMapping(); ;
96 96
     }
97 97
 
98 98
     /**
@@ -177,7 +177,7 @@  discard block
 block discarded – undo
177 177
                 'categories' => $faq['category_id']
178 178
             ];
179 179
 
180
-            if ($i % 1000 == 0) {
180
+            if ($i%1000 == 0) {
181 181
                 $responses = $this->client->bulk($params);
182 182
                 $params = ['body' => []];
183 183
                 unset($responses);
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Faq.php 3 patches
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.
Doc Comments   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -1069,7 +1069,7 @@  discard block
 block discarded – undo
1069 1069
      * @param int    $record_id  Record id
1070 1070
      * @param string $language   Language
1071 1071
      *
1072
-     * @return int
1072
+     * @return boolean
1073 1073
      */
1074 1074
     public function addCategoryRelations(Array $categories, $record_id, $language)
1075 1075
     {
@@ -1534,7 +1534,7 @@  discard block
 block discarded – undo
1534 1534
      * @param int    $record_id   Record id
1535 1535
      * @param string $record_lang Record language
1536 1536
      *
1537
-     * @return array
1537
+     * @return boolean
1538 1538
      */
1539 1539
     public function addNewRevision($record_id, $record_lang)
1540 1540
     {
@@ -2534,7 +2534,7 @@  discard block
 block discarded – undo
2534 2534
      * Build a logic sequence, for a WHERE statement, of those category IDs
2535 2535
      * children of the provided category ID, if any.
2536 2536
      *
2537
-     * @param   $nCatid
2537
+     * @param   integer $nCatid
2538 2538
      * @param   $logicOp
2539 2539
      * @param   $oCat
2540 2540
      *
@@ -2564,14 +2564,14 @@  discard block
 block discarded – undo
2564 2564
     /**
2565 2565
      * Build the SQL query for retrieving faq records according to the constraints provided.
2566 2566
      *
2567
-     * @param   $QueryType
2568
-     * @param   $nCatid
2569
-     * @param   $bDownwards
2570
-     * @param   $lang
2571
-     * @param   $date
2567
+     * @param   string $QueryType
2568
+     * @param   integer $nCatid
2569
+     * @param   boolean $bDownwards
2570
+     * @param   string $lang
2571
+     * @param   string $date
2572 2572
      * @param   $faqid
2573 2573
      *
2574
-     * @return array
2574
+     * @return string
2575 2575
      *
2576 2576
      * @since   2005-11-02
2577 2577
      *
Please login to merge, or discard this patch.
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1868,16 +1868,16 @@  discard block
 block discarded – undo
1868 1868
         return true;
1869 1869
     }
1870 1870
 
1871
-     /**
1872
-      * Returns the visibility of a question.
1873
-      *
1874
-      * @param   int $questionId
1875
-      *
1876
-      * @return  string
1877
-      */
1878
-     public function getVisibilityOfQuestion($questionId)
1879
-     {
1880
-         $query = sprintf("
1871
+        /**
1872
+         * Returns the visibility of a question.
1873
+         *
1874
+         * @param   int $questionId
1875
+         *
1876
+         * @return  string
1877
+         */
1878
+        public function getVisibilityOfQuestion($questionId)
1879
+        {
1880
+            $query = sprintf("
1881 1881
             SELECT
1882 1882
                 is_visible
1883 1883
             FROM
@@ -1891,15 +1891,15 @@  discard block
 block discarded – undo
1891 1891
             $this->_config->getLanguage()->getLanguage()
1892 1892
         );
1893 1893
 
1894
-         $result = $this->_config->getDb()->query($query);
1895
-         if ($this->_config->getDb()->numRows($result) > 0) {
1896
-             $row = $this->_config->getDb()->fetchObject($result);
1894
+            $result = $this->_config->getDb()->query($query);
1895
+            if ($this->_config->getDb()->numRows($result) > 0) {
1896
+                $row = $this->_config->getDb()->fetchObject($result);
1897 1897
 
1898
-             return $row->is_visible;
1899
-         }
1898
+                return $row->is_visible;
1899
+            }
1900 1900
 
1901
-         return;
1902
-     }
1901
+            return;
1902
+        }
1903 1903
 
1904 1904
     /**
1905 1905
      * Sets the visibility of a question.
@@ -2455,7 +2455,7 @@  discard block
 block discarded – undo
2455 2455
                     'answer_id' => $row->answer_id,
2456 2456
                     'is_visible' => $row->is_visible,
2457 2457
                 );
2458
-             }
2458
+                }
2459 2459
         }
2460 2460
 
2461 2461
         return $questions;
Please login to merge, or discard this patch.
phpmyfaq/admin/category.main.php 2 patches
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -321,19 +321,19 @@  discard block
 block discarded – undo
321 321
 
322 322
         if ($cat['lang'] == $lang) {
323 323
             // add sub category (if current language)
324
-           printf('
324
+            printf('
325 325
             <a class="btn btn-info btn-sm" href="?action=addcategory&amp;cat=%s&amp;lang=%s"><span title="%s" class="fa fa-plus fa-fw"></span></a> ',
326
-               $cat['id'],
327
-               $cat['lang'],
328
-               $PMF_LANG['ad_quick_category']
329
-           );
326
+                $cat['id'],
327
+                $cat['lang'],
328
+                $PMF_LANG['ad_quick_category']
329
+            );
330 330
 
331
-           // rename (sub) category (if current language)
332
-           printf('
331
+            // rename (sub) category (if current language)
332
+            printf('
333 333
                <a class="btn btn-info btn-sm" href="?action=editcategory&amp;cat=%s"><span title="%s" class="fa fa-edit fa-fw"></a> ',
334
-               $cat['id'],
335
-               $PMF_LANG['ad_kateg_rename']
336
-           );
334
+                $cat['id'],
335
+                $PMF_LANG['ad_kateg_rename']
336
+            );
337 337
         }
338 338
 
339 339
         // translate category (always)
@@ -357,20 +357,20 @@  discard block
 block discarded – undo
357 357
 
358 358
         if ($cat['lang'] == $lang) {
359 359
             // cut category (if current language)
360
-           printf(
361
-               '<a class="btn btn-warning btn-sm" href="?action=cutcategory&amp;cat=%s"><span title="%s" class="fa fa-cut fa-fw"></a> ',
362
-               $cat['id'],
363
-               $PMF_LANG['ad_categ_cut']
364
-           );
360
+            printf(
361
+                '<a class="btn btn-warning btn-sm" href="?action=cutcategory&amp;cat=%s"><span title="%s" class="fa fa-cut fa-fw"></a> ',
362
+                $cat['id'],
363
+                $PMF_LANG['ad_categ_cut']
364
+            );
365 365
 
366 366
             if ($category->numParent($cat['parent_id']) > 1) {
367 367
                 // move category (if current language) AND more than 1 category at the same level)
368
-              printf(
369
-                  '<a class="btn btn-warning btn-sm" href="?action=movecategory&amp;cat=%s&amp;parent_id=%s"><span title="%s" class="fa fa-sort fa-fw"></a> ',
370
-                  $cat['id'],
371
-                  $cat['parent_id'],
372
-                  $PMF_LANG['ad_categ_move']
373
-              );
368
+                printf(
369
+                    '<a class="btn btn-warning btn-sm" href="?action=movecategory&amp;cat=%s&amp;parent_id=%s"><span title="%s" class="fa fa-sort fa-fw"></a> ',
370
+                    $cat['id'],
371
+                    $cat['parent_id'],
372
+                    $PMF_LANG['ad_categ_move']
373
+                );
374 374
             }
375 375
         }
376 376
 
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
                             <i aria-hidden="true" class="fa fa-plus fa-fw"></i> <?php echo $PMF_LANG['ad_kateg_add']; ?>
37 37
                         </a>
38 38
                         <a class="btn btn-info" href="?action=showcategory">
39
-                            <i aria-hidden="true" class="fa fa-th fa-fw"></i> <?php echo $PMF_LANG['ad_categ_show'];?>
39
+                            <i aria-hidden="true" class="fa fa-th fa-fw"></i> <?php echo $PMF_LANG['ad_categ_show']; ?>
40 40
                         </a>
41 41
                     </div>
42 42
                 </h2>
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Mail.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -490,8 +490,8 @@
 block discarded – undo
490 490
         $this->headers['X-Mailer'] = $this->_mailer;
491 491
 
492 492
         // X-MSMail-Priority
493
-        if (isset($this->priorities[(int) $this->priority])) {
494
-            $this->headers['X-MSMail-Priority'] = $this->priorities[(int) $this->priority];
493
+        if (isset($this->priorities[(int)$this->priority])) {
494
+            $this->headers['X-MSMail-Priority'] = $this->priorities[(int)$this->priority];
495 495
         }
496 496
 
497 497
         // X-Originating-IP
Please login to merge, or discard this patch.
phpmyfaq/admin/ajax.config_list.php 1 patch
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -108,8 +108,8 @@  discard block
 block discarded – undo
108 108
                         echo PMF_Language::languageOptions(
109 109
                             str_replace(
110 110
                                 array(
111
-                                     'language_',
112
-                                     '.php',
111
+                                        'language_',
112
+                                        '.php',
113 113
                                 ),
114 114
                                 '',
115 115
                                 $faqConfig->get('main.language')
@@ -120,7 +120,7 @@  discard block
 block discarded – undo
120 120
                     } else {
121 121
                         echo '<option value="language_en.php">English</option>';
122 122
                     }
123
-                   break;
123
+                    break;
124 124
 
125 125
                 case 'records.orderby':
126 126
                     echo PMF_Configuration::sortingOptions($faqConfig->get($key));
Please login to merge, or discard this patch.
phpmyfaq/admin/stat.main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -134,7 +134,7 @@
 block discarded – undo
134 134
                     </tr>
135 135
                     <tr>
136 136
                         <td><?php echo $PMF_LANG['ad_stat_vpd'] ?>:</td>
137
-                        <td><?php echo ($danz != 0) ? round(($vanz / $danz), 2) : 0 ?></td>
137
+                        <td><?php echo ($danz != 0) ? round(($vanz/$danz), 2) : 0 ?></td>
138 138
                     </tr>
139 139
                     <tr>
140 140
                         <td><?php echo $PMF_LANG['ad_stat_fien'] ?>:</td>
Please login to merge, or discard this patch.
phpmyfaq/admin/record.edit.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -623,12 +623,15 @@  discard block
 block discarded – undo
623 623
                                         <input type="radio" name="active" value="no"
624 624
                                             <?php if (isset($sul)) { echo $sul; } ?>>
625 625
                                         <?php echo $PMF_LANG['ad_gen_no'] ?>
626
-                                <?php else: ?>
626
+                                <?php else {
627
+    : ?>
627 628
                                         <br>
628 629
                                         <input type="radio" name="active" value="no" checked>
629 630
                                         <?php echo $PMF_LANG['ad_gen_no'] ?>
630 631
 
631
-                                <?php endif; ?>
632
+                                <?php endif;
633
+}
634
+?>
632 635
                                     </label>
633 636
                             </div>
634 637
                         </div>
@@ -689,9 +692,12 @@  discard block
 block discarded – undo
689 692
                             </div>
690 693
                         </div>
691 694
                     </div>
692
-                    <?php else: ?>
695
+                    <?php else {
696
+    : ?>
693 697
                         <input type="hidden" name="grouppermission" value="all">
694
-                    <?php endif; ?>
698
+                    <?php endif;
699
+}
700
+?>
695 701
                     <div class="panel-heading">
696 702
                         <?php echo $PMF_LANG['ad_entry_userpermission']; ?>
697 703
                     </div>
Please login to merge, or discard this patch.
phpmyfaq/main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -64,7 +64,7 @@
 block discarded – undo
64 64
         'writeNumberOfArticles' => $plr->getMsg('plmsgHomeArticlesOnline', $faq->getNumberOfRecords($LANGCODE)),
65 65
         'writeSendAdress' => '?'.$sids.'action=search',
66 66
         'searchBox' => $PMF_LANG['msgSearch'],
67
-        'categoryId' => ($cat === 0) ? '%' : (int) $cat,
67
+        'categoryId' => ($cat === 0) ? '%' : (int)$cat,
68 68
         'msgSearch' => sprintf(
69 69
             '<a class="help" href="%sindex.php?action=search">%s</a>',
70 70
             $faqSystem->getSystemUri($faqConfig),
Please login to merge, or discard this patch.
phpmyfaq/feed/news/rss.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
     }
63 63
 } else {
64 64
     $user = PMF_User_CurrentUser::getFromCookie($faqConfig);
65
-    if (! $user instanceof PMF_User_CurrentUser) {
65
+    if (!$user instanceof PMF_User_CurrentUser) {
66 66
         $user = PMF_User_CurrentUser::getFromSession($faqConfig);
67 67
     }
68 68
 }
Please login to merge, or discard this patch.