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 ( ec5d29...7accb9 )
by Thorsten
15:36
created
phpmyfaq/inc/PMF/Services/Facebook.php 1 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
- * Service class for Facebook support
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   Services
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2010-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     2010-09-05
18
- */
3
+     * Service class for Facebook support
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   Services
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @copyright 2010-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     2010-09-05
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     exit();
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Services/Twitter.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -65,12 +65,12 @@
 block discarded – undo
65 65
         $hashtags = '';
66 66
         
67 67
         if ($tags != '') {
68
-            $hashtags = '#' . str_replace(',', ' #', $tags);
68
+            $hashtags = '#'.str_replace(',', ' #', $tags);
69 69
         }
70 70
 
71 71
         $message  = PMF_String::htmlspecialchars($question);
72
-        $message .= ' ' . $hashtags;
73
-        $message .= ' ' . $link;
72
+        $message .= ' '.$hashtags;
73
+        $message .= ' '.$link;
74 74
 
75 75
         $this->connection->post('statuses/update', array('status' => $message));
76 76
     }
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
- * Service class for Twitter support
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   Services
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2010-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     2010-09-05
18
- */
3
+     * Service class for Twitter support
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   Services
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @copyright 2010-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     2010-09-05
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     exit();
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Services/Gravatar.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -59,18 +59,18 @@  discard block
 block discarded – undo
59 59
      */
60 60
     public function getImage($email, $params = array())
