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 ( af2f79...cb2263 )
by Thorsten
10:00
created
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/admin/attachment.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -95,14 +95,14 @@  discard block
 block discarded – undo
95 95
 
96 96
 }
97 97
 if (is_null($currentAction) && $auth && $user->perm->checkRight($user->getUserId(), 'addattachment')) {
98
-    $recordId = filter_input(INPUT_GET, 'record_id',   FILTER_VALIDATE_INT);
98
+    $recordId = filter_input(INPUT_GET, 'record_id', FILTER_VALIDATE_INT);
99 99
     $recordLang = filter_input(INPUT_GET, 'record_lang', FILTER_SANITIZE_STRING);
100 100
     ?>
101 101
         <form action="attachment.php?action=save" enctype="multipart/form-data" method="post" accept-charset="utf-8">
102 102
             <fieldset>
103 103
             <legend>
104 104
                 <?php echo $PMF_LANG['ad_att_addto'].' '.$PMF_LANG['ad_att_addto_2'] ?>
105
-                (max <?php echo round($faqConfig->get('records.maxAttachmentSize') / pow(1024, 2), 2) ?> MB)
105
+                (max <?php echo round($faqConfig->get('records.maxAttachmentSize')/pow(1024, 2), 2) ?> MB)
106 106
             </legend>
107 107
                 <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $faqConfig->get('records.maxAttachmentSize') ?>">
108 108
                 <input type="hidden" name="record_id" value="<?php echo $recordId ?>">
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
 if (!is_null($currentSave) && $currentSave == true && $auth &&
134 134
     $user->perm->checkRight($user->getUserId(), 'addattachment')) {
135
-    $recordId = filter_input(INPUT_POST, 'record_id',   FILTER_VALIDATE_INT);
135
+    $recordId = filter_input(INPUT_POST, 'record_id', FILTER_VALIDATE_INT);
136 136
     $recordLang = filter_input(INPUT_POST, 'record_lang', FILTER_SANITIZE_STRING);
137 137
     ?>
138 138
 <p>
@@ -174,7 +174,7 @@  discard block
 block discarded – undo
174 174
             '<p>%s</p>',
175 175
             sprintf(
176 176
                 $PMF_LANG['ad_attach_4'],
177
-                round($faqConfig->get('records.maxAttachmentSize') / pow(1024, 2), 2)
177
+                round($faqConfig->get('records.maxAttachmentSize')/pow(1024, 2), 2)
178 178
             )
179 179
         );
180 180
 
Please login to merge, or discard this patch.
phpmyfaq/lang/language_de.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -638,14 +638,14 @@  discard block
 block discarded – undo
638 638
 $PMF_LANG["ad_entry_visibility"] = "sichtbar";
639 639
 
640 640
 // added v2.0.0 - 2006-01-02 by Lars
641
-$PMF_LANG["ad_user_error_password"] =  "Bitte geben Sie ein Passwort ein. ";
642
-$PMF_LANG["ad_user_error_passwordsDontMatch"] =  "Die Passwörter stimmen nicht überein. ";
643
-$PMF_LANG["ad_user_error_loginInvalid"] =  "Der ausgewählte Benutzer ist ungültig.";
644
-$PMF_LANG["ad_user_error_noEmail"] =  "Bitte geben Sie eine korrekte E-Mailadresse ein. ";
645
-$PMF_LANG["ad_user_error_noRealName"] =  "Bitte geben Sie ihren Namen ein. ";
646
-$PMF_LANG["ad_user_error_delete"] =  "Der Benutzeraccount kann nicht gelöscht werden. ";
647
-$PMF_LANG["ad_user_error_noId"] =  "Keine ID ausgewählt. ";
648
-$PMF_LANG["ad_user_error_protectedAccount"] =  "Der Benutzeraccount ist geschützt. ";
641
+$PMF_LANG["ad_user_error_password"] = "Bitte geben Sie ein Passwort ein. ";
642
+$PMF_LANG["ad_user_error_passwordsDontMatch"] = "Die Passwörter stimmen nicht überein. ";
643
+$PMF_LANG["ad_user_error_loginInvalid"] = "Der ausgewählte Benutzer ist ungültig.";
644
+$PMF_LANG["ad_user_error_noEmail"] = "Bitte geben Sie eine korrekte E-Mailadresse ein. ";
645
+$PMF_LANG["ad_user_error_noRealName"] = "Bitte geben Sie ihren Namen ein. ";
646
+$PMF_LANG["ad_user_error_delete"] = "Der Benutzeraccount kann nicht gelöscht werden. ";
647
+$PMF_LANG["ad_user_error_noId"] = "Keine ID ausgewählt. ";
648
+$PMF_LANG["ad_user_error_protectedAccount"] = "Der Benutzeraccount ist geschützt. ";
649 649
 $PMF_LANG["ad_user_deleteUser"] = "Lösche Benutzer";
650 650
 $PMF_LANG["ad_user_status"] = "Status";
651 651
 $PMF_LANG["ad_user_lastModified"] = "Letzte Änderung:";
@@ -975,9 +975,9 @@  discard block
 block discarded – undo
975 975
 $PMF_LANG["ad_record_active"] = "aktiviert";
976 976
 
977 977
 // added 2.6.0-alpha - 2009-11-02 by max
978
-$LANG_CONF["search.numberSearchTerms"]   = array(0 => "input", 1 => "Anzahl der beliebtesten Suchbegriffe");
978
+$LANG_CONF["search.numberSearchTerms"] = array(0 => "input", 1 => "Anzahl der beliebtesten Suchbegriffe");
979 979
 $LANG_CONF["records.orderingPopularFaqs"] = array(0 => "select", 1 => "Sortierung der TOP-FAQ");
980
-$PMF_LANG["list_all_users"]            = "Alle Benutzer anzeigen";
980
+$PMF_LANG["list_all_users"] = "Alle Benutzer anzeigen";
981 981
 
982 982
 $PMF_LANG["records.orderingPopularFaqs.visits"] = "nach Anzahl der Besucher";
983 983
 $PMF_LANG["records.orderingPopularFaqs.voting"] = "nach Bewertung der Besucher";
Please login to merge, or discard this patch.
phpmyfaq/admin/ajax.image.php 2 patches
Switch Indentation   +40 added lines, -40 removed lines patch added patch discarded remove patch
@@ -36,47 +36,47 @@  discard block
 block discarded – undo
36 36
 }
