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 ( 567fdd...4d6872 )
by Thorsten
09:07
created
phpmyfaq/inc/PMF/News.php 2 patches
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -150,9 +150,9 @@
 block discarded – undo
150 150
 
151 151
         foreach ($news as $item) {
152 152
             $url = sprintf('%s?action=news&newsid=%d&newslang=%s',
153
-                           PMF_Link::getSystemRelativeUri(),
154
-                           $item['id'],
155
-                           $item['lang']);
153
+                            PMF_Link::getSystemRelativeUri(),
154
+                            $item['id'],
155
+                            $item['lang']);
156 156
             $oLink = new PMF_Link($url, $this->_config);
157 157
 
158 158
             if (isset($item['header'])) {
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
         if ($this->_config->get('records.numberOfShownNewsEntries') > 0 && $this->_config->getDb()->numRows($result) > 0) {
107 107
             while (($row = $this->_config->getDb()->fetchObject($result))) {
108 108
                 ++$counter;
109
-                if (($showArchive  && ($counter > $this->_config->get('records.numberOfShownNewsEntries'))) ||
109
+                if (($showArchive && ($counter > $this->_config->get('records.numberOfShownNewsEntries'))) ||
110 110
                    ((!$showArchive) && (!$forceConfLimit) &&
111 111
                    ($counter <= $this->_config->get('records.numberOfShownNewsEntries'))) ||
112 112
                    ((!$showArchive) && $forceConfLimit)) {
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
                         'allowComments' => ('y' == $row->comment),
126 126
                         'link' => $row->link,
127 127
                         'linkTitle' => $row->linktitel,
128
-                        'target' => $row->target, );
128
+                        'target' => $row->target,);
129 129
                     $news[] = $item;
130 130
                 }
131 131
             }
@@ -286,7 +286,7 @@  discard block
 block discarded – undo
286 286
                     'allowComments' => $allowComments,
287 287
                     'link' => $row->link,
288 288
                     'linkTitle' => $row->linktitel,
289
-                    'target' => $row->target, );
289
+                    'target' => $row->target,);
290 290
             }
291 291
         }
292 292
 
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Pagination.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -277,8 +277,8 @@
 block discarded – undo
277 277
     public function render()
278 278
     {
279 279
         $content = [];
280
-        $pages = ceil($this->total / $this->perPage);
281
-        $adjacents = floor($this->adjacents / 2) >= 1 ? floor($this->adjacents / 2) : 1;
280
+        $pages = ceil($this->total/$this->perPage);
281
+        $adjacents = floor($this->adjacents/2) >= 1 ? floor($this->adjacents/2) : 1;
282 282
 
283 283
         for ($page = 1; $page <= $pages; ++$page) {
284 284
             if ($page > $this->adjacents && $page < $this->currentPage - $adjacents) {
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Perm/Basic.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -267,8 +267,8 @@  discard block
 block discarded – undo
267 267
 
268 268
         // process right data
269 269
         $right_data = $this->config->getDb()->fetchArray($res);
270
-        $right_data['for_users'] = (bool) $right_data['for_users'];
271
-        $right_data['for_groups'] = (bool) $right_data['for_groups'];
270
+        $right_data['for_users'] = (bool)$right_data['for_users'];
271
+        $right_data['for_groups'] = (bool)$right_data['for_groups'];
272 272
 
273 273
         return $right_data;
274 274
     }
@@ -327,8 +327,8 @@  discard block
 block discarded – undo
327 327
             $nextId,
328 328
             $rightData['name'],
329 329
             $rightData['description'],
330
-            isset($rightData['for_users']) ? (int) $rightData['for_users'] : 1,
331
-            isset($rightData['for_groups']) ? (int) $rightData['for_groups'] : 1
330
+            isset($rightData['for_users']) ? (int)$rightData['for_users'] : 1,
331
+            isset($rightData['for_groups']) ? (int)$rightData['for_groups'] : 1
332 332
         );
333 333
 
334 334
         if (!$this->config->getDb()->query($insert)) {
@@ -552,8 +552,8 @@  discard block
 block discarded – undo
552 552
             $right_data['for_groups'] = $this->default_right_data['for_groups'];
553 553
         }
554 554
 
555
-        $right_data['for_users'] = (int) $right_data['for_users'];
556
-        $right_data['for_groups'] = (int) $right_data['for_groups'];
555
+        $right_data['for_users'] = (int)$right_data['for_users'];
556
+        $right_data['for_groups'] = (int)$right_data['for_groups'];
557 557
 
558 558
         return $right_data;
559 559
     }
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Perm/Medium.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -276,7 +276,7 @@  discard block
 block discarded – undo
