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 ( fdce9e...41d2f7 )
by Thorsten
37:41 queued 22:06
created
phpmyfaq/inc/PMF/Helper/Search.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
113 113
     {
114 114
         return sprintf(
115 115
             '<a class="searchplugin" href="#" onclick="window.external.AddSearchProvider(\'%s\'); return false;">%s</a>',
116
-            $this->_config->get('main.referenceURL') . '/opensearch.php',
116
+            $this->_config->get('main.referenceURL').'/opensearch.php',
117 117
             $this->translation['opensearch_plugin_install']
118 118
         );
119 119
     }
@@ -240,8 +240,8 @@  discard block
 block discarded – undo
240 240
         $confPerPage  = $this->_config->get('records.numberOfRecordsPerPage');
241 241
         $numOfResults = $resultSet->getNumberOfResults();
242 242
         
243
-        $totalPages = ceil($numOfResults / $confPerPage);
244
-        $lastPage   = $currentPage * $confPerPage;
243
+        $totalPages = ceil($numOfResults/$confPerPage);
244
+        $lastPage   = $currentPage*$confPerPage;
245 245
         $firstPage  = $lastPage - $confPerPage;
246 246
         if ($lastPage > $numOfResults) {
247 247
             $lastPage = $numOfResults;
@@ -260,7 +260,7 @@  discard block
 block discarded – undo
260 260
                     $this->translation['msgPage'],
261 261
                     $currentPage,
262 262
                     $this->translation['msgVoteFrom'],
263
-                    $this->plurals->GetMsg('plmsgPagesTotal',$totalPages)
263
+                    $this->plurals->GetMsg('plmsgPagesTotal', $totalPages)
264 264
                 );
265 265
             }
266 266
             
@@ -376,7 +376,7 @@  discard block
 block discarded – undo
376 376
                 $oLink->itemTitle  = $result->question;
377 377
                 $oLink->text       = $result->question;
378 378
                 $oLink->tooltip    = $result->question;
379
-                $html .= '<li>' . $oLink->toHtmlAnchor() . '</li>';
379
+                $html .= '<li>'.$oLink->toHtmlAnchor().'</li>';
380 380
             }
381 381
             $html .= '</ul>';
382 382
         }
@@ -406,6 +406,6 @@  discard block
 block discarded – undo
406 406
             }
407 407
         }
408 408
         
409
-        return $html . '</ul>';
409
+        return $html.'</ul>';
410 410
     }
411 411
 }
412 412
\ No newline at end of file
Please login to merge, or discard this patch.
Indentation   +20 added lines, -20 removed lines patch added patch discarded remove patch
@@ -1,21 +1,21 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Helper class for phpMyFAQ search
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   Helper
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2009-2016 phpMyFAQ Team
15
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
- * @link      http://www.phpmyfaq.de
17
- * @since     2009-09-07
18
- */
3
+     * Helper class for phpMyFAQ search
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   Helper
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @copyright 2009-2016 phpMyFAQ Team
15
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
+     * @link      http://www.phpmyfaq.de
17
+     * @since     2009-09-07
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     exit();
@@ -293,10 +293,10 @@  discard block
 block discarded – undo
293 293
                 
294 294
                 if (PMF_String::strlen($searchItems[0]) > 1) {
295 295
                     foreach ($searchItems as $item) {
296
-                         if (PMF_String::strlen($item) > 2) {
297
-                             $question      = PMF_Utils::setHighlightedString($question, $item);
298
-                             $answerPreview = PMF_Utils::setHighlightedString($answerPreview, $item);
299
-                         }
296
+                            if (PMF_String::strlen($item) > 2) {
297
+                                $question      = PMF_Utils::setHighlightedString($question, $item);
298
+                                $answerPreview = PMF_Utils::setHighlightedString($answerPreview, $item);
299
+                            }
300 300
                     }
301 301
                 }
302 302
                 
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Helper/Administration.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -62,13 +62,13 @@  discard block
 block discarded – undo
62 62
         }
63 63
         
64 64
         if ($action != '') {
65
-            $action = "action=" . $action;
65
+            $action = "action=".$action;
66 66
         }
67 67
         
