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 ( 57fd3f...74adc5 )
by Thorsten
14s
created
phpmyfaq/inc/PMF/Relation.php 1 patch
Indentation   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -73,21 +73,21 @@
 block discarded – undo
73 73
         $search
74 74
             ->setTable(PMF_Db::getTablePrefix().'faqdata AS fd')
75 75
             ->setResultColumns(
76
-               [
77
-                   'fd.id AS id',
78
-                   'fd.lang AS lang',
79
-                   'fcr.category_id AS category_id',
80
-                   'fd.thema AS question',
81
-                   'fd.content AS answer',
82
-                   'fd.keywords AS keywords'
83
-               ]
76
+                [
77
+                    'fd.id AS id',
78
+                    'fd.lang AS lang',
79
+                    'fcr.category_id AS category_id',
80
+                    'fd.thema AS question',
81
+                    'fd.content AS answer',
82
+                    'fd.keywords AS keywords'
83
+                ]
84 84
             )
85 85
             ->setJoinedTable(PMF_Db::getTablePrefix().'faqcategoryrelations AS fcr')
86 86
             ->setJoinedColumns(
87
-               [
87
+                [
88 88
                 'fd.id = fcr.record_id',
89 89
                 'fd.lang = fcr.record_lang',
90
-               ]
90
+                ]
91 91
             )
