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 ( 757b80...f8dd9b )
by Thorsten
86:54 queued 69:27
created
phpmyfaq/admin/instances.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
- * Frontend to edit an instance
4
- *
5
- * PHP 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 2012-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     2012-04-16
18
- */
3
+     * Frontend to edit an instance
4
+     *
5
+     * PHP 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 2012-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     2012-04-16
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
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
             <div class="controls">
67 67
             <?php
68 68
             foreach ($instance->getInstanceConfig($instanceData->id) as $key => $config) {
69
-                echo '<span class="uneditable-input">' . $key . ': ' . $config . '</span><br/>';
69
+                echo '<span class="uneditable-input">'.$key.': '.$config.'</span><br/>';
70 70
             }
71 71
             ?>
72 72
             </div>
Please login to merge, or discard this patch.
phpmyfaq/admin/stat.ratings.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 page with the ratings of the votings
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
+     * The page with the ratings of the votings
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   +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
 
@@ -73,19 +73,19 @@  discard block
 block discarded – undo
73 73
                 <td style="width: 60px;"><?php echo $data['usr']; ?></td>
74 74
                 <td style="width: 60px;">
75 75
                     <?php
76
-                    if (round($data['num'] * 20) > 75) {
76
+                    if (round($data['num']*20) > 75) {
77 77
                         $progressBar = 'success';
78
-                    } elseif (round($data['num'] * 20) < 25) {
78
+                    } elseif (round($data['num']*20) < 25) {
79 79
                         $progressBar = 'danger';
80 80
                     } else {
81 81
                         $progressBar = 'info';
82 82
                     }
83 83
                     ?>
84 84
                     <div class="progress progress-<?php echo $progressBar ?>" style="width: 50px;">
85
-                        <div class="bar" style="width: <?php echo round($data['num'] * 20); ?>%;"></div>
85
+                        <div class="bar" style="width: <?php echo round($data['num']*20); ?>%;"></div>
86 86
                     </div>
87 87
                 </td>
88
-                <td style="width: 60px;"><?php echo round($data['num'] * 20); ?>%</td>
88
+                <td style="width: 60px;"><?php echo round($data['num']*20); ?>%</td>
89 89
             </tr>
90 90
 <?php
91 91
         $oldcategory = $data['category_id'];
Please login to merge, or discard this patch.
phpmyfaq/admin/stat.show.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
- * Show the session
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
+     * Show the session
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
@@ -20,10 +20,10 @@
 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
 
Please login to merge, or discard this patch.
phpmyfaq/admin/noperm.php 1 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
- * An error page that is displayed if the user has no admin permissions
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
+     * An error page that is displayed if the user has no admin permissions
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
 ?>
22 22
     <header>
Please login to merge, or discard this patch.
phpmyfaq/admin/record.search.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
- * Shows the admin search frontend for FAQs
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 2011-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     2011-09-29
18
- */
3
+         * Shows the admin search frontend for FAQs
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 2011-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     2011-09-29
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
@@ -20,10 +20,10 @@
 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
 
Please login to merge, or discard this patch.
phpmyfaq/admin/footer.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
- * Footer of the admin area
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    Matteo Scaramuccia <[email protected]>
15
- * @copyright 2003-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     2003-02-26
19
- */
3
+     * Footer of the admin area
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    Matteo Scaramuccia <[email protected]>
15
+     * @copyright 2003-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     2003-02-26
19
+     */
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     $protocol = 'http';
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 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
 
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 <footer>
37 37
     <div class="container-fluid">
38 38
         <div class="row">
39
-            <form action="index.php<?php print (isset($action) ? '?action=' . $action : ''); ?>" method="post" class="pull-right" accept-charset="utf-8">
39
+            <form action="index.php<?php print (isset($action) ? '?action='.$action : ''); ?>" method="post" class="pull-right" accept-charset="utf-8">
40 40
             <?php print PMF_Language::selectLanguages($LANGCODE, true); ?>
41 41
             </form>
42 42
         </div>
@@ -61,8 +61,8 @@  discard block
 block discarded – undo
61 61
 ?>
62 62
 <iframe id="keepPMFSessionAlive" src="session.keepalive.php?lang=<?php print $LANGCODE; ?>" style="border: none;" width="0" height="0"></iframe>
63 63
 <?php
64
-    if (isset($auth) && (('takequestion' == $action) || ('editentry'    == $action) || ('editpreview'  == $action) ||
65
-                         ('addnews'      == $action) || ('editnews'     == $action) || ('copyentry'  == $action))) {
64
+    if (isset($auth) && (('takequestion' == $action) || ('editentry' == $action) || ('editpreview' == $action) ||
65
+                         ('addnews' == $action) || ('editnews' == $action) || ('copyentry' == $action))) {
66 66
     
67 67
         if ($faqConfig->get('main.enableWysiwygEditor') == true) {
68 68
 
Please login to merge, or discard this patch.
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -161,9 +161,12 @@
 block discarded – undo
161 161
     // Submit the form by an ajax request
162 162
     <?php if (isset($faqData['id']) && $faqData['id'] == 0): ?>
163 163
     var data = {action: "ajax", ajax: 'recordAdd'};
164
-    <?php else: ?>
164
+    <?php else {
165
+    : ?>
165 166
     var data = {action: "ajax", ajax: 'recordSave'};
166
-    <?php endif; ?>
167
+    <?php endif;
168
+}
169
+?>
167 170
     var id = $('#answer')[0].parentNode.parentNode.id;
168 171
     $.each($('#' + id).serializeArray(), function(i, field) {
169 172
         data[field.name] = field.value;
Please login to merge, or discard this patch.
phpmyfaq/admin/ajax.config.php 2 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
- * AJAX: handling of Ajax configuration calls
4
- *
5
- * PHP 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
- * @author    Thorsten Rinne <[email protected]>
15
- * @copyright 2009-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     2009-04-01
19
- */
3
+     * AJAX: handling of Ajax configuration calls
4
+     *
5
+     * PHP 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
+     * @author    Thorsten Rinne <[email protected]>
15
+     * @copyright 2009-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     2009-04-01
19
+     */
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ') || !$permission['editconfig']) {
22 22
     header('Location: http://'.$_SERVER['HTTP_HOST'].dirname($_SERVER['SCRIPT_NAME']));
Please login to merge, or discard this patch.
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $password = PMF_Filter::filterInput(INPUT_GET, 'password', FILTER_SANITIZE_STRING);
46 46
 
47 47
         $data = array(
48
-            'url'      => 'http://' . $url . '.' . $_SERVER['SERVER_NAME'],
48
+            'url'      => 'http://'.$url.'.'.$_SERVER['SERVER_NAME'],
49 49
             'instance' => $instance,
50 50
             'comment'  => $comment
51 51
         );
@@ -61,12 +61,12 @@  discard block
 block discarded – undo
61 61
 
62 62
         if ($faqInstanceClient->createClientFolder($hostname)) {
63 63
 
64
-            $clientDir   = PMF_ROOT_DIR . '/multisite/' . $hostname;
64
+            $clientDir   = PMF_ROOT_DIR.'/multisite/'.$hostname;
65 65
             $clientSetup = new PMF_Instance_Setup();
66 66
             $clientSetup->setRootDir($clientDir);
67 67
 
68
-            $faqInstanceClient->copyConstantsFile($clientDir . '/constants.php');
69
-            $faqInstanceClient->copyLdapConstantsFile($clientDir . '/constants_ldap.php');
68
+            $faqInstanceClient->copyConstantsFile($clientDir.'/constants.php');
69
+            $faqInstanceClient->copyLdapConstantsFile($clientDir.'/constants_ldap.php');
70 70
 
71 71
             $dbSetup = array(
72 72
                 'dbServer'       => $DB['server'],
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
             );
79 79
             $clientSetup->createDatabaseFile($dbSetup, '');
80 80
 
81
-            $faqInstanceClient->setClientUrl('http://' . $hostname);
81
+            $faqInstanceClient->setClientUrl('http://'.$hostname);
82 82
             $faqInstanceClient->createClientTables($dbSetup['dbPrefix']);
83 83
 
84 84
             PMF_Db::setTablePrefix($dbSetup['dbPrefix']);
@@ -168,7 +168,7 @@  discard block
 block discarded – undo
168 168
             $stopwords->setLanguage($stopwordsLang);
169 169
             if (null !== $stopwordId && -1 < $stopwordId) {
170 170
                 echo $stopwords->update($stopwordId, $stopword);
171
-            } elseif (!$stopwords->match($stopword)){
171
+            } elseif (!$stopwords->match($stopword)) {
172 172
                 echo $stopwords->add($stopword);
173 173
             } else {
174 174
 
Please login to merge, or discard this patch.
phpmyfaq/admin/stat.browser.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
- * Sessionbrowser
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
+         * Sessionbrowser
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   +5 added lines, -5 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
 
@@ -30,15 +30,15 @@  discard block
 block discarded – undo
30 30
 
31 31
     $perpage   = 50;
32 32
     $day       = PMF_Filter::filterInput(INPUT_POST, 'day', FILTER_VALIDATE_INT);
33
-    $firstHour = mktime (0, 0, 0, date('m', $day), date('d', $day), date('Y', $day));
34
-    $lastHour  = mktime (23, 59, 59, date('m', $day), date('d', $day), date('Y', $day));
33
+    $firstHour = mktime(0, 0, 0, date('m', $day), date('d', $day), date('Y', $day));
34
+    $lastHour  = mktime(23, 59, 59, date('m', $day), date('d', $day), date('Y', $day));
35 35
     
36 36
     $session     = new PMF_Session($faqConfig);
37 37
     $sessiondata = $session->getSessionsbyDate($firstHour, $lastHour);
38 38
     $date        = new PMF_Date($faqConfig);
39 39
 ?>
40 40
         <header>
41
-            <h2><i class="icon-tasks"></i> <?php echo $PMF_LANG['ad_sess_session'] . ' ' . date("Y-m-d", $day); ?></h2>
41
+            <h2><i class="icon-tasks"></i> <?php echo $PMF_LANG['ad_sess_session'].' '.date("Y-m-d", $day); ?></h2>
42 42
         </header>
43 43
 
44 44
         <table class="table table-striped">
Please login to merge, or discard this patch.
phpmyfaq/admin/ajax.category.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: handling of Ajax category calls
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 2012-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     2012-12-26
18
- */
3
+     * AJAX: handling of Ajax category calls
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 2012-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     2012-12-26
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,16 +19,16 @@
 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 29
 $ajaxAction = PMF_Filter::filterInput(INPUT_GET, 'ajaxaction', FILTER_SANITIZE_STRING);
30 30
 
31
-switch($ajaxAction) {
31
+switch ($ajaxAction) {
32 32
 
33 33
     case 'getpermissions':
34 34
 
Please login to merge, or discard this patch.