68 68
         if (isset($PMF_LANG[$caption])) {
69 69
             $_caption = $PMF_LANG[$caption];
70 70
         } else {
71
-            $_caption = 'No string for ' . $caption;
71
+            $_caption = 'No string for '.$caption;
72 72
         }
73 73
         
74 74
         $output = sprintf('<li%s><a href="?%s">%s</a></li>%s', $active, $action, $_caption, "\n");
@@ -96,9 +96,9 @@  discard block
 block discarded – undo
96 96
      */
97 97
     private function evaluatePermission($restrictions)
98 98
     {
99
-        if (false !== strpos ($restrictions, '+')) {
99
+        if (false !== strpos($restrictions, '+')) {
100 100
             $retval = false;
101
-            foreach (explode('+',$restrictions) as $_restriction) {
101
+            foreach (explode('+', $restrictions) as $_restriction) {
102 102
                 $retval = $retval || $this->evaluatePermission($_restriction);
103 103
                 if ($retval) {
104 104
                     break;
Please login to merge, or discard this patch.
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Helper class for Administration backend
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   Helper
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @author    Anatoliy Belsky <[email protected]>
15
- * @copyright 2010-2016 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     2010-01-19
19
- */
3
+     * Helper class for Administration backend
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   Helper
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @author    Anatoliy Belsky <[email protected]>
15
+     * @copyright 2010-2016 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     2010-01-19
19
+     */
20 20
 
21 21
 /**
22 22
  * PMF_Helper_Administration
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Helper/Http.php 2 patches
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -63,12 +63,12 @@  discard block
 block discarded – undo
63 63
     public function addHeader()
64 64
     {
65 65
         header('Expires: Thu, 07 Apr 1977 14:47:00 GMT');
66
-        header('Last-Modified: ' . gmdate('D, d M Y H:i:s') . ' GMT');
66
+        header('Last-Modified: '.gmdate('D, d M Y H:i:s').' GMT');
67 67
         header('Cache-Control: no-store, no-cache, must-revalidate');
68 68
         header('Cache-Control: post-check=0, pre-check=0', false);
69 69
         header('Pragma: no-cache');
70 70
         header('Vary: Negotiate,Accept');
71
-        header('Content-type: ' . $this->contentType);
71
+        header('Content-type: '.$this->contentType);
72 72
     }
73 73
 
74 74
     /**
@@ -106,7 +106,7 @@  discard block
 block discarded – undo
106 106
      */
107 107
     public function redirect($url)
108 108
     {
109
-        header('Location: ' . $url);
109
+        header('Location: '.$url);
110 110
     }
111 111
 
112 112
     /**
@@ -136,7 +136,7 @@  discard block
 block discarded – undo
136 136
         $validHeaders = array();
137 137
         if (is_string($headers) && strlen($headers) > 0) {
138 138
             $validHeaders[] = $headers;
139
-        } elseif(is_array($headers)) {
139
+        } elseif (is_array($headers)) {
140 140
             foreach ($headers as $header) {
141 141
                 if (strlen($header) > 0) {
142 142
                     $validHeaders[] = $header;
Please login to merge, or discard this patch.
Indentation   +17 added lines, -17 removed lines patch added patch discarded remove patch
@@ -1,22 +1,22 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * HTTP Helper class for phpMyFAQ
4
- *
5
- * PHP Version 5.3.0
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_Helper
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @author    Florian Anderiasch <[email protected]>
15
- * @copyright 2009-2016 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-09-13
19
- */
3
+     * HTTP Helper class for phpMyFAQ
4
+     *
5
+     * PHP Version 5.3.0
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_Helper
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @author    Florian Anderiasch <[email protected]>
15
+     * @copyright 2009-2016 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-09-13
19
+     */
20 20
 
21 21
 if (!defined('IS_VALID_PHPMYFAQ')) {
22 22
     exit();
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Export/Pdf/Wrapper.php 2 patches
Spacing   +15 added lines, -15 removed lines patch added patch discarded remove patch
@@ -29,18 +29,18 @@  discard block
 block discarded – undo
29 29
  * path to TCPDF
30 30
  *
31 31
  */
32
-define('K_PATH_MAIN', PMF_INCLUDE_DIR . '/libs/tcpdf/');
32
+define('K_PATH_MAIN', PMF_INCLUDE_DIR.'/libs/tcpdf/');
33 33
 
34 34
 /**
35 35
  * path for PDF fonts
36 36
  * use K_PATH_MAIN.'fonts/old/' for old non-UTF8 fonts
37 37
  */
38
-define('K_PATH_FONTS', K_PATH_MAIN . 'fonts/');
38
+define('K_PATH_FONTS', K_PATH_MAIN.'fonts/');
39 39
 
40 40
 /**
41 41
  * cache directory for temporary files (full path)
42 42
  */
43
-define('K_PATH_CACHE', PMF_ROOT_DIR . '/images/');
43
+define('K_PATH_CACHE', PMF_ROOT_DIR.'/images/');
44 44
 
45 45
 /**
46 46
  * cache directory for temporary files (url path)
@@ -50,12 +50,12 @@  discard block
 block discarded – undo
50 50
 /**
51 51
  * images directory
52 52
  */
53
-define('K_PATH_IMAGES', K_PATH_MAIN . 'images/');
53
+define('K_PATH_IMAGES', K_PATH_MAIN.'images/');
54 54
 
55 55
 /**
56 56
  * blank image
57 57
  */
58
-define('K_BLANK_IMAGE', K_PATH_IMAGES . '_blank.png');
58
+define('K_BLANK_IMAGE', K_PATH_IMAGES.'_blank.png');
59 59
 
60 60
 /**
61 61
  * page format
@@ -180,9 +180,9 @@  discard block
 block discarded – undo
180 180
 /**
181 181
  * reduction factor for small font
182 182
  */
183
-define('K_SMALL_RATIO', 2 / 3);
183
+define('K_SMALL_RATIO', 2/3);
184 184
 
185
-require K_PATH_MAIN . '/tcpdf.php';
185
+require K_PATH_MAIN.'/tcpdf.php';
186 186
 
187 187
 /**
188 188
  * @category  phpMyFAQ
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
         
351 351
         $title = html_entity_decode($title, ENT_QUOTES, 'utf-8');
352 352
         
353
-        $this->SetTextColor(0,0,0);
353
+        $this->SetTextColor(0, 0, 0);
354 354
         $this->SetFont($this->currentFont, 'B', 18);
355 355
         $this->MultiCell(0, 9, $title, 0, 'C', 0);        
356 356
         $this->SetMargins(PDF_MARGIN_LEFT, $this->getLastH() + 5, PDF_MARGIN_RIGHT);
@@ -376,13 +376,13 @@  discard block
 block discarded – undo
376 376
         );
377 377
         
378 378
         $currentTextColor = $this->TextColor;
379
-        $this->SetTextColor(0,0,0);
379
+        $this->SetTextColor(0, 0, 0);
380 380
         $this->SetY(-25);
381 381
         $this->SetFont($this->currentFont, '', 10);
382
-        $this->Cell(0, 10, $PMF_LANG['ad_gen_page'] . ' ' . $this->getAliasNumPage() . ' / ' . $this->getAliasNbPages(), 0, 0, 'C');
382
+        $this->Cell(0, 10, $PMF_LANG['ad_gen_page'].' '.$this->getAliasNumPage().' / '.$this->getAliasNbPages(), 0, 0, 'C');
383 383
         $this->SetY(-20);
384 384
         $this->SetFont($this->currentFont, 'B', 8);
385
-        $this->Cell(0, 10, $footer,0,1,"C");
385
+        $this->Cell(0, 10, $footer, 0, 1, "C");
386 386
         if ($this->enableBookmarks == false) {
387 387
             $this->SetY(-15);
388 388
             $this->SetFont($this->currentFont, '', 8);
@@ -390,14 +390,14 @@  discard block
 block discarded – undo
390 390
             if (is_array($this->faq) && !empty($this->faq)) {
391 391
                 $baseUrl .= '?action=artikel&amp;';
392 392
                 if (array_key_exists($this->category, $this->categories)) {
393
-                    $baseUrl .= 'cat=' . $this->categories[$this->category]['id'];
393
+                    $baseUrl .= 'cat='.$this->categories[$this->category]['id'];
394 394
                 } else {
395 395
                     $baseUrl .= 'cat=0';
396 396
                 }
397 397
                 $baseUrl .= '&amp;id='.$this->faq['id'];
398 398
                 $baseUrl .= '&amp;artlang='.$this->faq['lang'];
399 399
             }
400
-            $url    = $this->_config->get('main.referenceURL') . $baseUrl;
400
+            $url    = $this->_config->get('main.referenceURL').$baseUrl;
401 401
             $urlObj = new PMF_Link($url, $this->_config);
402 402
             $urlObj->itemTitle = $this->question;
403 403
             $_url = str_replace('&amp;', '&', $urlObj->toString());
@@ -429,7 +429,7 @@  discard block
 block discarded – undo
429 429
         $this->SetFont($this->currentFont, '', 12);
430 430
 
431 431
         // Render TOC
432
-        $this->addTOC(1, $this->currentFont, '.', $PMF_LANG['msgTableOfContent'], 'B', array(128,0,0));
432
+        $this->addTOC(1, $this->currentFont, '.', $PMF_LANG['msgTableOfContent'], 'B', array(128, 0, 0));
433 433
         $this->endTOCPage();
434 434
     }
435 435
 
@@ -505,7 +505,7 @@  discard block
 block discarded – undo
505 505
     public function Image($file, $x = '', $y = '', $w = 0, $h = 0, $type = '', $link = '', $align = '', $resize = false, $dpi = 300, $palign = '', $ismask = false, $imgmask = false, $border = 0, $fitbox = false, $hidden = false, $fitonpage = false, $alt = false, $altimgs = array())
506 506
     {
507 507
         if (!strpos($file, 'data:image/png;base64,') === false) {
508
-            $file = '@' . base64_decode(
508
+            $file = '@'.base64_decode(
509 509
                 chunk_split(str_replace(' ', '+', str_replace('data:image/png;base64,', '', $file)))
510 510
             );
511 511
         }
Please login to merge, or discard this patch.
Indentation   +22 added lines, -22 removed lines patch added patch discarded remove patch
@@ -1,23 +1,23 @@  discard block
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Main PDF class for phpMyFAQ which "just" extends the TCPDF library
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   Export
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @author    Peter Beauvain <[email protected]>
15
- * @author    Krzysztof Kruszynski <[email protected]>
16
- * @copyright 2004-2016 phpMyFAQ Team
17
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
18
- * @link      http://www.phpmyfaq.de
19
- * @since     2004-11-21
20
- */
3
+     * Main PDF class for phpMyFAQ which "just" extends the TCPDF library
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   Export
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @author    Peter Beauvain <[email protected]>
15
+     * @author    Krzysztof Kruszynski <[email protected]>
16
+     * @copyright 2004-2016 phpMyFAQ Team
17
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
18
+     * @link      http://www.phpmyfaq.de
19
+     * @since     2004-11-21
20
+     */
21 21
 
22 22
 if (!defined('IS_VALID_PHPMYFAQ')) {
23 23
     exit();
@@ -199,10 +199,10 @@  discard block
 block discarded – undo
199 199
 class PMF_Export_Pdf_Wrapper extends TCPDF
200 200
 {
201 201
     /**
202
-    * With or without bookmarks
203
-    *
204
-    * @var boolean
205
-    */
202
+     * With or without bookmarks
203
+     *
204
+     * @var boolean
205
+     */
206 206
     public $enableBookmarks = false;
207 207
     
208 208
     /**
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Export/Pdf.php 2 patches
Spacing   +14 added lines, -14 removed lines patch added patch discarded remove patch
@@ -97,8 +97,8 @@  discard block
 block discarded – undo
97 97
         $this->pdf->setCategory($categoryId);
98 98
         $this->pdf->setCategories($this->category->categoryName);
99 99
         $this->pdf->SetCreator(
100
-            $this->_config->get('main.titleFAQ') .
101
-            ' - powered by phpMyFAQ ' .
100
+            $this->_config->get('main.titleFAQ').
101
+            ' - powered by phpMyFAQ '.
102 102
             $this->_config->get('main.currentVersion')
103 103
         );
104 104
 
@@ -137,27 +137,27 @@  discard block
 block discarded – undo
137 137
                         $tags = $this->tags->getAllTagsById($faq['id']);
138 138
                     }
139 139
 
140
-                    $this->pdf->WriteHTML('<h2 align="center">' . $faq['topic'] . '</h2>', true);
140
+                    $this->pdf->WriteHTML('<h2 align="center">'.$faq['topic'].'</h2>', true);
141 141
                     $this->pdf->Ln(10);
142 142
 
143 143
                     $this->pdf->SetFont($this->pdf->getCurrentFont(), '', 12);
144 144
                     $this->pdf->WriteHTML(trim($faq['content']));
145 145
                     $this->pdf->Ln(10);
146 146
 
147
-                    if (! empty($faq['keywords'])) {
147
+                    if (!empty($faq['keywords'])) {
148 148
                         $this->pdf->Ln();
149
-                        $this->pdf->Write(5, $PMF_LANG['msgNewContentKeywords'] . ' ' . $faq['keywords']);
149
+                        $this->pdf->Write(5, $PMF_LANG['msgNewContentKeywords'].' '.$faq['keywords']);
150 150
                     }
151 151
                     if (isset($tags) && 0 !== count($tags)) {
152 152
                         $this->pdf->Ln();
153
-                        $this->pdf->Write(5, $PMF_LANG['ad_entry_tags'] . ': ' . implode(', ', $tags));
153
+                        $this->pdf->Write(5, $PMF_LANG['ad_entry_tags'].': '.implode(', ', $tags));
154 154
                     }
155 155
 
156 156
                     $this->pdf->Ln();
157 157
                     $this->pdf->Ln();
158 158
                     $this->pdf->Write(
159 159
                         5,
160
-                        $PMF_LANG['msgLastUpdateArticle'] . PMF_Date::createIsoDate($faq['lastmodified'])
160
+                        $PMF_LANG['msgLastUpdateArticle'].PMF_Date::createIsoDate($faq['lastmodified'])
161 161
                     );
162 162
                 }
163 163
             }
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
 
185 185
         // Default filename: FAQ-<id>-<language>.pdf
186 186
         if (empty($filename)) {
187
-            $filename = 'FAQ-' . $faqData['id'] . '-' . $faqData['lang'] . '.pdf';
187
+            $filename = 'FAQ-'.$faqData['id'].'-'.$faqData['lang'].'.pdf';
188 188
         }
189 189
 
190 190
         $this->pdf->setFaq($faqData);
@@ -195,27 +195,27 @@  discard block
 block discarded – undo
195 195
         // Set any item
196 196
         $this->pdf->SetTitle($faqData['title']);
197 197
         $this->pdf->SetCreator(
198
-            $this->_config->get('main.titleFAQ') .
199
-            ' - powered by phpMyFAQ ' .
198
+            $this->_config->get('main.titleFAQ').
199
+            ' - powered by phpMyFAQ '.
200 200
             $this->_config->get('main.currentVersion')
201 201
         );
202 202
         $this->pdf->AddPage();
203 203
         $this->pdf->SetFont($this->pdf->getCurrentFont(), '', 12);
204 204
         $this->pdf->SetDisplayMode('real');
205 205
         $this->pdf->Ln();
206
-        $this->pdf->WriteHTML('<h1 align="center">' . $faqData['title'] . '</h1>', true);
206
+        $this->pdf->WriteHTML('<h1 align="center">'.$faqData['title'].'</h1>', true);
207 207
         $this->pdf->Ln();
208 208
         $this->pdf->Ln();
209 209
         $this->pdf->WriteHTML(str_replace('../', '', $faqData['content']), true);
210 210
         $this->pdf->Ln();
211 211
         $this->pdf->Ln();
212 212
         $this->pdf->SetFont($this->pdf->getCurrentFont(), '', 11);
213
-        $this->pdf->Write(5, $PMF_LANG['ad_entry_solution_id'] . ': #' . $faqData['solution_id']);
213
+        $this->pdf->Write(5, $PMF_LANG['ad_entry_solution_id'].': #'.$faqData['solution_id']);
214 214
         $this->pdf->SetAuthor($faqData['author']);
215 215
         $this->pdf->Ln();
216
-        $this->pdf->Write(5, $PMF_LANG['msgAuthor'] . ': ' . $faqData['author']);
216
+        $this->pdf->Write(5, $PMF_LANG['msgAuthor'].': '.$faqData['author']);
217 217
         $this->pdf->Ln();
218
-        $this->pdf->Write(5, $PMF_LANG['msgLastUpdateArticle'] . $faqData['date']);
218
+        $this->pdf->Write(5, $PMF_LANG['msgLastUpdateArticle'].$faqData['date']);
219 219
 
220 220
         return $this->pdf->Output($filename);
221 221
     }
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
- * PDF Export class for phpMyFAQ
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   Export
13
- * @author    Thorsten Rinne <[email protected]>
14
- * @copyright 2009-2016 phpMyFAQ Team
15
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
- * @link      http://www.phpmyfaq.de
17
- * @since     2009-10-07
18
- */
3
+     * PDF Export class for phpMyFAQ
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   Export
13
+     * @author    Thorsten Rinne <[email protected]>
14
+     * @copyright 2009-2016 phpMyFAQ Team
15
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
16
+     * @link      http://www.phpmyfaq.de
17
+     * @since     2009-10-07
18
+     */
19 19
 
20 20
 if (!defined('IS_VALID_PHPMYFAQ')) {
21 21
     exit();
Please login to merge, or discard this patch.
phpmyfaq/inc/PMF/Export/Xhtml.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -80,13 +80,13 @@
 block discarded – undo
80 80
         $faqdata = $this->faq->get(FAQ_QUERY_TYPE_EXPORT_XHTML, $categoryId, $downwards, $language);
81 81
         $version = $this->_config->get('main.currentVersion');
82 82
         $comment = sprintf('XHTML output by phpMyFAQ %s | Date: %s', 
83
-          $version, 
84
-          PMF_Date::createIsoDate(date("YmdHis")));
83
+            $version, 
84
+            PMF_Date::createIsoDate(date("YmdHis")));
85 85
         
86 86
         $this->xml->startDocument('1.0', 'utf-8');
87 87
         $this->xml->writeDtd('html', 
88
-                             '-//W3C//DTD XHTML 1.0 Transitional//EN', 
89
-                             'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd');
88
+                                '-//W3C//DTD XHTML 1.0 Transitional//EN', 
89
+                                'http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd');
90 90
         $this->xml->startElement('html');
91 91
         $this->xml->writeAttribute('xmlns', 'http://www.w3.org/1999/xhtml');
92 92
         $this->xml->writeAttribute('xml:lang', $language);
Please login to merge, or discard this patch.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -115,10 +115,10 @@
 block discarded – undo
115 115
                 $this->xml->startElement('p');
116 116
                 $this->xml->writeCdata(html_entity_decode($data['content'], ENT_QUOTES, 'UTF-8'));
117 117
                 $this->xml->endElement();
118
-                $this->xml->writeElement('p', $PMF_LANG['msgAuthor'] . ': ' .$data['author_email']);
118
+                $this->xml->writeElement('p', $PMF_LANG['msgAuthor'].': '.$data['author_email']);
119 119
                 $this->xml->writeElement(
120 120
                     'p',
121
-                    $PMF_LANG['msgLastUpdateArticle'] . PMF_Date::createIsoDate($data['lastmodified'])
121
+                    $PMF_LANG['msgLastUpdateArticle'].PMF_Date::createIsoDate($data['lastmodified'])
122 122
                 );
123 123
                 
124 124
                 $lastCategory = $data['category_id'];
Please login to merge, or discard this patch.
phpmyfaq/multisite/multisite.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -31,11 +31,11 @@
 block discarded – undo
31 31
 }
32 32
 
33 33
 $protocol = 'http';
34
-if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON'){
34
+if (isset($_SERVER['HTTPS']) && strtoupper($_SERVER['HTTPS']) === 'ON') {
35 35
     $protocol = 'https';
36 36
 }
37
-$parsed = parse_url($protocol . '://' . $_SERVER['SERVER_NAME'] . $_SERVER['SCRIPT_NAME']);
38
-if (isset($parsed['host']) && strlen($parsed['host']) > 0 && is_dir(__DIR__ . '/' . $parsed['host'])) {
39
-    define('PMF_MULTI_INSTANCE_CONFIG_DIR', __DIR__ . '/' . $parsed['host']);
37
+$parsed = parse_url($protocol.'://'.$_SERVER['SERVER_NAME'].$_SERVER['SCRIPT_NAME']);
38
+if (isset($parsed['host']) && strlen($parsed['host']) > 0 && is_dir(__DIR__.'/'.$parsed['host'])) {
39
+    define('PMF_MULTI_INSTANCE_CONFIG_DIR', __DIR__.'/'.$parsed['host']);
40 40
     unset($parsed);
41 41
 }
42 42
\ No newline at end of file
Please login to merge, or discard this patch.
phpmyfaq/cron.verifyurls.php 2 patches
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -48,10 +48,10 @@  discard block
 block discarded – undo
48 48
     
49 49
     define('IS_VALID_PHPMYFAQ', null);
50 50
     
51
-    require PMF_ROOT_DIR. '/inc/Bootstrap.php';
51
+    require PMF_ROOT_DIR.'/inc/Bootstrap.php';
52 52
 
53 53
     // Preload English strings
54
-    require_once PMF_ROOT_DIR . '/lang/language_en.php';
54
+    require_once PMF_ROOT_DIR.'/lang/language_en.php';
55 55
 
56 56
     if ((LANGCODE != 'en') && PMF_Language::isASupportedLanguage(LANGCODE)) {
57 57
         // Overwrite English strings with the ones we have in the current language
@@ -79,7 +79,7 @@  discard block
 block discarded – undo
79 79
     $_records = $faq->faqRecords;
80 80
     $tot      = count($_records);
81 81
     $end      = microtime(true);
82
-    $output  .= ' #'.$tot.', done in '.round($end - $start, 4).' sec.'.($isRequestedByWebLocalhost ? '' : "\n");;
82
+    $output  .= ' #'.$tot.', done in '.round($end - $start, 4).' sec.'.($isRequestedByWebLocalhost ? '' : "\n"); ;
83 83
     $output  .= ($isRequestedByWebLocalhost ? '' : "\n");
84 84
     if ($isRequestedByWebLocalhost) {
85 85
         echo '<pre>';
Please login to merge, or discard this patch.
Indentation   +21 added lines, -21 removed lines patch added patch discarded remove patch
@@ -1,26 +1,26 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * Performs an Automatic Link Verification over all the faq records
4
- *
5
- * You can set a cron entry:
6
- * a. using PHP CLI
7
- * b. using a Web Hit to this file
8
- *
9
- * PHP Version 5.3
10
- *
11
- * This Source Code Form is subject to the terms of the Mozilla Public License,
12
- * v. 2.0. If a copy of the MPL was not distributed with this file, You can
13
- * obtain one at http://mozilla.org/MPL/2.0/.
14
- *
15
- * @category  phpMyFAQ
16
- * @package   CLI
17
- * @author    Matteo Scaramuccia <[email protected]>
18
- * @author    Thorsten Rinne <[email protected]>
19
- * @copyright 2006-2016 phpMyFAQ Team
20
- * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
21
- * @link      http://www.phpmyfaq.de
22
- * @since     2006-09-17
23
- */
3
+     * Performs an Automatic Link Verification over all the faq records
4
+     *
5
+     * You can set a cron entry:
6
+     * a. using PHP CLI
7
+     * b. using a Web Hit to this file
8
+     *
9
+     * PHP Version 5.3
10
+     *
11
+     * This Source Code Form is subject to the terms of the Mozilla Public License,
12
+     * v. 2.0. If a copy of the MPL was not distributed with this file, You can
13
+     * obtain one at http://mozilla.org/MPL/2.0/.
14
+     *
15
+     * @category  phpMyFAQ
16
+     * @package   CLI
17
+     * @author    Matteo Scaramuccia <[email protected]>
18
+     * @author    Thorsten Rinne <[email protected]>
19
+     * @copyright 2006-2016 phpMyFAQ Team
20
+     * @license   http://www.mozilla.org/MPL/2.0/ Mozilla Public License Version 2.0
21
+     * @link      http://www.phpmyfaq.de
22
+     * @since     2006-09-17
23
+     */
24 24
 
25 25
 /**
26 26
  * This is the flag with which you define the language of this cron script
Please login to merge, or discard this patch.
phpmyfaq/open.php 1 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
 $faqsession->userTracking('open_questions', 0);
30 30
 
31
-$tpl->parse (
31
+$tpl->parse(
32 32
     'writeContent',
33 33
     array(
34 34
         'msgOpenQuestions'   => $PMF_LANG['msgOpenQuestions'],
Please login to merge, or discard this patch.