92 92
             ->setConditions(
93 93
                 [
Please login to merge, or discard this patch.
phpmyfaq/admin/trans.list.php 1 patch
Braces   +20 added lines, -8 removed lines patch added patch discarded remove patch
@@ -105,9 +105,12 @@  discard block
 block discarded – undo
105 105
                         <?php echo $PMF_LANG['msgEdit'] ?>
106 106
                     </a>
107 107
                 </td>
108
-                <?php else: ?>
108
+                <?php else {
109
+    : ?>
109 110
                 <td><?php echo $PMF_LANG['msgEdit'] ?></td>
110
-                <?php endif; ?>
111
+                <?php endif;
112
+}
113
+?>
111 114
                 <?php if ($user->perm->checkRight($user->getUserId(), 'deltranslation') && $showActions): ?>
112 115
                 <td>
113 116
                     <a class="btn btn-danger" href="javascript: del('<?php echo $lang ?>');" >
@@ -115,9 +118,12 @@  discard block
 block discarded – undo
115 118
                         <?php echo $PMF_LANG['msgDelete'] ?>
116 119
                     </a>
117 120
                 </td>
118
-                <?php else: ?>
121
+                <?php else {
122
+    : ?>
119 123
                 <td><?php echo $PMF_LANG['msgDelete'] ?></td>
120
-                <?php endif; ?>
124
+                <?php endif;
125
+}
126
+?>
121 127
                 <?php if ($user->perm->checkRight($user->getUserId(), 'edittranslation') && $showActions): ?>
122 128
                 <td>
123 129
                     <a class="btn btn-success" href="javascript: sendToTeam('<?php echo $lang ?>');" >
@@ -125,14 +131,20 @@  discard block
 block discarded – undo
125 131
                         <?php echo $PMF_LANG['msgTransToolSendToTeam'] ?>
126 132
                     </a>
127 133
                 </td>
128
-                <?php else: ?>
134
+                <?php else {
135
+    : ?>
129 136
                 <td><?php echo $PMF_LANG['msgTransToolSendToTeam'] ?></td>
130
-                <?php endif; ?>
137
+                <?php endif;
138
+}
139
+?>
131 140
                 <?php if ($isLangFileWritable): ?>
132 141
                 <td><i aria-hidden="true" class="fa fa-ok-circle"></i> <?php echo $PMF_LANG['msgYes'] ?></td>
133
-                <?php else: ?>
142
+                <?php else {
143
+    : ?>
134 144
                 <td><i aria-hidden="true" class="fa fa-ban-circle"></i> <?php echo $PMF_LANG['msgNo'] ?></td>
135
-                <?php endif; ?>
145
+                <?php endif;
146
+}
147
+?>
136 148
                 <td>
137 149
                     <?php echo $percents ?>%
138 150
                     <meter value="<?php echo $percents ?>" max="100" min="0" title="<?php echo $percents ?>%">
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Mail/SwiftSMTP.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -51,7 +51,7 @@
 block discarded – undo
51 51
      * @param array $headers
52 52
      * @param string $body
53 53
      *
54
-     * @return bool True if successful, false otherwise.
54
+     * @return integer True if successful, false otherwise.
55 55
      */
56 56
     public function send($recipients, Array $headers, $body)
57 57
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     exit();
19 19
 }
20 20
 
21
-require __DIR__ . '/../../libs/swiftmailer/swift_required.php';
21
+require __DIR__.'/../../libs/swiftmailer/swift_required.php';
22 22
 
23 23
 /**
24 24
  * Class PMF_Mail_SwiftSMTP
Please login to merge, or discard this patch.
phpmyfaq/lang/language_bs.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -661,14 +661,14 @@
 block discarded – undo
661 661
 $PMF_LANG['ad_entry_visibility'] = 'Objavi?';
662 662
 
663 663
 // added v2.0.0 - 2006-01-02 by Lars
664
-$PMF_LANG['ad_user_error_password'] =  "Molimo unesite lozinku. ";
665
-$PMF_LANG['ad_user_error_passwordsDontMatch'] =  "Lozinke se ne poklapaju. ";
666
-$PMF_LANG['ad_user_error_loginInvalid'] =  "Une&scaron;eno korisni&#269;ko ime nije na&#273;eno.";
667
-$PMF_LANG['ad_user_error_noEmail'] =  "Unesite va&#382;e&#263;u email adresu. ";
668
-$PMF_LANG['ad_user_error_noRealName'] =  "Unesite Va&scaron;e pravo ime. ";
669
-$PMF_LANG['ad_user_error_delete'] =  "Korisni&#269;ki nalog ne mo&#382;e biti izbrisan. ";
670
-$PMF_LANG['ad_user_error_noId'] =  "Nije prilo&#382;en ID. ";
671
-$PMF_LANG['ad_user_error_protectedAccount'] =  "Korisni&#269;ki nalog je za&scaron;ti&#263;en. ";
664
+$PMF_LANG['ad_user_error_password'] = "Molimo unesite lozinku. ";
665
+$PMF_LANG['ad_user_error_passwordsDontMatch'] = "Lozinke se ne poklapaju. ";
666
+$PMF_LANG['ad_user_error_loginInvalid'] = "Une&scaron;eno korisni&#269;ko ime nije na&#273;eno.";
667
+$PMF_LANG['ad_user_error_noEmail'] = "Unesite va&#382;e&#263;u email adresu. ";
668
+$PMF_LANG['ad_user_error_noRealName'] = "Unesite Va&scaron;e pravo ime. ";
669
+$PMF_LANG['ad_user_error_delete'] = "Korisni&#269;ki nalog ne mo&#382;e biti izbrisan. ";
670
+$PMF_LANG['ad_user_error_noId'] = "Nije prilo&#382;en ID. ";
671
+$PMF_LANG['ad_user_error_protectedAccount'] = "Korisni&#269;ki nalog je za&scaron;ti&#263;en. ";
672 672
 $PMF_LANG['ad_user_deleteUser'] = "Obri&scaron;i korisnika";
673 673
 $PMF_LANG['ad_user_status'] = "Status:";
674 674
 $PMF_LANG['ad_user_lastModified'] = "zadnji put menjano:";
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Sitemap.php 1 patch
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@  discard block
 block discarded – undo
104 104
     /**
105 105
      * Returns all available first letters.
106 106
      *
107
-     * @return array
107
+     * @return string
108 108
      *
109 109
      * @since  2007-03-30
110 110
      *
@@ -212,7 +212,7 @@  discard block
 block discarded – undo
212 212
      *
213 213
      * @param string $letter Letter
214 214
      *
215
-     * @return array
215
+     * @return string
216 216
      *
217 217
      * @since  2007-03-30
218 218
      *
Please login to merge, or discard this patch.
scripts/createHashes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -18,9 +18,9 @@
 block discarded – undo
18 18
  * @since     2012-04-11
19 19
  */
20 20
 
21
-define('PMF_ROOT_DIR', dirname(__DIR__) . '/phpmyfaq');
21
+define('PMF_ROOT_DIR', dirname(__DIR__).'/phpmyfaq');
22 22
 
23
-require PMF_ROOT_DIR . '/inc/PMF/System.php';
23
+require PMF_ROOT_DIR.'/inc/PMF/System.php';
24 24
 
25 25
 $system = new PMF_System();
26 26
 
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Search.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     public function setCategoryId($categoryId)
86 86
     {
87
-        $this->categoryId = (int) $categoryId;
87
+        $this->categoryId = (int)$categoryId;
88 88
     }
89 89
 
90 90
     /**
@@ -159,8 +159,8 @@  discard block
 block discarded – undo
159 159
      */
160 160
     public function searchDatabase($searchTerm, $allLanguages = true)
161 161
     {
162
-        $fdTable = PMF_Db::getTablePrefix() . 'faqdata AS fd';
163
-        $fcrTable = PMF_Db::getTablePrefix() . 'faqcategoryrelations';
162
+        $fdTable = PMF_Db::getTablePrefix().'faqdata AS fd';
163
+        $fcrTable = PMF_Db::getTablePrefix().'faqcategoryrelations';
164 164
         $condition = ['fd.active' => "'yes'"];
165 165
         $search = PMF_Search_Factory::create($this->_config, ['database' => PMF_Db::getType()]);
166 166
 
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
             if ($this->getCategory() instanceof PMF_Category) {
169 169
                 $children = $this->getCategory()->getChildNodes($this->getCategoryId());
170 170
                 $selectedCategory = array(
171
-                    $fcrTable.'.category_id' => array_merge((array) $this->getCategoryId(), $children),
171
+                    $fcrTable.'.category_id' => array_merge((array)$this->getCategoryId(), $children),
172 172
                 );
173 173
             } else {
174 174
                 $selectedCategory = array(
@@ -179,7 +179,7 @@  discard block
 block discarded – undo
179 179
         }
180 180
 
181 181
         if ((!$allLanguages) && (!is_numeric($searchTerm))) {
182
-            $selectedLanguage = array('fd.lang' => "'" . $this->_config->getLanguage()->getLanguage() . "'");
182
+            $selectedLanguage = array('fd.lang' => "'".$this->_config->getLanguage()->getLanguage()."'");
183 183
             $condition        = array_merge($selectedLanguage, $condition);
184 184
         }
185 185
 
@@ -188,13 +188,13 @@  discard block
 block discarded – undo
188 188
                 'fd.id AS id',
189 189
                 'fd.lang AS lang',
190 190
                 'fd.solution_id AS solution_id',
191
-                $fcrTable . '.category_id AS category_id',
191
+                $fcrTable.'.category_id AS category_id',
192 192
                 'fd.thema AS question',
193 193
                 'fd.content AS answer'))
194 194
             ->setJoinedTable($fcrTable)
195 195
             ->setJoinedColumns(array(
196
-                'fd.id = ' . $fcrTable . '.record_id',
197
-                'fd.lang = ' . $fcrTable . '.record_lang'
196
+                'fd.id = '.$fcrTable.'.record_id',
197
+                'fd.lang = '.$fcrTable.'.record_lang'
198 198
             ))
199 199
             ->setConditions($condition);
200 200
 
@@ -339,7 +339,7 @@  discard block
 block discarded – undo
339 339
             $i = 0;
340 340
             while ($row = $this->_config->getDb()->fetchObject($result)) {
341 341
                 if ($i < $numResults) {
342
-                    $searchResult[] = (array) $row;
342
+                    $searchResult[] = (array)$row;
343 343
                 }
344 344
                 ++$i;
345 345
             }
@@ -362,7 +362,7 @@  discard block
 block discarded – undo
362 362
 
363 363
         $result = $this->_config->getDb()->query($sql);
364 364
 
365
-        return (int) $this->_config->getDb()->fetchObject($result)->count;
365
+        return (int)$this->_config->getDb()->fetchObject($result)->count;
366 366
     }