37 37
 switch ($ajaxAction) {
38 38
 
39
-    case 'upload':
39
+        case 'upload':
40 40
 
41
-        $uploadDir = PMF_ROOT_DIR . '/images/';
42
-        $uploadFile = basename($_FILES['upload']['name']);
43
-        $isUploaded = false;
44
-        $height = $width = 0;
45
-        $validFileExtensions = [ 'gif', 'jpg', 'jpeg', 'png' ];
41
+            $uploadDir = PMF_ROOT_DIR . '/images/';
42
+            $uploadFile = basename($_FILES['upload']['name']);
43
+            $isUploaded = false;
44
+            $height = $width = 0;
45
+            $validFileExtensions = [ 'gif', 'jpg', 'jpeg', 'png' ];
46 46
 
47
-        if ($csrfOkay) {
48
-            if (is_uploaded_file($uploadedFile['tmp_name']) &&
49
-                $uploadedFile['size'] < $faqConfig->get('records.maxAttachmentSize')
50
-            ) {
47
+            if ($csrfOkay) {
48
+                if (is_uploaded_file($uploadedFile['tmp_name']) &&
49
+                    $uploadedFile['size'] < $faqConfig->get('records.maxAttachmentSize')
50
+                ) {
51 51
 
52
-                $fileInfo = getimagesize($uploadedFile['tmp_name']);
53
-                $fileExtension = pathinfo($uploadFile, PATHINFO_EXTENSION);;
52
+                    $fileInfo = getimagesize($uploadedFile['tmp_name']);
53
+                    $fileExtension = pathinfo($uploadFile, PATHINFO_EXTENSION);;
54 54
 
55
-                if (false === $fileInfo) {
56
-                    $isUploaded = false;
57
-                }
58
-
59
-                if (($fileInfo[2] !== IMAGETYPE_GIF) &&
60
-                    ($fileInfo[2] !== IMAGETYPE_JPEG) &&
61
-                    ($fileInfo[2] !== IMAGETYPE_PNG)) {
62
-                    $isUploaded = false;
63
-                } else {
64
-                    $isUploaded = true;
65
-                }
66
-
67
-                if (!in_array($fileExtension, $validFileExtensions)) {
68
-                    $isUploaded = false;
69
-                }
55
+                    if (false === $fileInfo) {
56
+                        $isUploaded = false;
57
+                    }
70 58
 
71
-                if ($fileInfo && $isUploaded) {
72
-                    list($width, $height) = $fileInfo;
73
-                    if (move_uploaded_file($uploadedFile['tmp_name'], $uploadDir . $uploadFile)) {
74
-                        $isUploaded = true;
59
+                    if (($fileInfo[2] !== IMAGETYPE_GIF) &&
60
+                        ($fileInfo[2] !== IMAGETYPE_JPEG) &&
61
+                        ($fileInfo[2] !== IMAGETYPE_PNG)) {
62
+                        $isUploaded = false;
75 63
                     } else {
64
+                        $isUploaded = true;
65
+                    }
66
+
67
+                    if (!in_array($fileExtension, $validFileExtensions)) {
76 68
                         $isUploaded = false;
77 69
                     }
78
-                }
79
-                ?>
70
+
71
+                    if ($fileInfo && $isUploaded) {
72
+                        list($width, $height) = $fileInfo;
73
+                        if (move_uploaded_file($uploadedFile['tmp_name'], $uploadDir . $uploadFile)) {
74
+                            $isUploaded = true;
75
+                        } else {
76
+                            $isUploaded = false;
77
+                        }
78
+                    }
79
+                    ?>
80 80
                 <script>
81 81
                     window.parent.window.pmfImageUpload.uploadFinished({
82 82
                         filename: '<?php echo $faqConfig->getDefaultUrl() . 'images/' . $uploadFile ?>',
@@ -87,8 +87,8 @@  discard block
 block discarded – undo
87 87
                     });
88 88
                 </script>
89 89
                 <?php
90
-            } else {
91
-                ?>
90
+                } else {
91
+                    ?>
92 92
                 <script>
93 93
                     window.parent.window.pmfImageUpload.uploadFinished({
94 94
                         filename: '',
@@ -99,9 +99,9 @@  discard block
 block discarded – undo
99 99
                     });
100 100
                 </script>
101 101
                 <?php
102
-            }
103
-        } else {
104
-            ?>
102
+                }
103
+            } else {
104
+                ?>
105 105
             <script>
106 106
                 window.parent.window.pmfImageUpload.uploadFinished({
107 107
                     filename: '',
@@ -112,7 +112,7 @@  discard block
 block discarded – undo
112 112
                 });
113 113
             </script>
114 114
             <?php
115
-        }
115
+            }
116 116
 
117
-        break;
117
+            break;
118 118
 }
119 119
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
 
39 39
     case 'upload':
40 40
 
41
-        $uploadDir = PMF_ROOT_DIR . '/images/';
41
+        $uploadDir = PMF_ROOT_DIR.'/images/';
42 42
         $uploadFile = basename($_FILES['upload']['name']);
43 43
         $isUploaded = false;
44 44
         $height = $width = 0;
45
-        $validFileExtensions = [ 'gif', 'jpg', 'jpeg', 'png' ];
45
+        $validFileExtensions = ['gif', 'jpg', 'jpeg', 'png'];
46 46
 
47 47
         if ($csrfOkay) {
48 48
             if (is_uploaded_file($uploadedFile['tmp_name']) &&
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
             ) {
51 51
 
52 52
                 $fileInfo = getimagesize($uploadedFile['tmp_name']);
53
-                $fileExtension = pathinfo($uploadFile, PATHINFO_EXTENSION);;
53
+                $fileExtension = pathinfo($uploadFile, PATHINFO_EXTENSION); ;
54 54
 
55 55
                 if (false === $fileInfo) {
56 56
                     $isUploaded = false;
@@ -70,7 +70,7 @@  discard block
 block discarded – undo
70 70
 
71 71
                 if ($fileInfo && $isUploaded) {
72 72
                     list($width, $height) = $fileInfo;
73
-                    if (move_uploaded_file($uploadedFile['tmp_name'], $uploadDir . $uploadFile)) {
73
+                    if (move_uploaded_file($uploadedFile['tmp_name'], $uploadDir.$uploadFile)) {
74 74
                         $isUploaded = true;
75 75
                     } else {
76 76
                         $isUploaded = false;
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
                 ?>
80 80
                 <script>
81 81
                     window.parent.window.pmfImageUpload.uploadFinished({
82
-                        filename: '<?php echo $faqConfig->getDefaultUrl() . 'images/' . $uploadFile ?>',
82
+                        filename: '<?php echo $faqConfig->getDefaultUrl().'images/'.$uploadFile ?>',
83 83
                         result: '<?php echo $isUploaded ? 'file_uploaded' : 'error' ?>',
84 84
                         resultCode: '<?php echo $isUploaded ? 'success' : 'failed' ?>',
85 85
                         height: <?php echo $height ?>,
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Filter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -124,7 +124,7 @@
 block discarded – undo
124 124
         foreach ($attributes[0] as $attribute) {
125 125
             $attributeName = stristr($attribute, '=', true);
126 126
             if (!in_array($attributeName, $keep)) {
127
-                $html = str_replace(' ' . $attribute, '', $html);
127
+                $html = str_replace(' '.$attribute, '', $html);
128 128
             }
129 129
         }
130 130
 
Please login to merge, or discard this patch.
phpmyfaq/admin/category.translate.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,9 +62,12 @@
 block discarded – undo
62 62
                     <input type="hidden" name="showcat" value="<?php echo $showcat ?>">
63 63
                     <?php if ($faqConfig->get('security.permLevel') !== 'basic'): ?>
64 64
                     <input type="hidden" name="restricted_groups[]" value="<?php echo $group_permission[0] ?>">
65
-                    <?php else: ?>
65
+                    <?php else {
66
+    : ?>
66 67
                     <input type="hidden" name="restricted_groups[]" value="-1">
67
-                    <?php endif; ?>
68
+                    <?php endif;
69
+}
70
+?>
68 71
                     <input type="hidden" name="restricted_users" value="<?php echo $user_permission[0] ?>">
69 72
                     <input type="hidden" name="csrf" value="<?php echo $user->getCsrfTokenFromSession() ?>">
70 73
                     <input type="hidden" name="active" value="<?php echo $category->categoryName[$id]['active'] ?>">
Please login to merge, or discard this patch.