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.8 ( 03bafd...757b80 )
by Thorsten
19:17
created
phpmyfaq/admin/ajax.ondemandurl.php 2 patches
Indentation   +25 added lines, -25 removed lines patch added patch discarded remove patch
@@ -1,30 +1,30 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * AJAX: onDemandURL
4
- *
5
- * Usage:
6
- *   index.php?action=ajax&ajax=onDemandURL&id=<id>&artlang=<lang>[&lookup=1]
7
- *
8
- * Performs link verification at demand of the user.
9
- *
10
- * PHP Version 5.3
11
- *
12
- * This Source Code Form is subject to the terms of the Mozilla Public License,
13
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
14
- * obtain one at http://mozilla.org/MPL/2.0/.
15
- *
16
- * The Initial Developer of the Original Code is released for external use
17
- * with permission from NetJapan, Inc. IT Administration Group.
18
- *
19
- * @category  phpMyFAQ
20
- * @package   Administration
21
- * @author    Minoru TODA <[email protected]>
22
- * @author    Thorsten Rinne <[email protected]>
23
- * @copyright 2005-2015 NetJapan, Inc.
24
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
25
- * @link      http://www.phpmyfaq.de
26
- * @since     2005-09-30
27
- */
3
+     * AJAX: onDemandURL
4
+     *
5
+     * Usage:
6
+     *   index.php?action=ajax&ajax=onDemandURL&id=<id>&artlang=<lang>[&lookup=1]
7
+     *
8
+     * Performs link verification at demand of the user.
9
+     *
10
+     * PHP Version 5.3
11
+     *
12
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
13
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
14
+     * obtain one at http://mozilla.org/MPL/2.0/.
15
+     *
16
+     * The Initial Developer of the Original Code is released for external use
17
+     * with permission from NetJapan, Inc. IT Administration Group.
18
+     *
19
+     * @category  phpMyFAQ
20
+     * @package   Administration
21
+     * @author    Minoru TODA <[email protected]>
22
+     * @author    Thorsten Rinne <[email protected]>
23
+     * @copyright 2005-2015 NetJapan, Inc.
24
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
25
+     * @link      http://www.phpmyfaq.de
26
+     * @since     2005-09-30
27
+     */
28 28
 
29 29
 if (!defined('IS_VALID_PHPMYFAQ')) {
30 30
     $protocol = 'http';
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,10 +28,10 @@
 block discarded – undo
28 28
 
29 29
 if (!defined('IS_VALID_PHPMYFAQ')) {
30 30
     $protocol = 'http';
31
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
31
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
32 32
         $protocol = 'https';
33 33
     }
34
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
34
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
35 35
     exit();
36 36
 }
37 37
 
Please login to merge, or discard this patch.
phpmyfaq/admin/record.save.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
22
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
22
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
23 23
         $protocol = 'https';
24 24
     }
25
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
25
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
26 26
     exit();
27 27
 }
28 28
 
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
     if (!is_null($question) && !is_null($categories)) {
110 110
         // Save entry
111 111
         $logging = new PMF_Logging($faqConfig);
112
-        $logging->logAdmin($user, 'Beitragsave ' . $recordId);
112
+        $logging->logAdmin($user, 'Beitragsave '.$recordId);
113 113
 
114 114
         printf(
115 115
             '<header><h2><i class="icon-pencil"></i> %s</h2></header>',
@@ -137,8 +137,8 @@  discard block
 block discarded – undo
137 137
             'email'         => $email,
138 138
             'comment'       => (!is_null($comment) ? 'y' : 'n'),
139 139
             'date'          => empty($date) ? date('YmdHis') : str_replace(array('-', ':', ' '), '', $date),
140
-            'dateStart'     => (empty($dateStart) ? '00000000000000' : str_replace('-', '', $dateStart) . '000000'),
141
-            'dateEnd'       => (empty($dateEnd) ? '99991231235959' : str_replace('-', '', $dateEnd) . '235959'),
140
+            'dateStart'     => (empty($dateStart) ? '00000000000000' : str_replace('-', '', $dateStart).'000000'),
141
+            'dateEnd'       => (empty($dateEnd) ? '99991231235959' : str_replace('-', '', $dateEnd).'235959'),
142 142
             'linkState'     => '',
143 143
             'linkDateCheck' => 0);
144 144
 
@@ -162,7 +162,7 @@  discard block
 block discarded – undo
162 162
         } else {
163 163
             printf(
164 164
                 '<p class="alert alert-error">%s</p>',
165
-                print $PMF_LANG['ad_entry_savedfail'] . $faqConfig->getDb()->error()
165
+                print $PMF_LANG['ad_entry_savedfail'].$faqConfig->getDb()->error()
166 166
             );
167 167
         }
