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 ( dd391a...bc727d )
by Thorsten
13:32
created
phpmyfaq/admin/footer.php 3 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
 <iframe id="keepPMFSessionAlive" src="session.keepalive.php?lang=<?php echo $LANGCODE;
61 61
     ?>" width="0" height="0"></iframe>
62 62
 <?php
63
-    if (isset($auth) && (('takequestion' == $action) || ('editentry' == $action) || ('editpreview'  == $action) ||
63
+    if (isset($auth) && (('takequestion' == $action) || ('editentry' == $action) || ('editpreview' == $action) ||
64 64
                          ('addnews' == $action) || ('editnews' == $action) || ('copyentry' == $action))) {
65 65
         if ($faqConfig->get('main.enableWysiwygEditor') == true) {
66 66
             ?>
Please login to merge, or discard this patch.
Braces   +3 added lines, -1 removed lines patch added patch discarded remove patch
@@ -165,9 +165,11 @@
 block discarded – undo
165 165
         // Submit the form by an ajax request
166 166
         <?php if (isset($faqData['id']) && $faqData['id'] == 0): ?>
167 167
         var data = {action: "ajax", ajax: 'recordAdd'};
168
-        <?php else: ?>
168
+        <?php else {
169
+    : ?>
169 170
         var data = {action: "ajax", ajax: 'recordSave'};
170 171
         <?php endif;
172
+}
171 173
             ?>
172 174
         var id = $('#answer')[0].parentNode.parentNode.id;
173 175
         $.each($('#' + id).serialize[], function(i, field) {
Please login to merge, or discard this patch.
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Footer of the admin area.
4
- *
5
- * PHP Version 5.5
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ 
12
- *
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @author    Matteo Scaramuccia <[email protected]>
15
- * @copyright 2003-2016 phpMyFAQ Team
16
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
- *
18
- * @link      http://www.phpmyfaq.de
19
- * @since     2003-02-26
20
- */
3
+     * Footer of the admin area.
4
+     *
5
+     * PHP Version 5.5
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ 
12
+     *
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @author    Matteo Scaramuccia <[email protected]>
15
+     * @copyright 2003-2016 phpMyFAQ Team
16
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
+     *
18
+     * @link      http://www.phpmyfaq.de
19
+     * @since     2003-02-26
20
+     */
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     $protocol = 'http';
23 23
     if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
Please login to merge, or discard this patch.
phpmyfaq/admin/group.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -67,7 +67,7 @@  discard block
 block discarded – undo
67 67
             $message .= sprintf('<p class="alert alert-danger">%s</p>', $PMF_LANG['ad_msg_mysqlerr']);
68 68
         }
69 69
         foreach ($groupMembers as $memberId) {
70
-            $perm->addToGroup((int) $memberId, $groupId);
70
+            $perm->addToGroup((int)$memberId, $groupId);
71 71
         }
72 72
         $message .= sprintf('<p class="alert alert-success">%s <strong>%s</strong> %s</p>',
73 73
             $PMF_LANG['ad_msg_savedsuc_1'],
@@ -91,7 +91,7 @@  discard block
 block discarded – undo
91 91
             $message .= sprintf('<p class="alert alert-danger">%s</p>', $PMF_LANG['ad_msg_mysqlerr']);
92 92
         }
93 93
         foreach ($groupRights as $rightId) {
94
-            $perm->grantGroupRight($groupId, (int) $rightId);
94
+            $perm->grantGroupRight($groupId, (int)$rightId);
95 95
         }
96 96
         $message .= sprintf('<p class="alert alert-success">%s <strong>%s</strong> %s</p>',
97 97
             $PMF_LANG['ad_msg_savedsuc_1'],
Please login to merge, or discard this patch.
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Displays the group management frontend.
4
- *
5
- * PHP Version 5.5
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @author    Lars Tiedemann <[email protected]>
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2005-2016 phpMyFAQ Team
15
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
- * @link      http://www.phpmyfaq.de
17
- * @since     2005-12-15
18
- */
3
+     * Displays the group management frontend.
4
+     *
5
+     * PHP Version 5.5
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ
12
+     * @author    Lars Tiedemann <[email protected]>
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @copyright 2005-2016 phpMyFAQ Team
15
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
+     * @link      http://www.phpmyfaq.de
17
+     * @since     2005-12-15
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
Please login to merge, or discard this patch.
phpmyfaq/admin/image.browser.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,15 +54,15 @@
 block discarded – undo
54 54
 if (!is_dir(PMF_ROOT_DIR.'/images')) {
55 55
     echo '<p class="alert alert-danger">'.sprintf($PMF_LANG['ad_dir_missing'], '/images').'</p>';
56 56
 } else {
57
-    $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(PMF_ROOT_DIR . '/images/'));
57
+    $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(PMF_ROOT_DIR.'/images/'));
58 58
     foreach ($files as $file) {
59 59
         if ($file->isDir() || !in_array($file->getExtension(), $allowedExtensions)) {
60 60
             continue;
61 61
         }
62 62
         printf(
63 63
             '<div class="mce-file" data-src="%s"><img src="%s" class="mce-file-preview">%s</div>',
64
-            $faqConfig->getDefaultUrl() . 'images/' . $file->getFilename(),
65
-            $faqConfig->getDefaultUrl() . 'images/' . $file->getFilename(),
64
+            $faqConfig->getDefaultUrl().'images/'.$file->getFilename(),
65
+            $faqConfig->getDefaultUrl().'images/'.$file->getFilename(),
66 66
             $file->getFilename()
67 67
         );
68 68
     }
Please login to merge, or discard this patch.
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Image browser backend for TinyMCE v4
4
- *
5
- * PHP Version 5.5
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @author    Thorsten Rinne <[email protected]>
13
- * @copyright 2015-2016 phpMyFAQ Team
14
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
15
- * @link      http://www.phpmyfaq.de
16
- * @since     2015-10-18
17
- */
3
+                     * Image browser backend for TinyMCE v4
4
+                     *
5
+                     * PHP Version 5.5
6
+                     *
7
+                     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+                     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+                     * obtain one at http://mozilla.org/MPL/2.0/.
10
+                     *
11
+                     * @category  phpMyFAQ
12
+                     * @author    Thorsten Rinne <[email protected]>
13
+                     * @copyright 2015-2016 phpMyFAQ Team
14
+                     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
15
+                     * @link      http://www.phpmyfaq.de
16
+                     * @since     2015-10-18
17
+                     */
18 18
 define('PMF_ROOT_DIR', dirname(__DIR__));
19 19
 define('IS_VALID_PHPMYFAQ', null);
20 20
 
Please login to merge, or discard this patch.
phpmyfaq/admin/news.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -510,7 +510,7 @@  discard block
 block discarded – undo
510 510
         'active' => (is_null($active)) ? 'n' : 'y',
511 511
         'comment' => (is_null($comment)) ? 'n' : 'y',
512 512
         'dateStart' => (empty($dateStart)) ? '00000000000000' : str_replace('-', '', $dateStart).'000000',
513
-        'dateEnd' => (empty($dateEnd))  ? '99991231235959' : str_replace('-', '', $dateEnd).'235959',
513
+        'dateEnd' => (empty($dateEnd)) ? '99991231235959' : str_replace('-', '', $dateEnd).'235959',
514 514
         'link' => $link,
515 515
         'linkTitle' => $linktitle,
516 516
         'date' => date('YmdHis'),
@@ -562,7 +562,7 @@  discard block
 block discarded – undo
562 562
         'active' => (is_null($active)) ? 'n' : 'y',
563 563
         'comment' => (is_null($comment)) ? 'n' : 'y',
564 564
         'dateStart' => (empty($dateStart)) ? '00000000000000' : str_replace('-', '', $dateStart).'000000',
565
-        'dateEnd' => (empty($dateEnd))   ? '99991231235959' : str_replace('-', '', $dateEnd).'235959',
565
+        'dateEnd' => (empty($dateEnd)) ? '99991231235959' : str_replace('-', '', $dateEnd).'235959',
566 566
         'link' => $link,
567 567
         'linkTitle' => $linktitle,
568 568
         'date' => date('YmdHis'),
Please login to merge, or discard this patch.
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The main administration file for the news.
4
- *
5
- * PHP Version 5.5
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- *
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @author    Matteo Scaramuccia <[email protected]>
15
- * @copyright 2003-2016 phpMyFAQ Team
16
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
- *
18
- * @link      http://www.phpmyfaq.de
19
- * @since     2003-02-23
20
- */
3
+         * The main administration file for the news.
4
+         *
5
+         * PHP Version 5.5
6
+         *
7
+         * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+         * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+         * obtain one at http://mozilla.org/MPL/2.0/.
10
+         *
11
+         * @category  phpMyFAQ
12
+         *
13
+         * @author    Thorsten Rinne <[email protected]>
14
+         * @author    Matteo Scaramuccia <[email protected]>
15
+         * @copyright 2003-2016 phpMyFAQ Team
16
+         * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
+         *
18
+         * @link      http://www.phpmyfaq.de
19
+         * @since     2003-02-23
20
+         */
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     $protocol = 'http';
23 23
     if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
Please login to merge, or discard this patch.
phpmyfaq/admin/record.edit.php 2 patches
Braces   +6 added lines, -2 removed lines patch added patch discarded remove patch
@@ -642,10 +642,12 @@  discard block
 block discarded – undo
642 642
     ?> />
643 643
                                         <?php echo $PMF_LANG['ad_gen_no'];
644 644
     ?>
645
-                                <?php else: ?>
645
+                                <?php else {
646
+    : ?>
646 647
                                         <br>
647 648
                                         <input type="radio" name="active"  value="no" checked />
648 649
                                         <?php echo $PMF_LANG['ad_gen_no'];
650
+}
649 651
     ?>
650 652
 
651 653
                                 <?php endif;
@@ -713,9 +715,11 @@  discard block
 block discarded – undo
713 715
                             </div>
714 716
                         </div>
715 717
                     </div>
716
-                    <?php else: ?>
718
+                    <?php else {
719
+    : ?>
717 720
                         <input type="hidden" name="grouppermission" value="all" />
718 721
                     <?php endif;
722
+}
719 723
     ?>
720 724
                     <div class="panel-heading">
721 725
                         <?php echo $PMF_LANG['ad_entry_userpermission'];
Please login to merge, or discard this patch.
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The FAQ record editor.
4
- *
5
- * PHP Version 5.5
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- *
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2003-2016 phpMyFAQ Team
15
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
- *
17
- * @link      http://www.phpmyfaq.de
18
- * @since     2003-02-23
19
- */
3
+     * The FAQ record editor.
4
+     *
5
+     * PHP Version 5.5
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ
12
+     *
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @copyright 2003-2016 phpMyFAQ Team
15
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
+     *
17
+     * @link      http://www.phpmyfaq.de
18
+     * @since     2003-02-23
19
+     */
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
22 22
     if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
Please login to merge, or discard this patch.
phpmyfaq/admin/record.save.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -144,7 +144,7 @@
 block discarded – undo
144 144
             'dateStart' => (empty($dateStart) ? '00000000000000' : str_replace('-', '', $dateStart).'000000'),
145 145
             'dateEnd' => (empty($dateEnd) ? '99991231235959' : str_replace('-', '', $dateEnd).'235959'),
146 146
             'linkState' => '',
147
-            'linkDateCheck' => 0, );
147
+            'linkDateCheck' => 0,);
148 148
 
149 149
         // Create ChangeLog entry
150 150
         $faq->createChangeEntry($recordId, $user->getUserId(), nl2br($changed), $recordLang, $revisionId);
Please login to merge, or discard this patch.
Indentation   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -1,20 +1,20 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Save an existing FAQ record.
4
- *
5
- * PHP Version 5.5
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @author    Thorsten Rinne <[email protected]>
13
- * @copyright 2003-2016 phpMyFAQ Team
14
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
15
- * @link      http://www.phpmyfaq.de
16
- * @since     2003-02-23
17
- */
3
+     * Save an existing FAQ record.
4
+     *
5
+     * PHP Version 5.5
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ
12
+     * @author    Thorsten Rinne <[email protected]>
13
+     * @copyright 2003-2016 phpMyFAQ Team
14
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
15
+     * @link      http://www.phpmyfaq.de
16
+     * @since     2003-02-23
17
+     */
18 18
 if (!defined('IS_VALID_PHPMYFAQ')) {
19 19
     $protocol = 'http';
20 20
     if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
Please login to merge, or discard this patch.
phpmyfaq/admin/record.show.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -223,11 +223,11 @@  discard block
 block discarded – undo
223 223
                     $fdTable.'.active AS active',
224 224
                     $fdTable.'.thema AS thema',
225 225
                     $fdTable.'.content AS content',
226
-                    $fdTable.'.updated AS updated', ))
226
+                    $fdTable.'.updated AS updated',))
227 227
             ->setJoinedTable($fcrTable)
