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 ( 89da4e...629212 )
by Thorsten
14s
created
phpmyfaq/send2friend.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -47,8 +47,8 @@
 block discarded – undo
47 47
 
48 48
 $send2friendLink = sprintf('%sindex.php?action=artikel&cat=%d&id=%d&artlang=%s',
49 49
     $faqConfig->getDefaultUrl(),
50
-    (int) $cat,
51
-    (int) $id,
50
+    (int)$cat,
51
+    (int)$id,
52 52
     urlencode($artlang));
53 53
 
54 54
 $captchaHelper = new PMF_Helper_Captcha($faqConfig);
Please login to merge, or discard this patch.
phpmyfaq/sitemap.xml.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -118,7 +118,7 @@
 block discarded – undo
118 118
 foreach ($items as $item) {
119 119
     $priority = PMF_SITEMAP_GOOGLE_PRIORITY_DEFAULT;
120 120
     if (($visitsMax - $visitMin) > 0) {
121
-        $priority = sprintf('%.1f', PMF_SITEMAP_GOOGLE_PRIORITY_DEFAULT * (1 + (($item['visits'] - $visitMin) / ($visitsMax - $visitMin))));
121
+        $priority = sprintf('%.1f', PMF_SITEMAP_GOOGLE_PRIORITY_DEFAULT*(1 + (($item['visits'] - $visitMin)/($visitsMax - $visitMin))));
122 122
     }
123 123
     // a. We use plain PMF urls w/o any SEO schema
124 124
     $link = str_replace($_SERVER['SCRIPT_NAME'], '/index.php', $item['url']);
Please login to merge, or discard this patch.
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -68,7 +68,7 @@  discard block
 block discarded – undo
68 68
         $changeFreq = PMF_SITEMAP_GOOGLE_CHANGEFREQ_DAILY;
69 69
     }
70 70
     $node =
71
-         '<url>'
71
+            '<url>'
72 72
         .'<loc>'.PMF_String::htmlspecialchars($location).'</loc>'
73 73
         .'<lastmod>'.$lastmod.'</lastmod>'
74 74
         .'<changefreq>'.$changeFreq.'</changefreq>'
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
 
100 100
 // Sitemap header
101 101
 $sitemap =
102
-     '<?xml version="1.0" encoding="UTF-8"?>'
102
+        '<?xml version="1.0" encoding="UTF-8"?>'
103 103
     .'<urlset xmlns="http://www.google.com/schemas/sitemap/0.9"'
104 104
     .' xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"'
105 105
     .' xsi:schemaLocation="http://www.google.com/schemas/sitemap/0.9'
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Configuration.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -395,12 +395,12 @@
 block discarded – undo
395 395
     public function update(Array $newConfigs)
396 396
     {
397 397
         $runtimeConfigs = [
398
-            'core.database',           // PMF_DB_Driver
399
-            'core.instance',           // PMF_Instance
400
-            'core.language',           // Language
401
-            'core.ldap',               // PMF_Ldap
402
-            'core.ldapConfig',         // $PMF_LDAP
403
-            'core.elasticsearch',      // Elasticsearch\Client
398
+            'core.database', // PMF_DB_Driver
399
+            'core.instance', // PMF_Instance
400
+            'core.language', // Language
401
+            'core.ldap', // PMF_Ldap
402
+            'core.ldapConfig', // $PMF_LDAP
403
+            'core.elasticsearch', // Elasticsearch\Client
404 404
             'core.elasticsearchConfig' // $PMF_ES
405 405
         ];
406 406
 
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 3 patches
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -121,7 +121,7 @@
 block discarded – undo
121 121
             $queryString = 'saveentry&amp;id='.$faqData['id'];
122 122
         } else {
123 123
             $queryString = 'insertentry';
124
-            if (isset($categoryId)){
124
+            if (isset($categoryId)) {
125 125
                 $categories = ['category_id' => $categoryId, 'category_lang' => $lang];
126 126
             } 
127 127
         }
Please login to merge, or discard this patch.
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -546,7 +546,7 @@  discard block
 block discarded – undo
546 546
                         <div id="collapseViewChangelog" class="panel-collapse collapse">
547 547
                             <div class="panel-body">
548 548
                                 <?php
549
-								$currentUserId = $user->getUserId();
549
+                                $currentUserId = $user->getUserId();
550 550
                                 foreach ($faq->getChangeEntries($faqData['id']) as $entry) {
551 551
                                     $user->getUserById($entry['user']);
552 552
                                     ?>
@@ -565,9 +565,9 @@  discard block
 block discarded – undo
565 565
                                         <?php echo $entry['changelog'] ?>
566 566
                                     </p>
567 567
                                 <?php 
568
-								} 
569
-								$user->getUserById($currentUserId);
570
-								?>
568
+                                } 
569
+                                $user->getUserById($currentUserId);
570
+                                ?>
571 571
                             </div>