168 168
         
Please login to merge, or discard this patch.
phpmyfaq/admin/dashboard.php 3 patches
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 start page with some information about the FAQ
4
- *
5
- * PHP Version 5.3
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
- * @package   Administration
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @author    Alexander M. Turek <[email protected]>
15
- * @copyright 2005-2015 phpMyFAQ Team
16
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
- * @link      http://www.phpmyfaq.de
18
- * @since     2013-02-05
19
- */
3
+     * The start page with some information about the FAQ
4
+     *
5
+     * PHP Version 5.3
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
+     * @package   Administration
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @author    Alexander M. Turek <[email protected]>
15
+     * @copyright 2005-2015 phpMyFAQ Team
16
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
17
+     * @link      http://www.phpmyfaq.de
18
+     * @since     2013-02-05
19
+     */
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     $protocol = 'http';
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -20,10 +20,10 @@  discard block
 block discarded – undo
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     $protocol = 'http';
23
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
23
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
24 24
         $protocol = 'https';
25 25
     }
26
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
26
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
27 27
     exit();
28 28
 }
29 29
 
@@ -53,23 +53,23 @@  discard block
 block discarded – undo
53 53
         </div>
54 54
         <div class="dashboard-stat span2">
55 55
             <span><a href="?action=view"><?php echo $PMF_LANG["ad_start_articles"]; ?></a></span>
56
-            <?php echo $faqTableInfo[PMF_Db::getTablePrefix() . "faqdata"]; ?>
56
+            <?php echo $faqTableInfo[PMF_Db::getTablePrefix()."faqdata"]; ?>
57 57
         </div>
58 58
         <div class="dashboard-stat span2">
59 59
             <span><a href="?action=comments"><?php echo $PMF_LANG["ad_start_comments"]; ?></a></span>
60
-            <?php echo $faqTableInfo[PMF_Db::getTablePrefix() . "faqcomments"]; ?>
60
+            <?php echo $faqTableInfo[PMF_Db::getTablePrefix()."faqcomments"]; ?>
61 61
         </div>
62 62
         <div class="dashboard-stat span2">
63 63
             <span><a href="?action=question"><?php echo $PMF_LANG["msgOpenQuestions"]; ?></a></span>
64
-            <?php echo $faqTableInfo[PMF_Db::getTablePrefix() . "faqquestions"]; ?>
64
+            <?php echo $faqTableInfo[PMF_Db::getTablePrefix()."faqquestions"]; ?>
65 65
         </div>
66 66
         <div class="dashboard-stat span2">
67 67
             <span><a href="?action=news"><?php echo $PMF_LANG["msgNews"]; ?></a></span>
68
-            <?php echo $faqTableInfo[PMF_Db::getTablePrefix() . "faqnews"]; ?>
68
+            <?php echo $faqTableInfo[PMF_Db::getTablePrefix()."faqnews"]; ?>
69 69
         </div>
70 70
         <div class="dashboard-stat span2">
71 71
             <span><a href="?action=user&user_action=listallusers"><?php echo $PMF_LANG['admin_mainmenu_users']; ?></a></span>
72
-            <?php echo $faqTableInfo[PMF_Db::getTablePrefix() . 'faquser'] - 1; ?>
72
+            <?php echo $faqTableInfo[PMF_Db::getTablePrefix().'faquser'] - 1; ?>
73 73
         </div>
74 74
     </section>
75 75
 
@@ -126,7 +126,7 @@  discard block
 block discarded – undo
126 126
                     );
127 127
                     // Installed phpMyFAQ version is outdated
128 128
                     if (-1 == version_compare($installed, $available)) {
129
-                        print '<br />' . $PMF_LANG['ad_you_should_update'];
129
+                        print '<br />'.$PMF_LANG['ad_you_should_update'];
130 130
                     }
131 131
                 }
