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 ( fdaa80...0e4903 )
by Thorsten
29:50 queued 19s
created
phpmyfaq/inc/PMF/Utils.php 1 patch
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -125,7 +125,7 @@  discard block
 block discarded – undo
125 125
      *
126 126
      * @param string $lang Language
127 127
      *
128
-     * @return bool
128
+     * @return integer
129 129
      */
130 130
     public static function isLanguage($lang)
131 131
     {
@@ -137,7 +137,7 @@  discard block
 block discarded – undo
137 137
      *
138 138
      * @param int $date Date
139 139
      *
140
-     * @return int
140
+     * @return boolean
141 141
      */
142 142
     public static function isLikeOnPMFDate($date)
143 143
     {
@@ -319,7 +319,7 @@  discard block
 block discarded – undo
319 319
     /**
320 320
      * debug_backtrace() wrapper function.
321 321
      *
322
-     * @param $string
322
+     * @param string $string
323 323
      *
324 324
      * @return string
325 325
      */
Please login to merge, or discard this patch.
phpmyfaq/admin/ajax.autosave.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     $dateEnd = PMF_Filter::filterInput(INPUT_POST, 'dateEnd', FILTER_SANITIZE_STRING);
42 42
     $question = PMF_Filter::filterInput(INPUT_POST, 'question', FILTER_SANITIZE_STRING);
43 43
     $categories = PMF_Filter::filterInputArray(INPUT_POST, array('rubrik' => array('filter' => FILTER_VALIDATE_INT,
44
-                                                                                      'flags' => FILTER_REQUIRE_ARRAY, )));
44
+                                                                                        'flags' => FILTER_REQUIRE_ARRAY, )));
45 45
     $record_lang = PMF_Filter::filterInput(INPUT_POST, 'lang', FILTER_SANITIZE_STRING);
46 46
     $tags = PMF_Filter::filterInput(INPUT_POST, 'tags', FILTER_SANITIZE_STRING);
47 47
     $active = PMF_Filter::filterInput(INPUT_POST, 'active', FILTER_SANITIZE_STRING);
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@
 block discarded – undo
41 41
     $dateEnd = PMF_Filter::filterInput(INPUT_POST, 'dateEnd', FILTER_SANITIZE_STRING);
42 42
     $question = PMF_Filter::filterInput(INPUT_POST, 'question', FILTER_SANITIZE_STRING);
43 43
     $categories = PMF_Filter::filterInputArray(INPUT_POST, array('rubrik' => array('filter' => FILTER_VALIDATE_INT,
44
-                                                                                      'flags' => FILTER_REQUIRE_ARRAY, )));
44
+                                                                                      'flags' => FILTER_REQUIRE_ARRAY,)));
45 45
     $record_lang = PMF_Filter::filterInput(INPUT_POST, 'lang', FILTER_SANITIZE_STRING);
46 46
     $tags = PMF_Filter::filterInput(INPUT_POST, 'tags', FILTER_SANITIZE_STRING);
47 47
     $active = PMF_Filter::filterInput(INPUT_POST, 'active', FILTER_SANITIZE_STRING);
Please login to merge, or discard this patch.
phpmyfaq/admin/ajax.category.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -50,7 +50,7 @@
 block discarded – undo
50 50
         if (empty($ajaxData['categories'])) {
51 51
             $categories = array(-1); // Access for all users and groups
52 52
         } else {
53
-            $categories = explode(',', (int) $ajaxData['categories']);
53
+            $categories = explode(',', (int)$ajaxData['categories']);
54 54
         }
55 55
 
56 56
         echo json_encode(
Please login to merge, or discard this patch.
phpmyfaq/admin/ajax.group.php 2 patches
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         foreach ($userList as $single_user) {
67 67
             $user->getUserById($single_user, true);
68 68
             $users[] = array('user_id' => $user->getUserId(),
69
-                             'login' => $user->getLogin(), );
69
+                                'login' => $user->getLogin(), );
70 70
         }
71 71
         echo json_encode($users);
72 72
     }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         foreach ($memberList as $single_member) {
79 79
             $user->getUserById($single_member, true);
80 80
             $members[] = array('user_id' => $user->getUserId(),
81
-                               'login' => $user->getLogin(), );
81
+                                'login' => $user->getLogin(), );
82 82
         }