572 572
                         </div>
573 573
                     </div>
Please login to merge, or discard this patch.
phpmyfaq/admin/category.main.php 2 patches
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.
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -322,26 +322,26 @@  discard block
 block discarded – undo
322 322
         // add faq to category (always)
323 323
         printf('
324 324
            <a class="btn btn-info btn-sm" href="?action=editentry&amp;cat=%s&amp;lang=%s"><span title="%s" class="fa fa-file-text-o fa-fw"></span></a> ',
325
-           $cat['id'],
326
-           $cat['lang'],
327
-           $PMF_LANG['ad_quick_entry']
325
+            $cat['id'],
326
+            $cat['lang'],
327
+            $PMF_LANG['ad_quick_entry']
328 328
         );
329 329
 
330 330
         if ($cat['lang'] == $lang) {
331 331
             // add sub category (if current language)
332
-           printf('
332
+            printf('
333 333
                <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> ',
334
-               $cat['id'],
335
-               $cat['lang'],
336
-               $PMF_LANG['ad_quick_category']
337
-           );
334
+                $cat['id'],
335
+                $cat['lang'],
336
+                $PMF_LANG['ad_quick_category']
337
+            );
338 338
 
339
-           // rename (sub) category (if current language)
340
-           printf('
339
+            // rename (sub) category (if current language)
340
+            printf('
341 341
                <a class="btn btn-info btn-sm" href="?action=editcategory&amp;cat=%s"><span title="%s" class="fa fa-edit fa-fw"></a> ',
342
-               $cat['id'],
343
-               $PMF_LANG['ad_kateg_rename']
344
-           );
342
+                $cat['id'],
343
+                $PMF_LANG['ad_kateg_rename']
344
+            );
345 345
         }
346 346
 
347 347
         // translate category (always)
@@ -365,20 +365,20 @@  discard block
 block discarded – undo
365 365
 
366 366
         if ($cat['lang'] == $lang) {
367 367
             // cut category (if current language)
368
-           printf(
369
-               '<a class="btn btn-warning btn-sm" href="?action=cutcategory&amp;cat=%s"><span title="%s" class="fa fa-cut fa-fw"></a> ',
370
-               $cat['id'],
371
-               $PMF_LANG['ad_categ_cut']
372
-           );
368
+            printf(
369
+                '<a class="btn btn-warning btn-sm" href="?action=cutcategory&amp;cat=%s"><span title="%s" class="fa fa-cut fa-fw"></a> ',
370
+                $cat['id'],
371
+                $PMF_LANG['ad_categ_cut']
372
+            );
373 373
 
374 374
             if ($category->numParent($cat['parent_id']) > 1) {
375 375
                 // move category (if current language) AND more than 1 category at the same level)
376
-              printf(
377
-                  '<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> ',
378
-                  $cat['id'],
379
-                  $cat['parent_id'],
380
-                  $PMF_LANG['ad_categ_move']
381
-              );
376
+                printf(
377
+                    '<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> ',
378
+                    $cat['id'],
379
+                    $cat['parent_id'],
380
+                    $PMF_LANG['ad_categ_move']
381
+                );
382 382
             }
383 383
         }
384 384
 
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.