132 132
             } else {
@@ -155,7 +155,7 @@  discard block
 block discarded – undo
155 155
                 $faqSystem    = new PMF_System();
156 156
                 $localHashes  = $faqSystem->createHashes();
157 157
                 $remoteHashes = file_get_contents(
158
-                    'http://api.phpmyfaq.de/verify/' . $faqConfig->get('main.currentVersion')
158
+                    'http://api.phpmyfaq.de/verify/'.$faqConfig->get('main.currentVersion')
159 159
                 );
160 160
 
161 161
                 if (!is_array(json_decode($remoteHashes, true))) {
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,11 @@
 block discarded – undo
37 37
                 <a href="?action=config">
38 38
                     <?php if ($faqConfig->get('main.maintenanceMode')): ?>
39 39
                     <span class="label label-important"><?php print $PMF_LANG['msgMaintenanceMode']; ?></span>
40
-                    <?php else: ?>
41
-                    <span class="label label-success"><?php print $PMF_LANG['msgOnlineMode']; ?></span>
40
+                    <?php else {
41
+    : ?>
42
+                    <span class="label label-success"><?php print $PMF_LANG['msgOnlineMode'];
43
+}
44
+?></span>
42 45
                     <?php endif; ?>
43 46
                 </a>
44 47
             </div>
Please login to merge, or discard this patch.
phpmyfaq/admin/trans.add.php 2 patches
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
- * Read in files for the translation and show them inside a form.
4
- *
5
- * PHP Version 5.3
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
- * @package   Administration
13
- * @author    Anatoliy Belsky <[email protected]>
14
- * @copyright 2009-2015 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     2009-05-11
18
- */
3
+             * Read in files for the translation and show them inside a form.
4
+             *
5
+             * PHP Version 5.3
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
+             * @package   Administration
13
+             * @author    Anatoliy Belsky <[email protected]>
14
+             * @copyright 2009-2015 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     2009-05-11
18
+             */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
22
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
22
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
23 23
         $protocol = 'https';
24 24
     }
25
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
25
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
26 26
     exit();
27 27
 }
28 28
 
Please login to merge, or discard this patch.
phpmyfaq/admin/record.questions.php 2 patches
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
- * Delete open questions
4
- *
5
- * PHP Version 5.3
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
- * @package   Administration
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2003-2015 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-24
18
- */
3
+             * Delete open questions
4
+             *
5
+             * PHP Version 5.3
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
+             * @package   Administration
13
+             * @author    Thorsten Rinne <[email protected]>
14
+             * @copyright 2003-2015 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-24
18
+             */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
22
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
22
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
23 23
         $protocol = 'https';
24 24
     }
25
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
25
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
26 26
     exit();
27 27
 }
28 28
 
Please login to merge, or discard this patch.
phpmyfaq/admin/ajax.tags_list.php 2 patches
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
- * AJAX: Search for tags
4
- *
5
- * PHP Version 5.3
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
- * @package   Ajax
13
- * @author    Matteo Scaramuccia <[email protected]>
14
- * @copyright 2005-2015 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
+     * AJAX: Search for tags
4
+     *
5
+     * PHP Version 5.3
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
+     * @package   Ajax
13
+     * @author    Matteo Scaramuccia <[email protected]>
14
+     * @copyright 2005-2015 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.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
22
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
22
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
23 23
         $protocol = 'https';
24 24
     }
25
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
25
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
26 26
     exit();
27 27
 }
28 28
 
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
 $oTag              = new PMF_Tags($faqConfig);
35 35
 $autoCompleteValue = PMF_Filter::filterInput(INPUT_GET, 'q', FILTER_SANITIZE_STRIPPED);