276 276
             $nextId,
277 277
             $groupData['name'],
278 278
             $groupData['description'],
279
-            (int) $groupData['auto_join']
279
+            (int)$groupData['auto_join']
280 280
         );
281 281
 
282 282
         $res = $this->config->getDb()->query($insert);
@@ -768,7 +768,7 @@  discard block
 block discarded – undo
768 768
         if (!isset($groupData['auto_join'])) {
769 769
             $groupData['auto_join'] = $this->defaultGroupData['auto_join'];
770 770
         }
771
-        $groupData['auto_join'] = (int) $groupData['auto_join'];
771
+        $groupData['auto_join'] = (int)$groupData['auto_join'];
772 772
 
773 773
         return $groupData;
774 774
     }
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Rating.php 1 patch
Indentation   +7 added lines, -7 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
                 );
125 125
                 break;
126 126
 
127
-             default:
127
+                default:
128 128
                 $query = sprintf('
129 129
                     SELECT
130 130
                         fd.id AS id,
@@ -164,12 +164,12 @@  discard block
 block discarded – undo
164 164
         $result = $this->_config->getDb()->query($query);
165 165
         while ($row = $this->_config->getDb()->fetchObject($result)) {
166 166
             $ratings[] = array(
167
-               'id' => $row->id,
168
-               'lang' => $row->lang,
169
-               'category_id' => $row->category_id,
170
-               'question' => $row->question,
171
-               'num' => $row->num,
172
-               'usr' => $row->usr,
167
+                'id' => $row->id,
168
+                'lang' => $row->lang,
169
+                'category_id' => $row->category_id,
170
+                'question' => $row->question,
171
+                'num' => $row->num,
172
+                'usr' => $row->usr,
173 173
             );
174 174
         }
175 175
 
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
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
      */
87 87
     public function setCategoryId($categoryId)
88 88
     {
89
-        $this->categoryId = (int) $categoryId;
89
+        $this->categoryId = (int)$categoryId;
90 90
     }
91 91
 
92 92
     /**
@@ -109,8 +109,8 @@  discard block
 block discarded – undo
109 109
      */
110 110
     public function search($searchTerm, $allLanguages = true)
111 111
     {
112
-        $fdTable = PMF_Db::getTablePrefix() . 'faqdata AS fd';
113
-        $fcrTable = PMF_Db::getTablePrefix() . 'faqcategoryrelations';
112
+        $fdTable = PMF_Db::getTablePrefix().'faqdata AS fd';
113
+        $fcrTable = PMF_Db::getTablePrefix().'faqcategoryrelations';
114 114
         $condition = ['fd.active' => "'yes'"];
115 115
         $search = PMF_Search_Factory::create($this->_config, ['database' => PMF_Db::getType()]);
116 116
 
@@ -118,7 +118,7 @@  discard block
 block discarded – undo
118 118
             if ($this->getCategory() instanceof PMF_Category) {
119 119
                 $children = $this->getCategory()->getChildNodes($this->getCategoryId());
120 120
                 $selectedCategory = array(
121
-                    $fcrTable.'.category_id' => array_merge((array) $this->getCategoryId(), $children),
121
+                    $fcrTable.'.category_id' => array_merge((array)$this->getCategoryId(), $children),
122 122
                 );
123 123
             } else {
124 124
                 $selectedCategory = array(
@@ -129,7 +129,7 @@  discard block
 block discarded – undo
129 129
         }
130 130
 
131 131
         if ((!$allLanguages) && (!is_numeric($searchTerm))) {
132
-            $selectedLanguage = array('fd.lang' => "'" . $this->_config->getLanguage()->getLanguage() . "'");
132
+            $selectedLanguage = array('fd.lang' => "'".$this->_config->getLanguage()->getLanguage()."'");
133 133
             $condition        = array_merge($selectedLanguage, $condition);
134 134
         }
135 135
 
@@ -138,13 +138,13 @@  discard block
 block discarded – undo
138 138
                 'fd.id AS id',
139 139
                 'fd.lang AS lang',
140 140
                 'fd.solution_id AS solution_id',
141
-                $fcrTable . '.category_id AS category_id',
141
+                $fcrTable.'.category_id AS category_id',
142 142
                 'fd.thema AS question',
143 143
                 'fd.content AS answer'))
144 144
             ->setJoinedTable($fcrTable)
145 145
             ->setJoinedColumns(array(
146
-                'fd.id = ' . $fcrTable . '.record_id',
147
-                'fd.lang = ' . $fcrTable . '.record_lang'
146
+                'fd.id = '.$fcrTable.'.record_id',
147
+                'fd.lang = '.$fcrTable.'.record_lang'
148 148
             ))
149 149
             ->setConditions($condition);
150 150
 
@@ -258,7 +258,7 @@  discard block
 block discarded – undo
258 258
             $i = 0;
259 259
             while ($row = $this->_config->getDb()->fetchObject($result)) {
260 260
                 if ($i < $numResults) {
261
-                    $searchResult[] = (array) $row;
261
+                    $searchResult[] = (array)$row;
262 262
                 }
263 263
                 ++$i;
264 264
             }
@@ -281,7 +281,7 @@  discard block
 block discarded – undo
281 281
 
282 282
         $result = $this->_config->getDb()->query($sql);
283 283
 
284
-        return (int) $this->_config->getDb()->fetchObject($result)->count;
284
+        return (int)$this->_config->getDb()->fetchObject($result)->count;
285 285
     }