228 228
             ->setJoinedColumns(array(
229 229
                     $fdTable.'.id = '.$fcrTable.'.record_id',
230
-                    $fdTable.'.lang = '.$fcrTable.'.record_lang', ));
230
+                    $fdTable.'.lang = '.$fcrTable.'.record_lang',));
231 231
 
232 232
         if (is_numeric($searchTerm)) {
233 233
             $search->setMatchingColumns(array($fdTable.'.solution_id'));
@@ -243,7 +243,7 @@  discard block
 block discarded – undo
243 243
         $faqsFound = array();
244 244
 
245 245
         while ($row = $faqConfig->getDb()->fetchObject($result)) {
246
-            if ($searchCat != 0 && $searchCat != (int) $row->category_id) {
246
+            if ($searchCat != 0 && $searchCat != (int)$row->category_id) {
247 247
                 continue;
248 248
             }
249 249
 
@@ -443,7 +443,7 @@  discard block
 block discarded – undo
443 443
                                             <input type="checkbox" lang="<?php echo $record['lang'] ?>"
444 444
                                                onclick="saveStatus(<?php echo $cid.', ['.$record['id'].']' ?>, 'sticky', '<?php echo $user->getCsrfTokenFromSession() ?>');"
445 445
                                                id="sticky_record_<?php echo $cid.'_'.$record['id'] ?>"
446
-                                            <?php echo($record['sticky'] ? 'checked' :  '    ') ?>>
446
+                                            <?php echo($record['sticky'] ? 'checked' : '    ') ?>>
447 447
                                         </label>
448 448
                                     </td>
449 449
                                     <td>
Please login to merge, or discard this patch.
Indentation   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Shows the list of records ordered by categories.
4
- *
5
- * PHP Version 5.5
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- * @author    Thorsten Rinne <[email protected]>
13
- * @author    Minoru TODA <[email protected]>
14
- * @copyright 2003-2016 phpMyFAQ Team
15
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
- * @link      http://www.phpmyfaq.de
17
- * @since     2003-02-23
18
- */
3
+     * Shows the list of records ordered by categories.
4
+     *
5
+     * PHP Version 5.5
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ
12
+     * @author    Thorsten Rinne <[email protected]>
13
+     * @author    Minoru TODA <[email protected]>
14
+     * @copyright 2003-2016 phpMyFAQ Team
15
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
+     * @link      http://www.phpmyfaq.de
17
+     * @since     2003-02-23
18
+     */
19 19
 if (!defined('IS_VALID_PHPMYFAQ')) {
20 20
     $protocol = 'http';
21 21
     if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
Please login to merge, or discard this patch.
phpmyfaq/admin/report.export.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -44,18 +44,18 @@
 block discarded – undo
44 44
 
45 45
     $text = [];
46 46
     $text[0] = [];
47
-    ($useCategory)     ? $text[0][] = $PMF_LANG['ad_stat_report_category'] : '';
48
-    ($useSubcategory)  ? $text[0][] = $PMF_LANG['ad_stat_report_sub_category'] : '';
49
-    ($useTranslation)  ? $text[0][] = $PMF_LANG['ad_stat_report_translations'] : '';
50
-    ($useLanguage)     ? $text[0][] = $PMF_LANG['ad_stat_report_language'] : '';
51
-    ($useId)           ? $text[0][] = $PMF_LANG['ad_stat_report_id'] : '';
52
-    ($useSticky)       ? $text[0][] = $PMF_LANG['ad_stat_report_sticky'] : '';
53
-    ($useTitle)        ? $text[0][] = $PMF_LANG['ad_stat_report_title'] : '';
47
+    ($useCategory) ? $text[0][] = $PMF_LANG['ad_stat_report_category'] : '';
48
+    ($useSubcategory) ? $text[0][] = $PMF_LANG['ad_stat_report_sub_category'] : '';
49
+    ($useTranslation) ? $text[0][] = $PMF_LANG['ad_stat_report_translations'] : '';
50
+    ($useLanguage) ? $text[0][] = $PMF_LANG['ad_stat_report_language'] : '';
51
+    ($useId) ? $text[0][] = $PMF_LANG['ad_stat_report_id'] : '';
52
+    ($useSticky) ? $text[0][] = $PMF_LANG['ad_stat_report_sticky'] : '';
53
+    ($useTitle) ? $text[0][] = $PMF_LANG['ad_stat_report_title'] : '';
54 54
     ($useCreationDate) ? $text[0][] = $PMF_LANG['ad_stat_report_creation_date'] : '';
55
-    ($useOwner)        ? $text[0][] = $PMF_LANG['ad_stat_report_owner'] : '';
55
+    ($useOwner) ? $text[0][] = $PMF_LANG['ad_stat_report_owner'] : '';
56 56
     ($useLastModified) ? $text[0][] = $PMF_LANG['ad_stat_report_last_modified_person'] : '';
57
-    ($useUrl)          ? $text[0][] = $PMF_LANG['ad_stat_report_url'] : '';
58
-    ($useVisits)       ? $text[0][] = $PMF_LANG['ad_stat_report_visits'] : '';
57
+    ($useUrl) ? $text[0][] = $PMF_LANG['ad_stat_report_url'] : '';
58
+    ($useVisits) ? $text[0][] = $PMF_LANG['ad_stat_report_visits'] : '';
59 59
 
60 60
     $report = new PMF_Report($faqConfig);
61 61
 
Please login to merge, or discard this patch.
phpmyfaq/admin/report.view.php 2 patches
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -55,18 +55,18 @@
 block discarded – undo
55 55
                     <thead>
56 56
                         <tr>
57 57
 <?php
58
-    ($useCategory)     ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_category']) : '';
59
-    ($useSubcategory)  ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_sub_category']) : '';
60
-    ($useTranslation)  ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_translations']) : '';
61
-    ($useLanguage)     ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_language']) : '';
62
-    ($useId)           ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_id']) : '';
63
-    ($useSticky)       ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_sticky']) : '';
64
-    ($useTitle)        ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_title']) : '';
58
+    ($useCategory) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_category']) : '';
59
+    ($useSubcategory) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_sub_category']) : '';
60
+    ($useTranslation) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_translations']) : '';
61
+    ($useLanguage) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_language']) : '';
62
+    ($useId) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_id']) : '';
63
+    ($useSticky) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_sticky']) : '';
64
+    ($useTitle) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_title']) : '';
65 65
     ($useCreationDate) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_creation_date']) : '';
66
-    ($useOwner)        ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_owner']) : '';
66
+    ($useOwner) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_owner']) : '';
67 67
     ($useLastModified) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_last_modified_person']) : '';
68
-    ($useUrl)          ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_url']) : '';
69
-    ($useVisits)       ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_visits']) : '';
68
+    ($useUrl) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_url']) : '';
69
+    ($useVisits) ? printf('<th>%s</th>', $PMF_LANG['ad_stat_report_visits']) : '';
70 70
     ?>
71 71
                         </tr>
72 72
                     </thead>
Please login to merge, or discard this patch.
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * View a generated report.
4
- *
5
- * PHP Version 5.5
6
- *
7
- * This Source Code Form is subject to the terms of the Mozilla Public License,
8
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
- * obtain one at http://mozilla.org/MPL/2.0/.
10
- *
11
- * @category  phpMyFAQ
12
- *
13
- * @author    Gustavo Solt <[email protected]>
14
- * @author    Thorsten Rinne <[email protected]>
15
- * @copyright 2011-2016 phpMyFAQ Team
16
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
- *
18
- * @link      http://www.phpmyfaq.de
19
- * @since     2011-01-12
20
- */
3
+     * View a generated report.
4
+     *
5
+     * PHP Version 5.5
6
+     *
7
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
8
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
9
+     * obtain one at http://mozilla.org/MPL/2.0/.
10
+     *
11
+     * @category  phpMyFAQ
12
+     *
13
+     * @author    Gustavo Solt <[email protected]>
14
+     * @author    Thorsten Rinne <[email protected]>
15
+     * @copyright 2011-2016 phpMyFAQ Team
16
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
+     *
18
+     * @link      http://www.phpmyfaq.de
19
+     * @since     2011-01-12
20
+     */
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     $protocol = 'http';
23 23
     if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
Please login to merge, or discard this patch.