36
-if (! is_null($autoCompleteValue)) {
36
+if (!is_null($autoCompleteValue)) {
37 37
     if (strpos($autoCompleteValue, ',')) {
38 38
         $arrayOfValues     = explode(',', $autoCompleteValue);
39 39
         $autoCompleteValue = end($arrayOfValues);
Please login to merge, or discard this patch.
phpmyfaq/admin/record.edit.php 3 patches
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
- * The FAQ record editor.
4
- *
5
- * PHP Version 5.3
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
- * @package   Administration
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2003-2015 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
+     * The FAQ record editor.
4
+     *
5
+     * PHP Version 5.3
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
+     * @package   Administration
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @copyright 2003-2015 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
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -19,14 +19,14 @@  discard block
 block discarded – undo
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
22
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
22
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
23 23
         $protocol = 'https';
24 24
     }
25
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
25
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
26 26
     exit();
27 27
 }
28 28
 
29
-if (($permission['editbt']|| $permission['addbt']) && !PMF_Db::checkOnEmptyTable('faqcategories')) {
29
+if (($permission['editbt'] || $permission['addbt']) && !PMF_Db::checkOnEmptyTable('faqcategories')) {
30 30
 
31 31
     $category = new PMF_Category($faqConfig, array(), false);
32 32
     $category->setUser($currentAdminUser);
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
 
72 72
         $faqData['id'] = PMF_Filter::filterInput(INPUT_POST, 'id', FILTER_VALIDATE_INT);
73 73
         if (!is_null($faqData['id'])) {
74
-            $queryString = 'saveentry&amp;id=' . $faqData['id'];
74
+            $queryString = 'saveentry&amp;id='.$faqData['id'];
75 75
         } else {
76 76
             $queryString = 'insertentry';
77 77
         }
@@ -113,14 +113,14 @@  discard block
 block discarded – undo
113 113
         $lang = PMF_Filter::filterInput(INPUT_GET, 'lang', FILTER_SANITIZE_STRING);
114 114
         if ((!isset($selectedCategory) && !isset($faqData['title'])) || !is_null($id)) {
115 115
             $logging = new PMF_Logging($faqConfig);
116
-            $logging->logAdmin($user, 'Beitragedit, ' . $id);
116
+            $logging->logAdmin($user, 'Beitragedit, '.$id);
117 117
 
118 118
             $categories = $category->getCategoryRelationsFromArticle($id, $lang);
119 119
 
120 120
             $faq->getRecord($id, null, true);
121 121
             $faqData         = $faq->faqRecord;
122 122
             $faqData['tags'] = implode(',', $tagging->getAllTagsById($faqData['id']));
123
-            $queryString     = 'saveentry&amp;id=' . $faqData['id'];
123
+            $queryString     = 'saveentry&amp;id='.$faqData['id'];
124 124
         } else {
125 125
             $queryString = 'insertentry';
126 126
         }
@@ -328,7 +328,7 @@  discard block
 block discarded – undo
328 328
                                 <?php
329 329
                                 if (0 === $faqData['id']) {
330 330
                                     $faqData['id'] = $faqConfig->getDb()->nextId(
331
-                                        PMF_Db::getTablePrefix() . 'faqdata',
331
+                                        PMF_Db::getTablePrefix().'faqdata',
332 332
                                         'id'
333 333
                                     );
334 334
                                 }
@@ -527,7 +527,7 @@  discard block
 block discarded – undo
527 527
                     <div class="control-group">
528 528
                         <label class="control-label" for="active"><?php echo $PMF_LANG["ad_entry_active"]; ?></label>
529 529
                         <div class="controls">
530
-                        <?php if($permission['approverec']):
530
+                        <?php if ($permission['approverec']):
531 531
                         if (isset($faqData['active']) && $faqData['active'] == 'yes') {
532 532
                             $suf = ' checked="checked"';
533 533
                             $sul = null;
Please login to merge, or discard this patch.
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -547,10 +547,13 @@  discard block
 block discarded – undo
547 547
                                 <input type="radio" name="active"  value="no"<?php if (isset($sul)) { echo $sul; } ?> />
548 548
                                 <?php echo $PMF_LANG['ad_gen_no']; ?>
549 549
                             </label>
550
-                            <?php else: ?>
550
+                            <?php else {
551
+    : ?>
551 552
                             <label class="radio">
552 553
                                 <input type="radio" name="active"  value="no" checked="checked" />
553
-                                <?php echo $PMF_LANG['ad_gen_no']; ?>
554
+                                <?php echo $PMF_LANG['ad_gen_no'];
555
+}
556
+?>
554 557
                             </label>
555 558
                         <?php endif; ?>
556 559
                         </div>
@@ -629,9 +632,12 @@  discard block
 block discarded – undo
629 632
                             </label>
630 633
                         </div>
631 634
                     </div>
632
-                    <?php else: ?>
635
+                    <?php else {
636
+    : ?>
633 637
                     <input type="hidden" name="grouppermission" value="all" />
634
-                    <?php endif; ?>
638
+                    <?php endif;
639
+}
640
+?>
635 641
                     <div class="control-group">
636 642
                         <label class="control-label" for="userpermission"><?php echo $PMF_LANG['ad_entry_userpermission']; ?></label>
637 643
                         <div class="controls">
Please login to merge, or discard this patch.
phpmyfaq/admin/glossary.main.php 2 patches
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
- * The main glossary index file
4
- *
5
- * PHP Version 5.3
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
- * @package   Administration
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2005-2015 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-09-15
18
- */
3
+     * The main glossary index file
4
+     *
5
+     * PHP Version 5.3
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
+     * @package   Administration
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @copyright 2005-2015 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-09-15
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@  discard block
 block discarded – undo
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
22
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
22
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
23 23
         $protocol = 'https';
24 24
     }
25
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
25
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
26 26
     exit();
27 27
 }
28 28
 
@@ -47,12 +47,12 @@  discard block
 block discarded – undo
47 47
         $definition = PMF_Filter::filterInput(INPUT_POST, 'definition', FILTER_SANITIZE_SPECIAL_CHARS);
48 48
         if ($glossary->addGlossaryItem($item, $definition)) {
49 49
             echo '<p class="alert alert-success"><a href="#" class="close" data-dismiss="alert">×</a>';
50
-            echo $PMF_LANG['ad_glossary_save_success'] . '</p>';
50
+            echo $PMF_LANG['ad_glossary_save_success'].'</p>';
51 51
         } else {
52 52
             echo '<p class="alert alert-error"><a href="#" class="close" data-dismiss="alert">×</a>';
53 53
             echo $PMF_LANG['ad_glossary_save_error'];
54 54
             echo '<br />'.$PMF_LANG["ad_adus_dberr"].'<br />';
55
-            echo $faqConfig->getDb()->error() . '</p>';
55
+            echo $faqConfig->getDb()->error().'</p>';
56 56
         }
57 57
     }
58 58
 
@@ -62,12 +62,12 @@  discard block
 block discarded – undo
62 62
         $definition = PMF_Filter::filterInput(INPUT_POST, 'definition', FILTER_SANITIZE_SPECIAL_CHARS);
63 63
         if ($glossary->updateGlossaryItem($id, $item, $definition)) {
64 64
             echo '<p class="alert alert-success"><a href="#" class="close" data-dismiss="alert">×</a>';
65
-            echo $PMF_LANG['ad_glossary_update_success'] . '</p>';
65
+            echo $PMF_LANG['ad_glossary_update_success'].'</p>';
66 66
         } else {
67 67
             echo '<p class="alert alert-error"><a href="#" class="close" data-dismiss="alert">×</a>';
68 68
             echo $PMF_LANG['ad_glossary_update_error'];
69 69
             echo '<br />'.$PMF_LANG["ad_adus_dberr"].'<br />';
70
-            echo $faqConfig->getDb()->error() . '</p>';
70
+            echo $faqConfig->getDb()->error().'</p>';
71 71
         }
72 72
     }