61 61
     {
62
-        $imageUrl = $this->getUrl() . 'avatar/' . $this->getHash($email);
62
+        $imageUrl = $this->getUrl().'avatar/'.$this->getHash($email);
63 63
 
64 64
         $opts = array();
65 65
 
66 66
         if (isset($params['default'])) {
67
-            $opts[] = 'default='. $params['default'];
67
+            $opts[] = 'default='.$params['default'];
68 68
         }
69 69
         if (isset($params['size'])) {
70
-            $opts[] = 'size='. $params['size'];
70
+            $opts[] = 'size='.$params['size'];
71 71
         }
72 72
         if (isset($params['rating'])) {
73
-            $opts[] = 'rating='. $params['rating'];
73
+            $opts[] = 'rating='.$params['rating'];
74 74
         }
75 75
         if (isset($params['force_default']) && $params['force_default'] === true) {
76 76
             $opts[] = 'forcedefault=y';
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
             $params['class'] = '';
80 80
         }
81 81
 
82
-        $gravatar = $imageUrl . (sizeof($opts) > 0 ? '?' . implode($opts, '&') : false);
82
+        $gravatar = $imageUrl.(sizeof($opts) > 0 ? '?'.implode($opts, '&') : false);
83 83
 
84 84
         return sprintf(
85 85
             '<img src="%s" class="%s" alt="Gravatar">',
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Session.php 2 patches
Indentation   +18 added lines, -18 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The main User session class
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   PMF_Session
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2007-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     2007-03-31
18
- */
3
+     * The main User session class
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   PMF_Session
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @copyright 2007-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     2007-03-31
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     exit();
@@ -170,8 +170,8 @@  discard block
 block discarded – undo
170 170
         $result = $this->config->getDb()->query($query);
171 171
 
172 172
         if ($result) {
173
-        	$res       = $this->config->getDb()->fetchObject($result);
174
-        	$timestamp = $res->time;
173
+            $res       = $this->config->getDb()->fetchObject($result);
174
+            $timestamp = $res->time;
175 175
         }
176 176
 
177 177
         return $timestamp;
Please login to merge, or discard this patch.
Spacing   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -111,7 +111,7 @@  discard block
 block discarded – undo
111 111
 
112 112
             if (0 == $bots && false == $banned) {
113 113
                 if (!isset($sid)) {
114
-                    $sid = $this->config->getDb()->nextId(PMF_Db::getTablePrefix() . 'faqsessions', 'sid');
114
+                    $sid = $this->config->getDb()->nextId(PMF_Db::getTablePrefix().'faqsessions', 'sid');
115 115
                     // Sanity check: force the session cookie to contains the current $sid
116 116
                     if (!is_null($sidc) && (!$sidc != $sid)) {
117 117
                         self::setCookie(self::PMF_COOKIE_NAME_SESSIONID, $sid);
@@ -132,15 +132,15 @@  discard block
 block discarded – undo
132 132
                     $this->config->getDb()->query($query);
133 133
                 }
134 134
 
135
-                $data = $sid.';' . 
136
-                        str_replace(';', ',', $action) . ';' . 
137
-                        $id . ';' . 
138
-                        $remoteAddr . ';' .
139
-                        str_replace(';', ',', $_SERVER['QUERY_STRING']) . ';' . 
140
-                        str_replace(';', ',', isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '') . ';' . 
141
-                        str_replace(';', ',', urldecode($_SERVER['HTTP_USER_AGENT'])) . ';' . 
142
-                        $_SERVER['REQUEST_TIME'] . ";\n";
143
-                $file = './data/tracking' . date('dmY');
135
+                $data = $sid.';'. 
136
+                        str_replace(';', ',', $action).';'. 
137
+                        $id.';'. 
138
+                        $remoteAddr.';'.
139
+                        str_replace(';', ',', $_SERVER['QUERY_STRING']).';'. 
140
+                        str_replace(';', ',', isset($_SERVER['HTTP_REFERER']) ? $_SERVER['HTTP_REFERER'] : '').';'. 
141
+                        str_replace(';', ',', urldecode($_SERVER['HTTP_USER_AGENT'])).';'. 
142
+                        $_SERVER['REQUEST_TIME'].";\n";
143
+                $file = './data/tracking'.date('dmY');
144 144
                 file_put_contents($file, $data, FILE_APPEND);
145 145
             }
146 146
         }
@@ -338,7 +338,7 @@  discard block
 block discarded – undo
338 338
 
339 339
             $timeNow = ($_SERVER['REQUEST_TIME'] - $activityTimeWindow);
340 340
 
341
-            if (! $this->config->get('security.enableLoginOnly')) {
341
+            if (!$this->config->get('security.enableLoginOnly')) {
342 342
                 // Count all sids within the time window for public installations
343 343
                 // @todo add a new field in faqsessions in order to find out only sids of anonymous users
344 344
                 $query = sprintf("
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Category.php 3 patches
Indentation   +38 added lines, -38 removed lines patch added patch discarded remove patch
@@ -1,24 +1,24 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The main category class
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   Category
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @author    Lars Tiedemann <[email protected]>
15
- * @author    Matteo Scaramuccia <[email protected]>
16
- * @author    Rudi Ferrari <[email protected]>
17
- * @copyright 2004-2015 phpMyFAQ Team
18
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
19
- * @link      http://www.phpmyfaq.de
20
- * @since     2004-02-16
21
- */
3
+     * The main category class
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   Category
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @author    Lars Tiedemann <[email protected]>
15
+     * @author    Matteo Scaramuccia <[email protected]>
16
+     * @author    Rudi Ferrari <[email protected]>
17
+     * @copyright 2004-2015 phpMyFAQ Team
18
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
19
+     * @link      http://www.phpmyfaq.de
20
+     * @since     2004-02-16
21
+     */
22 22
 
23 23
 if (!defined('IS_VALID_PHPMYFAQ')) {
24 24
     exit();
@@ -574,10 +574,10 @@  discard block
 block discarded – undo
574 574
     }
575 575
 
576 576
     /**
577
-    * print the static tree with the number of records
578
-    *
579
-    * @return string
580
-    */
577
+     * print the static tree with the number of records
578
+     *
579
+     * @return string
580
+     */
581 581
     public function viewTree()
582 582
     {
583 583
         global $sids, $PMF_LANG, $plr;
@@ -1219,7 +1219,7 @@  discard block
 block discarded – undo
1219 1219
             PMF_Db::getTablePrefix(),
1220 1220
             $category_id);
1221 1221
         if (!$delete_all) {
1222
-           $query .= " AND lang = '".$category_lang."'";
1222
+            $query .= " AND lang = '".$category_lang."'";
1223 1223
         }
1224 1224
         $this->_config->getDb()->query($query);
1225 1225
 
@@ -1243,7 +1243,7 @@  discard block
 block discarded – undo
1243 1243
             PMF_Db::getTablePrefix(),
1244 1244
             $category_id);
1245 1245
         if (!$delete_all) {
1246
-           $query .= " AND category_lang = '".$category_lang."'";
1246
+            $query .= " AND category_lang = '".$category_lang."'";
1247 1247
         }
1248 1248
         $this->_config->getDb()->query($query);
1249 1249
 
@@ -1267,7 +1267,7 @@  discard block
 block discarded – undo
1267 1267
         $translated   = array();
1268 1268
 
1269 1269
         foreach ($existcatlang as $language) {
1270
-           $query = sprintf("
1270
+            $query = sprintf("
1271 1271
                SELECT
1272 1272
                   name, description
1273 1273
                FROM
@@ -1276,13 +1276,13 @@  discard block
 block discarded – undo
1276 1276
                    id = %d
1277 1277
                AND
1278 1278
                    lang = '%s'",
1279
-               PMF_Db::getTablePrefix(),
1280
-               $category_id,
1281
-               $language);
1282
-           $result = $this->_config->getDb()->query($query);
1283
-           if ($row = $this->_config->getDb()->fetchArray($result)) {
1284
-              $translated[$languageCodes[strtoupper($language)]] = $row['name'].('' == $row['description'] ? '' : '  ('.$row['description'].')');
1285
-           }
1279
+                PMF_Db::getTablePrefix(),
1280
+                $category_id,
1281
+                $language);
1282
+            $result = $this->_config->getDb()->query($query);
1283
+            if ($row = $this->_config->getDb()->fetchArray($result)) {
1284
+                $translated[$languageCodes[strtoupper($language)]] = $row['name'].('' == $row['description'] ? '' : '  ('.$row['description'].')');
1285
+            }
1286 1286
         }
1287 1287
         ksort($translated);
1288 1288
 
@@ -1336,9 +1336,9 @@  discard block
 block discarded – undo
1336 1336
         $result = $this->_config->getDb()->query($query);
1337 1337
         while ($row = $this->_config->getDb()->fetchArray($result)) {
1338 1338
             if (!array_key_exists($row['id'],$this->categoryName)) {
1339
-               $this->categoryName[$row['id']] = $row;
1340
-               $this->categories[] =& $this->categoryName[$row['id']];
1341
-               $this->children[$row['parent_id']][$row['id']] =& $this->categoryName[$row['id']];
1339
+                $this->categoryName[$row['id']] = $row;
1340
+                $this->categories[] =& $this->categoryName[$row['id']];
1341
+                $this->children[$row['parent_id']][$row['id']] =& $this->categoryName[$row['id']];
1342 1342
             }
1343 1343
         }
1344 1344
     }
@@ -1534,8 +1534,8 @@  discard block
 block discarded – undo
1534 1534
                 fd.lang = fcr.category_lang
1535 1535
             ORDER BY
1536 1536
                 fcr.category_id, fd.id',
1537
-             PMF_Db::getTablePrefix(),
1538
-             PMF_Db::getTablePrefix());
1537
+                PMF_Db::getTablePrefix(),
1538
+                PMF_Db::getTablePrefix());
1539 1539
         $result = $this->_config->getDb()->query($query);
1540 1540
 
1541 1541
         if ($this->_config->getDb()->numRows($result) > 0) {
Please login to merge, or discard this patch.
Spacing   +16 added lines, -16 removed lines patch added patch discarded remove patch
@@ -225,8 +225,8 @@  discard block
 block discarded – undo
225 225
 
226 226
         while ($row = $this->_config->getDb()->fetchArray($result)) {
227 227
             $this->categoryName[$row['id']] = $row;
228
-            $this->categories[] =& $this->categoryName[$row['id']];
229
-            $this->children[$row['parent_id']][$row['id']] =& $this->categoryName[$row['id']];
228
+            $this->categories[] = & $this->categoryName[$row['id']];
229
+            $this->children[$row['parent_id']][$row['id']] = & $this->categoryName[$row['id']];
230 230
         }
231 231
 
232 232
         return $this->categories;
@@ -392,8 +392,8 @@  discard block
 block discarded – undo
392 392
             $symbol = 'minus';
393 393
         } else {
394 394
             $temp = isset($this->children[$thisParent_id]) ? array_keys($this->children[$thisParent_id]) : array();
395
-            if (isset($temp[count($temp)-1])) {
396
-                $symbol = ($id == $temp[count($temp)-1]) ? 'angle' : 'medium';
395
+            if (isset($temp[count($temp) - 1])) {
396
+                $symbol = ($id == $temp[count($temp) - 1]) ? 'angle' : 'medium';
397 397
             }
398 398
         }
399 399
 
@@ -466,7 +466,7 @@  discard block
 block discarded – undo
466 466
         $childs = array();
467 467
 
468 468
         if (isset($this->children[$id])) {
469
-            foreach(array_keys($this->children[$id]) as $childId) {
469
+            foreach (array_keys($this->children[$id]) as $childId) {
470 470
                 $childs = array_merge($childs, array($childId));
471 471
                 $childs = array_merge($childs, $this->getChildNodes($childId));
472 472
             }
@@ -619,7 +619,7 @@  discard block
 block discarded – undo
619 619
         $open = 0;
620 620
         $this->expandAll();
621 621
 
622
-        for ($y = 0 ;$y < $this->height(); $y = $this->getNextLineTree($y)) {
622
+        for ($y = 0; $y < $this->height(); $y = $this->getNextLineTree($y)) {
623 623
 
624 624
             list($categoryName, $parent, $description) = $this->getLineDisplay($y);
625 625
             $level     = $this->treeTab[$y]['level'];
@@ -661,14 +661,14 @@  discard block
 block discarded – undo
661 661
                 $num_entries = '';
662 662
             } else {
663 663
                 $totFaqRecords += $number[$parent];
664
-                $num_entries    = '<span class="rssCategoryLink"> ('.$plr->GetMsg('plmsgEntries',$number[$parent]);
664
+                $num_entries    = '<span class="rssCategoryLink"> ('.$plr->GetMsg('plmsgEntries', $number[$parent]);
665 665
                 $num_entries   .= sprintf(
666 666
                     ' <a href="feed/category/rss.php?category_id=%d&category_lang=%s" target="_blank"><img id="category_%d_RSS" src="assets/img/feed.png" width="16" height="16" alt="RSS"></a>',
667 667
                     $parent,
668 668
                     $this->language,
669 669
                     $parent
670 670
                 );
671
-                $num_entries   .= ')</span>';
671
+                $num_entries .= ')</span>';
672 672
             }
673 673
 
674 674
             $url = sprintf(
@@ -682,7 +682,7 @@  discard block
 block discarded – undo
682 682
             $oLink->text      = $categoryName;
683 683
             $oLink->tooltip   = $description;
684 684
 
685
-            $output .= $oLink->toHtmlAnchor() . $num_entries;
685
+            $output .= $oLink->toHtmlAnchor().$num_entries;
686 686
             $open    = $level;
687 687
         }
688 688
 
@@ -725,7 +725,7 @@  discard block
 block discarded – undo
725 725
             return $l + 1;
726 726
         } else {
727 727
             for ($i = $l + 1; $i < $this->height(); $i++) {
728
-                if ($this->treeTab[$i]["level"]<=$this->treeTab[$l]["level"]) {
728
+                if ($this->treeTab[$i]["level"] <= $this->treeTab[$l]["level"]) {
729 729
                     return $i;
730 730
                 }
731 731
             }
@@ -765,7 +765,7 @@  discard block
 block discarded – undo
765 765
         );
766 766
 
767 767
         $oLink            = new PMF_Link($url, $this->_config);
768
-        $oLink->id        = 'category_' . $categoryId;
768
+        $oLink->id        = 'category_'.$categoryId;
769 769
         $oLink->itemTitle = $categoryName;
770 770
         $oLink->text      = $categoryName;
771 771
 
@@ -846,7 +846,7 @@  discard block
 block discarded – undo
846 846
             return sprintf(
847 847
                 '<ul class="%s">%s</ul>',
848 848
                 $useCssClass,
849
-                implode('<li class="divider">' . $separator . '</li>', $temp)
849
+                implode('<li class="divider">'.$separator.'</li>', $temp)
850 850
             );
851 851
         } else {
852 852
             return implode($separator, $temp);
@@ -1308,7 +1308,7 @@  discard block
 block discarded – undo
1308 1308
                 if ($lang == $selected_lang) {
1309 1309
                     $output .= " selected=\"selected\"";
1310 1310
                 }
1311
-                $output .=  ">".$langname."</option>\n";
1311
+                $output .= ">".$langname."</option>\n";
1312 1312
             }
1313 1313
         }
1314 1314
 
@@ -1335,10 +1335,10 @@  discard block
 block discarded – undo
1335 1335
         $query .= ' ORDER BY id';
1336 1336
         $result = $this->_config->getDb()->query($query);
1337 1337
         while ($row = $this->_config->getDb()->fetchArray($result)) {
1338
-            if (!array_key_exists($row['id'],$this->categoryName)) {
1338
+            if (!array_key_exists($row['id'], $this->categoryName)) {
1339 1339
                $this->categoryName[$row['id']] = $row;
1340
-               $this->categories[] =& $this->categoryName[$row['id']];
1341
-               $this->children[$row['parent_id']][$row['id']] =& $this->categoryName[$row['id']];
1340
+               $this->categories[] = & $this->categoryName[$row['id']];
1341
+               $this->children[$row['parent_id']][$row['id']] = & $this->categoryName[$row['id']];
1342 1342
             }
1343 1343
         }
1344 1344
     }
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@
 block discarded – undo
184 184
      *
185 185
      * @param string $val Value
186 186
      *
187
-     * @return boolean
187
+     * @return integer
188 188
      */
189 189
     public function isValIgnorable($val)
190 190
     {
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/DB/Driver.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
- * Interface for database drivers
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   DB
13
- * @author    Johannes Schlüter <[email protected]>
14
- * @author    Thorsten Rinne <[email protected]>
15
- * @copyright 2007-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     2007-08-19
19
- */
3
+     * Interface for database drivers
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   DB
13
+     * @author    Johannes Schlüter <[email protected]>
14
+     * @author    Thorsten Rinne <[email protected]>
15
+     * @copyright 2007-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     2007-08-19
19
+     */
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     exit();
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/News.php 2 patches
Indentation   +24 added lines, -24 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * The News class for phpMyFAQ news
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   PMF_News
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @author    Matteo Scaramuccia <[email protected]>
15
- * @copyright 2006-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     2006-06-25
19
- */
3
+     * The News class for phpMyFAQ news
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   PMF_News
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @author    Matteo Scaramuccia <[email protected]>
15
+     * @copyright 2006-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     2006-06-25
19
+     */
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     exit();
@@ -42,10 +42,10 @@  discard block
 block discarded – undo
42 42
     private $_config;
43 43
 
44 44
     /**
45
-    * Language strings
46
-    *
47
-    * @var  string
48
-    */
45
+     * Language strings
46
+     *
47
+     * @var  string
48
+     */
49 49
     private $pmf_lang;
50 50
 
51 51
     /**
@@ -152,9 +152,9 @@  discard block
 block discarded – undo
152 152
         foreach ($news as $item) {
153 153
 
154 154
             $url = sprintf('%s?action=news&amp;newsid=%d&amp;newslang=%s',
155
-                           PMF_Link::getSystemRelativeUri(),
156
-                           $item['id'],
157
-                           $item['lang']);
155
+                            PMF_Link::getSystemRelativeUri(),
156
+                            $item['id'],
157
+                            $item['lang']);
158 158
             $oLink = new PMF_Link($url, $this->_config);
159 159
             
160 160
             if (isset($item['header'])) {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -106,7 +106,7 @@
 block discarded – undo
106 106
             while (($row = $this->_config->getDb()->fetchObject($result))) {
107 107
 
108 108
                 $counter++;
109
-                if (($showArchive  && ($counter > $this->_config->get('records.numberOfShownNewsEntries'))) ||
109
+                if (($showArchive && ($counter > $this->_config->get('records.numberOfShownNewsEntries'))) ||
110 110
                    ((!$showArchive) && (!$forceConfLimit) && 
111 111
                    ($counter <= $this->_config->get('records.numberOfShownNewsEntries'))) ||
112 112
                    ((!$showArchive) && $forceConfLimit)) {
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Exception.php 1 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
- * phpMyFAQ main exception class
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   PMF_Exception
13
- * @author    Thorsten Rinne <[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-12-28
18
- */
3
+     * phpMyFAQ main exception class
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   PMF_Exception
13
+     * @author    Thorsten Rinne <[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-12-28
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     exit();
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Configuration.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
- * The main class for fetching the configuration, update and delete items. This
4
- * class is also a small Dependency Injection Container for phpMyFAQ.
5
- *
6
- * PHP Version 5.3
7
- *
8
- * This Source Code Form is subject to the terms of the Mozilla Public License,
9
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
10
- * obtain one at http://mozilla.org/MPL/2.0/.
11
- *
12
- * @category  phpMyFAQ
13
- * @package   Configuration
14
- * @author    Thorsten Rinne <[email protected]>
15
- * @copyright 2006-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     2006-01-04
19
- */
3
+     * The main class for fetching the configuration, update and delete items. This
4
+     * class is also a small Dependency Injection Container for phpMyFAQ.
5
+     *
6
+     * PHP Version 5.3
7
+     *
8
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
9
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
10
+     * obtain one at http://mozilla.org/MPL/2.0/.
11
+     *
12
+     * @category  phpMyFAQ
13
+     * @package   Configuration
14
+     * @author    Thorsten Rinne <[email protected]>
15
+     * @copyright 2006-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     2006-01-04
19
+     */
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     exit();
Please login to merge, or discard this patch.
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -291,10 +291,10 @@
 block discarded – undo
291 291
     public function update(Array $newConfigs)
292 292
     {
293 293
         $runtimeConfigs = array(
294
-            'core.database',  // PMF_DB_Driver
295
-            'core.instance',  // PMF_Instance
296
-            'core.language',  // Language
297
-            'core.ldap',      // PMF_Ldap
294
+            'core.database', // PMF_DB_Driver
295
+            'core.instance', // PMF_Instance
296
+            'core.language', // Language
297
+            'core.ldap', // PMF_Ldap
298 298
             'core.ldapConfig' // $PMF_LDAP
299 299
         );
300 300
         if (is_array($newConfigs)) {
Please login to merge, or discard this patch.