367 367
 
368 368
     /**
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Instance/Elasticsearch.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
     public function createIndex()
101 101
     {
102 102
         $this->client->indices()->create($this->getParams());
103
-        return $this->putMapping();;
103
+        return $this->putMapping(); ;
104 104
     }
105 105
 
106 106
     /**
@@ -211,7 +211,7 @@  discard block
 block discarded – undo
211 211
                 'category_id' => $faq['category_id']
212 212
             ];
213 213
 
214
-            if ($i % 1000 == 0) {
214
+            if ($i%1000 == 0) {
215 215
                 $responses = $this->client->bulk($params);
216 216
                 $params = ['body' => []];
217 217
                 unset($responses);
Please login to merge, or discard this patch.
phpmyfaq/index.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -500,7 +500,7 @@  discard block
 block discarded – undo
500 500
     'dir' => $PMF_LANG['dir'],
501 501
     'writeSendAdress' => '?'.$sids.'action=search',
502 502
     'searchBox' => $PMF_LANG['msgSearch'],
503
-    'categoryId' => ($cat === 0) ? '%' : (int) $cat,
503
+    'categoryId' => ($cat === 0) ? '%' : (int)$cat,
504 504
     'showInstantResponse' => '', // @deprecated
505 505
     'headerCategories' => $PMF_LANG['msgFullCategories'],
506 506
     'msgCategory' => $PMF_LANG['msgCategory'],
@@ -547,7 +547,7 @@  discard block
 block discarded – undo
547 547
         array(
548 548
             'writeSendAdress' => '?'.$sids.'action=search',
549 549
             'searchBox' => $PMF_LANG['msgSearch'],
550
-            'categoryId' => ($cat === 0) ? '%' : (int) $cat,
550
+            'categoryId' => ($cat === 0) ? '%' : (int)$cat,
551 551
             'msgSearch' => sprintf(
552 552
                 '<a class="help" href="%sindex.php?action=search">%s</a>',
553 553
                 $faqSystem->getSystemUri($faqConfig),
@@ -582,7 +582,7 @@  discard block
 block discarded – undo
582 582
         'allCategories' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'showcat.html">'.$PMF_LANG['msgShowAllCategories'].'</a>',
583 583
         'faqOverview' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'overview.html">'.$PMF_LANG['faqOverview'].'</a>',
584 584
         'showSitemap' => '<a href="'.$faqSystem->getSystemUri($faqConfig).'sitemap/A/'.$LANGCODE.'.html">'.$PMF_LANG['msgSitemap'].'</a>',
585
-        'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.html', );
585
+        'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.html',);
586 586
 } else {
587 587
     $tplNavigation = array(
588 588
         'msgSearch' => '<a href="index.php?'.$sids.'action=search">'.$PMF_LANG['msgAdvancedSearch'].'</a>',
@@ -596,7 +596,7 @@  discard block
 block discarded – undo
596 596
         'faqOverview' => '<a href="index.php?'.$sids.'action=overview">'.$PMF_LANG['faqOverview'].'</a>',
597 597
         'backToHome' => '<a href="index.php?'.$sids.'">'.$PMF_LANG['msgHome'].'</a>',
598 598
         'showSitemap' => '<a href="index.php?'.$sids.'action=sitemap&amp;lang='.$LANGCODE.'">'.$PMF_LANG['msgSitemap'].'</a>',
599
-        'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.php', );
599
+        'opensearch' => $faqSystem->getSystemUri($faqConfig).'opensearch.php',);
600 600
 }
601 601
 
602 602
 $tplNavigation['faqHome'] = $faqConfig->getDefaultUrl();
@@ -695,7 +695,7 @@  discard block
 block discarded – undo
695 695
     );
696 696
 } else {
697 697
     $tpl->parseBlock('rightBox', 'latestEntriesListError', array(
698
-        'errorMsgLatest' => $latestEntriesParams['error'], )
698
+        'errorMsgLatest' => $latestEntriesParams['error'],)
699 699
     );
700 700
 }
701 701
 
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -454,8 +454,8 @@  discard block
 block discarded – undo
454 454
     $users = $faqsession->getUsersOnline();
455 455
     $totUsers = $users[0] + $users[1];
456 456
     $usersOnline = $plr->getMsg('plmsgUserOnline', $totUsers).' | '.
457
-                   $plr->getMsg('plmsgGuestOnline', $users[0]).
458
-                   $plr->getMsg('plmsgRegisteredOnline', $users[1]);
457
+                    $plr->getMsg('plmsgGuestOnline', $users[0]).
458
+                    $plr->getMsg('plmsgRegisteredOnline', $users[1]);
459 459
 } else {
460 460
     $usersOnline = '';
461 461
 }
@@ -509,7 +509,7 @@  discard block
 block discarded – undo
509 509
     'switchLanguages' => PMF_Language::selectLanguages($LANGCODE, true),
510 510
     'userOnline' => $usersOnline,
511 511
     'copyright' => 'powered by <a href="https://www.phpmyfaq.de" target="_blank">phpMyFAQ</a> '.
512
-                              $faqConfig->get('main.currentVersion'),
512
+                                $faqConfig->get('main.currentVersion'),
513 513
     'registerUser' => $faqConfig->get('security.enableRegistration') ? '<a href="?action=register">'.$PMF_LANG['msgRegistration'].'</a>' : '',
514 514
     'sendPassword' => '<a href="?action=password">'.$PMF_LANG['lostPassword'].'</a>',
515 515
     'msgFullName' => $PMF_LANG['ad_user_loggedin'].$user->getLogin(),
Please login to merge, or discard this patch.