83 83
         echo json_encode($members);
84 84
     }
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
         foreach ($userList as $single_user) {
67 67
             $user->getUserById($single_user, true);
68 68
             $users[] = array('user_id' => $user->getUserId(),
69
-                             'login' => $user->getLogin(), );
69
+                             'login' => $user->getLogin(),);
70 70
         }
71 71
         echo json_encode($users);
72 72
     }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
         foreach ($memberList as $single_member) {
79 79
             $user->getUserById($single_member, true);
80 80
             $members[] = array('user_id' => $user->getUserId(),
81
-                               'login' => $user->getLogin(), );
81
+                               'login' => $user->getLogin(),);
82 82
         }
83 83
         echo json_encode($members);
84 84
     }
Please login to merge, or discard this patch.
phpmyfaq/admin/ajax.records.php 2 patches
Switch Indentation   +78 added lines, -78 removed lines patch added patch discarded remove patch
@@ -48,96 +48,96 @@
 block discarded – undo
48 48
 switch ($ajax_action) {
49 49
 
50 50
     // save active FAQs
51
-    case 'save_active_records':
52
-        if ($user->perm->checkRight($user->getUserId(), 'approverec')) {
53
-            if (!empty($items)) {
54
-                $faq = new PMF_Faq($faqConfig);
55
-
56
-                foreach ($items as $item) {
57
-                    if (is_array($item) && count($item) == 3 && PMF_Language::isASupportedLanguage($item[1])) {
58
-                        echo $faq->updateRecordFlag((int) $item[0], addslashes($item[1]), $item[2], 'active');
51
+        case 'save_active_records':
52
+            if ($user->perm->checkRight($user->getUserId(), 'approverec')) {
53
+                if (!empty($items)) {
54
+                    $faq = new PMF_Faq($faqConfig);
55
+
56
+                    foreach ($items as $item) {
57
+                        if (is_array($item) && count($item) == 3 && PMF_Language::isASupportedLanguage($item[1])) {
58
+                            echo $faq->updateRecordFlag((int) $item[0], addslashes($item[1]), $item[2], 'active');
59
+                        }
59 60
                     }
60 61
                 }
62
+            } else {
63
+                echo $PMF_LANG['err_NotAuth'];
61 64
             }
62
-        } else {
63
-            echo $PMF_LANG['err_NotAuth'];
64
-        }
65
-        break;
66
-
67
-    // save sticky FAQs
68
-    case 'save_sticky_records':
69
-        if ($user->perm->checkRight($user->getUserId(), 'editbt')) {
70
-            if (!empty($items)) {
71
-                $faq = new PMF_Faq($faqConfig);
72
-
73
-                foreach ($items as $item) {
74
-                    if (is_array($item) && count($item) == 3 && PMF_Language::isASupportedLanguage($item[1])) {
75
-                        echo $faq->updateRecordFlag((int) $item[0], addslashes($item[1]), $item[2], 'sticky');
65
+            break;
66
+
67
+        // save sticky FAQs
68
+        case 'save_sticky_records':
69
+            if ($user->perm->checkRight($user->getUserId(), 'editbt')) {
70
+                if (!empty($items)) {
71
+                    $faq = new PMF_Faq($faqConfig);
72
+
73
+                    foreach ($items as $item) {
74
+                        if (is_array($item) && count($item) == 3 && PMF_Language::isASupportedLanguage($item[1])) {
75
+                            echo $faq->updateRecordFlag((int) $item[0], addslashes($item[1]), $item[2], 'sticky');
76
+                        }
76 77
                     }
77 78
                 }
79
+            } else {
80
+                echo $PMF_LANG['err_NotAuth'];
78 81
             }
79
-        } else {
80
-            echo $PMF_LANG['err_NotAuth'];
81
-        }
82
-        break;
82
+            break;
83 83
 
84
-    // search FAQs for suggestions
85
-    case 'search_records':
86
-        if ($user->perm->checkRight($user->getUserId(), 'editbt')) {
87
-            $faq = new PMF_Faq($faqConfig);
88
-            $faqSearch = new PMF_Search($faqConfig);
89
-            $faqSearchResult = new PMF_Search_Resultset($user, $faq, $faqConfig);
90
-            $searchResult = '';
91
-            $searchString = PMF_Filter::filterInput(INPUT_POST, 'search', FILTER_SANITIZE_STRIPPED);
84
+        // search FAQs for suggestions
85
+        case 'search_records':
86
+            if ($user->perm->checkRight($user->getUserId(), 'editbt')) {
87
+                $faq = new PMF_Faq($faqConfig);
88
+                $faqSearch = new PMF_Search($faqConfig);
89
+                $faqSearchResult = new PMF_Search_Resultset($user, $faq, $faqConfig);
90
+                $searchResult = '';
91
+                $searchString = PMF_Filter::filterInput(INPUT_POST, 'search', FILTER_SANITIZE_STRIPPED);
92 92
 
93
-            if (!is_null($searchString)) {
94
-                $searchResult = $faqSearch->search($searchString, false);
93
+                if (!is_null($searchString)) {
94
+                    $searchResult = $faqSearch->search($searchString, false);
95 95
 
96
-                $faqSearchResult->reviewResultset($searchResult);
96
+                    $faqSearchResult->reviewResultset($searchResult);
97 97
 
98
-                $searchHelper = new PMF_Helper_Search($faqConfig);
99
-                $searchHelper->setSearchterm($searchString);
98
+                    $searchHelper = new PMF_Helper_Search($faqConfig);
99
+                    $searchHelper->setSearchterm($searchString);
100 100
 
101
-                echo $searchHelper->renderAdminSuggestionResult($faqSearchResult);
101
+                    echo $searchHelper->renderAdminSuggestionResult($faqSearchResult);
102
+                }
103
+            } else {
104
+                echo $PMF_LANG['err_NotAuth'];
102 105
             }
103
-        } else {
104
-            echo $PMF_LANG['err_NotAuth'];
105
-        }
106
-        break;
107
-
108
-    // delete FAQs
109
-    case 'delete_record':
110
-        if ($user->perm->checkRight($user->getUserId(), 'delbt')) {
111
-            $recordId = PMF_Filter::filterInput(INPUT_POST, 'record_id', FILTER_VALIDATE_INT);
112
-            $recordLang = PMF_Filter::filterInput(INPUT_POST, 'record_lang', FILTER_SANITIZE_STRING);
113
-
114
-            $logging = new PMF_Logging($faqConfig);
115
-            $logging->logAdmin($user, 'Deleted FAQ ID '.$recordId);
116
-
117
-            $faq->deleteRecord($recordId, $recordLang);
118
-            echo $PMF_LANG['ad_entry_delsuc'];
119
-        } else {
120
-            echo $PMF_LANG['err_NotAuth'];
121
-        }
122
-        break;
123
-
124
-    // delete open questions
125
-    case 'delete_question':
126
-        if ($user->perm->checkRight($user->getUserId(), 'delquestion')) {
127
-            $checks = array(
128
-                'filter' => FILTER_VALIDATE_INT,
129
-                'flags' => FILTER_REQUIRE_ARRAY,
130
-            );
131
-            $questionIds = PMF_Filter::filterInputArray(INPUT_POST, array('questions' => $checks));
132
-
133
-            if (!is_null($questionIds['questions'])) {
134
-                foreach ($questionIds['questions'] as $questionId) {
135
-                    $faq->deleteQuestion((int) $questionId);
106
+            break;
107
+
108
+        // delete FAQs
109
+        case 'delete_record':
110
+            if ($user->perm->checkRight($user->getUserId(), 'delbt')) {
111
+                $recordId = PMF_Filter::filterInput(INPUT_POST, 'record_id', FILTER_VALIDATE_INT);
112
+                $recordLang = PMF_Filter::filterInput(INPUT_POST, 'record_lang', FILTER_SANITIZE_STRING);
113
+
114
+                $logging = new PMF_Logging($faqConfig);
115
+                $logging->logAdmin($user, 'Deleted FAQ ID '.$recordId);
116
+
117
+                $faq->deleteRecord($recordId, $recordLang);
118
+                echo $PMF_LANG['ad_entry_delsuc'];
119
+            } else {
120
+                echo $PMF_LANG['err_NotAuth'];
121
+            }
122
+            break;
123
+
124
+        // delete open questions
125
+        case 'delete_question':
126
+            if ($user->perm->checkRight($user->getUserId(), 'delquestion')) {
127
+                $checks = array(
128
+                    'filter' => FILTER_VALIDATE_INT,
129
+                    'flags' => FILTER_REQUIRE_ARRAY,
130
+                );
131
+                $questionIds = PMF_Filter::filterInputArray(INPUT_POST, array('questions' => $checks));
132
+
133
+                if (!is_null($questionIds['questions'])) {
134
+                    foreach ($questionIds['questions'] as $questionId) {
135
+                        $faq->deleteQuestion((int) $questionId);
136
+                    }
136 137
                 }
138
+                echo $PMF_LANG['ad_entry_delsuc'];
139
+            } else {
140
+                echo $PMF_LANG['err_NotAuth'];
137 141
             }
138
-            echo $PMF_LANG['ad_entry_delsuc'];
139
-        } else {
140
-            echo $PMF_LANG['err_NotAuth'];
141
-        }
142
-        break;
142
+            break;
143 143
 }
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
 
56 56
                 foreach ($items as $item) {
57 57
                     if (is_array($item) && count($item) == 3 && PMF_Language::isASupportedLanguage($item[1])) {
58
-                        echo $faq->updateRecordFlag((int) $item[0], addslashes($item[1]), $item[2], 'active');
58
+                        echo $faq->updateRecordFlag((int)$item[0], addslashes($item[1]), $item[2], 'active');
59 59
                     }
60 60
                 }
61 61
             }
@@ -72,7 +72,7 @@  discard block
 block discarded – undo
72 72
 
73 73
                 foreach ($items as $item) {
74 74
                     if (is_array($item) && count($item) == 3 && PMF_Language::isASupportedLanguage($item[1])) {
75
-                        echo $faq->updateRecordFlag((int) $item[0], addslashes($item[1]), $item[2], 'sticky');
75
+                        echo $faq->updateRecordFlag((int)$item[0], addslashes($item[1]), $item[2], 'sticky');
76 76
                     }
77 77
                 }
78 78
             }
@@ -132,7 +132,7 @@  discard block
 block discarded – undo
132 132
 
133 133
             if (!is_null($questionIds['questions'])) {
134 134
                 foreach ($questionIds['questions'] as $questionId) {
135
-                    $faq->deleteQuestion((int) $questionId);
135
+                    $faq->deleteQuestion((int)$questionId);
136 136
                 }
137 137
             }
138 138
             echo $PMF_LANG['ad_entry_delsuc'];
Please login to merge, or discard this patch.
phpmyfaq/admin/ajax.trans.php 2 patches
Indentation   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -224,7 +224,7 @@
 block discarded – undo
224 224
         }
225 225
 
226 226
         $fileTpl = sprintf($fileTpl, $langDesc, $authorTpl, date('Y-m-d'), $langCode, date('Y'),
227
-                                     $langCharset, strtolower($langCode), $langName, $langDir, $langNPlurals);
227
+                                        $langCharset, strtolower($langCode), $langName, $langDir, $langNPlurals);
228 228
 
229 229
         $retval = @file_put_contents(PMF_ROOT_DIR.'/lang/language_'.strtolower($langCode).'.php', $fileTpl);
230 230
         echo intval($retval);
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
          * Build language variable definitions
38 38
          * @todo Change input handling using PMF_Filter
39 39
          */
40
-        foreach ((array) @$_POST['PMF_LANG'] as $key => $val) {
40
+        foreach ((array)@$_POST['PMF_LANG'] as $key => $val) {
41 41
             if (is_string($val)) {
42 42
                 $val = str_replace(array('\\\\', '\"', '\\\''), array('\\', '"', "'"), $val);
43 43
                 $val = str_replace("'", "\\'", $val);
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
             }
55 55
         }
56 56
 
57
-        foreach ((array) @$_POST['LANG_CONF'] as $key => $val) {
57
+        foreach ((array)@$_POST['LANG_CONF'] as $key => $val) {
58 58
             // if string like array(blah-blah-blah), extract the contents inside the brackets
59 59
             if (preg_match('/^\s*array\s*\(\s*(\d+.+)\s*\).*$/', $val, $matches1)) {
60 60
                 // split the resulting string of delimiters such as "number =>"
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         $langDir = PMF_Filter::filterInput(INPUT_POST, 'langdir', FILTER_SANITIZE_STRING);
185 185
         $langNPlurals = strval(PMF_Filter::filterVar(@$_POST['langnplurals'], FILTER_VALIDATE_INT, -1));
186 186
         $langDesc = PMF_Filter::filterInput(INPUT_POST, 'langdesc', FILTER_SANITIZE_STRING);
187
-        $author = (array) @$_POST['author'];
187
+        $author = (array)@$_POST['author'];
188 188
 
189 189
         if (empty($langCode) || empty($langName) || empty($langCharset) ||
190 190
            empty($langDir) || empty($langDesc) || empty($author)) {
@@ -252,6 +252,6 @@  discard block
 block discarded – undo
252 252
         $mail->addTo('[email protected]');
253 253
         $mail->addAttachment($filename, null, 'text/plain');
254 254
 
255
-        echo (int) $mail->send();
255
+        echo (int)$mail->send();
256 256
     break;
257 257
 }
Please login to merge, or discard this patch.
phpmyfaq/admin/att.main.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@
 block discarded – undo
33 33
 $itemsPerPage = 32;
34 34
 $allCrumbs = $fa->getBreadcrumbs();
35 35
 
36
-$crumbs = array_slice($allCrumbs, ($page - 1) * $itemsPerPage, $itemsPerPage);
36
+$crumbs = array_slice($allCrumbs, ($page - 1)*$itemsPerPage, $itemsPerPage);
37 37
 
38 38
 $pagination = new PMF_Pagination(
39 39
     $faqConfig,
Please login to merge, or discard this patch.
phpmyfaq/admin/attachment.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@  discard block
 block discarded – undo
109 109
 
110 110
 }
111 111
 if (is_null($currentAction) && $auth && $user->perm->checkRight($user->getUserId(), 'addattachment')) {
112
-    $recordId = filter_input(INPUT_GET, 'record_id',   FILTER_VALIDATE_INT);
112
+    $recordId = filter_input(INPUT_GET, 'record_id', FILTER_VALIDATE_INT);
113 113
     $recordLang = filter_input(INPUT_GET, 'record_lang', FILTER_SANITIZE_STRING);
114 114
     ?>
115 115
         <form action="attachment.php?action=save" enctype="multipart/form-data" method="post" accept-charset="utf-8">
@@ -117,7 +117,7 @@  discard block
 block discarded – undo
117 117
             <legend>
118 118
                 <?php echo $PMF_LANG['ad_att_addto'].' '.$PMF_LANG['ad_att_addto_2'];
119 119
     ?>
120
-                (max <?php echo round($faqConfig->get('records.maxAttachmentSize') / pow(1024, 2), 2) ?> MB)
120
+                (max <?php echo round($faqConfig->get('records.maxAttachmentSize')/pow(1024, 2), 2) ?> MB)
121 121
             </legend>
122 122
                 <input type="hidden" name="MAX_FILE_SIZE" value="<?php echo $faqConfig->get('records.maxAttachmentSize');
123 123
     ?>" />
@@ -151,7 +151,7 @@  discard block
 block discarded – undo
151 151
 
152 152
 if (!is_null($currentSave) && $currentSave == true && $auth &&
153 153
     $user->perm->checkRight($user->getUserId(), 'addattachment')) {
154
-    $recordId = filter_input(INPUT_POST, 'record_id',   FILTER_VALIDATE_INT);
154
+    $recordId = filter_input(INPUT_POST, 'record_id', FILTER_VALIDATE_INT);
155 155
     $recordLang = filter_input(INPUT_POST, 'record_lang', FILTER_SANITIZE_STRING);
156 156
     ?>
157 157
 <p><strong><?php echo $PMF_LANG['ad_att_addto'].' '.$PMF_LANG['ad_att_addto_2'];
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
             '<p>%s</p>',
193 193
             sprintf(
194 194
                 $PMF_LANG['ad_attach_4'],
195
-                round($faqConfig->get('records.maxAttachmentSize') / pow(1024, 2), 2)
195
+                round($faqConfig->get('records.maxAttachmentSize')/pow(1024, 2), 2)
196 196
             )
197 197
         );
198 198
 
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
- * Select an attachment and save it.
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    Anatoliy Belsky <[email protected]>
14
- * @copyright 2002-2016 phpMyFAQ
15
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
- * @link      http://www.phpmyfaq.de
17
- * @since     2002-09-17
18
- */
3
+     * Select an attachment and save it.
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    Anatoliy Belsky <[email protected]>
14
+     * @copyright 2002-2016 phpMyFAQ
15
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
+     * @link      http://www.phpmyfaq.de
17
+     * @since     2002-09-17
18
+     */
19 19
 define('PMF_ROOT_DIR', dirname(__DIR__));
20 20
 
21 21
 //
Please login to merge, or discard this patch.
phpmyfaq/admin/category.main.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
                             <i class="fa fa-plus fa-fw"></i> <?php echo $PMF_LANG['ad_kateg_add']; ?>
37 37
                         </a>
38 38
                         <a class="btn btn-info" href="?action=showcategory">
39
-                            <i class="fa fa-th fa-fw"></i> <?php echo $PMF_LANG['ad_categ_show'];?>
39
+                            <i class="fa fa-th fa-fw"></i> <?php echo $PMF_LANG['ad_categ_show']; ?>
40 40
                         </a>
41 41
                     </div>
42 42
                 </h2>
Please login to merge, or discard this patch.
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * List all categories in the admin section.
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-12-20
19
- */
3
+     * List all categories in the admin section.
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-12-20
19
+     */
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     $protocol = 'http';
22 22
     if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
@@ -321,19 +321,19 @@  discard block
 block discarded – undo
321 321
 
322 322
         if ($cat['lang'] == $lang) {
323 323
             // add sub category (if current language)
324
-           printf('
324
+            printf('
325 325
             <a class="btn btn-info btn-sm" href="?action=addcategory&amp;cat=%s&amp;lang=%s"><span title="%s" class="fa fa-plus fa-fw"></span></a> ',
326
-               $cat['id'],
327
-               $cat['lang'],
328
-               $PMF_LANG['ad_quick_category']
329
-           );
326
+                $cat['id'],
327
+                $cat['lang'],
328
+                $PMF_LANG['ad_quick_category']
329
+            );
330 330
 
331
-           // rename (sub) category (if current language)
332
-           printf('
331
+            // rename (sub) category (if current language)
332
+            printf('
333 333
                <a class="btn btn-info btn-sm" href="?action=editcategory&amp;cat=%s"><span title="%s" class="fa fa-edit fa-fw"></a> ',
334
-               $cat['id'],
335
-               $PMF_LANG['ad_kateg_rename']
336
-           );
334
+                $cat['id'],
335
+                $PMF_LANG['ad_kateg_rename']
336
+            );
337 337
         }
338 338
 
339 339
         // translate category (always)
@@ -357,20 +357,20 @@  discard block
 block discarded – undo
357 357
 
358 358
         if ($cat['lang'] == $lang) {
359 359
             // cut category (if current language)
360
-           printf(
361
-               '<a class="btn btn-warning btn-sm" href="?action=cutcategory&amp;cat=%s"><span title="%s" class="fa fa-cut fa-fw"></a> ',
362
-               $cat['id'],
363
-               $PMF_LANG['ad_categ_cut']
364
-           );
360
+            printf(
361
+                '<a class="btn btn-warning btn-sm" href="?action=cutcategory&amp;cat=%s"><span title="%s" class="fa fa-cut fa-fw"></a> ',
362
+                $cat['id'],
363
+                $PMF_LANG['ad_categ_cut']
364
+            );
365 365
 
366 366
             if ($category->numParent($cat['parent_id']) > 1) {
367 367
                 // move category (if current language) AND more than 1 category at the same level)
368
-              printf(
369
-                  '<a class="btn btn-warning btn-sm" href="?action=movecategory&amp;cat=%s&amp;parent_id=%s"><span title="%s" class="fa fa-sort fa-fw"></a> ',
370
-                  $cat['id'],
371
-                  $cat['parent_id'],
372
-                  $PMF_LANG['ad_categ_move']
373
-              );
368
+                printf(
369
+                    '<a class="btn btn-warning btn-sm" href="?action=movecategory&amp;cat=%s&amp;parent_id=%s"><span title="%s" class="fa fa-sort fa-fw"></a> ',
370
+                    $cat['id'],
371
+                    $cat['parent_id'],
372
+                    $PMF_LANG['ad_categ_move']
373
+                );
374 374
             }
375 375
         }
376 376
 
Please login to merge, or discard this patch.