286 286
 
287 287
     /**
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Search/Resultset.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -216,6 +216,6 @@
 block discarded – undo
216 216
             $score += $object->relevance_keywords;
217 217
         }
218 218
 
219
-        return round($score / 3 * 100);
219
+        return round($score/3*100);
220 220
     }
221 221
 }
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Session.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -87,7 +87,7 @@
 block discarded – undo
87 87
             }
88 88
 
89 89
             foreach ($botBlacklist as $bot) {
90
-                if ((bool) PMF_String::strstr($agent, $bot)) {
90
+                if ((bool)PMF_String::strstr($agent, $bot)) {
91 91
                     ++$bots;
92 92
                 }
93 93
             }
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/String/Abstract.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -77,14 +77,14 @@
 block discarded – undo
77 77
             return mb_detect_encoding($str, 'UTF-8', true);
78 78
         } else {
79 79
             $regex = '/^([\x00-\x7f]|'
80
-                   .'[\xc2-\xdf][\x80-\xbf]|'
81
-                   .'\xe0[\xa0-\xbf][\x80-\xbf]|'
82
-                   .'[\xe1-\xec][\x80-\xbf]{2}|'
83
-                   .'\xed[\x80-\x9f][\x80-\xbf]|'
84
-                   .'[\xee-\xef][\x80-\xbf]{2}|'
85
-                   .'\xf0[\x90-\xbf][\x80-\xbf]{2}|'
86
-                   .'[\xf1-\xf3][\x80-\xbf]{3}|'
87
-                   .'\xf4[\x80-\x8f][\x80-\xbf]{2})*$/';
80
+                    .'[\xc2-\xdf][\x80-\xbf]|'
81
+                    .'\xe0[\xa0-\xbf][\x80-\xbf]|'
82
+                    .'[\xe1-\xec][\x80-\xbf]{2}|'
83
+                    .'\xed[\x80-\x9f][\x80-\xbf]|'
84
+                    .'[\xee-\xef][\x80-\xbf]{2}|'
85
+                    .'\xf0[\x90-\xbf][\x80-\xbf]{2}|'
86
+                    .'[\xf1-\xf3][\x80-\xbf]{3}|'
87
+                    .'\xf4[\x80-\x8f][\x80-\xbf]{2})*$/';
88 88
 
89 89
             return preg_match($regex, $str) === 1;
90 90
         }
Please login to merge, or discard this patch.