73 73
 
@@ -75,12 +75,12 @@  discard block
 block discarded – undo
75 75
         $id = PMF_Filter::filterInput(INPUT_GET, 'id', FILTER_VALIDATE_INT);
76 76
         if ($glossary->deleteGlossaryItem($id)) {
77 77
             echo '<p class="alert alert-success"><a href="#" class="close" data-dismiss="alert">×</a>';
78
-            echo $PMF_LANG['ad_glossary_delete_success'] . '</p>';
78
+            echo $PMF_LANG['ad_glossary_delete_success'].'</p>';
79 79
         } else {
80 80
             echo '<p class="alert alert-error"><a href="#" class="close" data-dismiss="alert">×</a>';
81 81
             echo $PMF_LANG['ad_glossary_delete_error'];
82 82
             echo '<br />'.$PMF_LANG["ad_adus_dberr"].'<br />';
83
-            echo $faqConfig->getDb()->error() . '</p>';
83
+            echo $faqConfig->getDb()->error().'</p>';
84 84
         }
85 85
     }
86 86
 
Please login to merge, or discard this patch.
phpmyfaq/admin/glossary.edit.php 2 patches
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 a form to edit an existing glossary item
4
- *
5
- * PHP Version 5.3
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
- * @package   Administration
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2005-2015 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-09-15
18
- */
3
+     * Displays a form to edit an existing glossary item
4
+     *
5
+     * PHP Version 5.3
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
+     * @package   Administration
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @copyright 2005-2015 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-09-15
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
22
-    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
22
+    if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
23 23
         $protocol = 'https';
24 24
     }
25
-    header('Location: ' . $protocol . '://' . $_SERVER['HTTP_HOST'] . dirname($_SERVER['SCRIPT_NAME']));
25
+    header('Location: '.$protocol.'://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
26 26
     exit();
27 27
 }
28 28
 
Please login to merge, or discard this patch.