@@ -62,7 +62,7 @@ |
||
62 | 62 | } |
63 | 63 | } else { |
64 | 64 | $user = PMF_User_CurrentUser::getFromCookie($faqConfig); |
65 | - if (! $user instanceof PMF_User_CurrentUser) { |
|
65 | + if (!$user instanceof PMF_User_CurrentUser) { |
|
66 | 66 | $user = PMF_User_CurrentUser::getFromSession($faqConfig); |
67 | 67 | } |
68 | 68 | } |
@@ -123,7 +123,7 @@ |
||
123 | 123 | $errorMessage = 'The uploaded file exceeds the upload_max_filesize directive in php.ini.'; |
124 | 124 | break; |
125 | 125 | case 2: |
126 | - $errorMessage = 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the ' . |
|
126 | + $errorMessage = 'The uploaded file exceeds the MAX_FILE_SIZE directive that was specified in the '. |
|
127 | 127 | 'HTML form.'; |
128 | 128 | break; |
129 | 129 | case 3: |
@@ -208,8 +208,8 @@ discard block |
||
208 | 208 | $confPerPage = $this->_config->get('records.numberOfRecordsPerPage'); |
209 | 209 | $numOfResults = $resultSet->getNumberOfResults(); |
210 | 210 | |
211 | - $totalPages = ceil($numOfResults / $confPerPage); |
|
212 | - $lastPage = $currentPage * $confPerPage; |
|
211 | + $totalPages = ceil($numOfResults/$confPerPage); |
|
212 | + $lastPage = $currentPage*$confPerPage; |
|
213 | 213 | $firstPage = $lastPage - $confPerPage; |
214 | 214 | if ($lastPage > $numOfResults) { |
215 | 215 | $lastPage = $numOfResults; |
@@ -286,7 +286,7 @@ discard block |
||
286 | 286 | $oLink->itemTitle = $oLink->tooltip = $result->question; |
287 | 287 | |
288 | 288 | $html .= '<li>'; |
289 | - $html .= $this->renderScore($result->score * 33); |
|
289 | + $html .= $this->renderScore($result->score*33); |
|
290 | 290 | $html .= sprintf('<strong>%s</strong>: %s<br />', |
291 | 291 | $categoryInfo[0]['name'], |
292 | 292 | $oLink->toHtmlAnchor() |
@@ -215,7 +215,7 @@ discard block |
||
215 | 215 | } |
216 | 216 | |
217 | 217 | if (false !== $this->ldap->getDn($login)) { |
218 | - $this->activeServer = (int) $key; |
|
218 | + $this->activeServer = (int)$key; |
|
219 | 219 | break; |
220 | 220 | } |
221 | 221 | } |
@@ -251,7 +251,7 @@ discard block |
||
251 | 251 | htmlspecialchars_decode($password) |
252 | 252 | ); |
253 | 253 | |
254 | - if (! $this->ldap->bind($bindLogin, htmlspecialchars_decode($password))) { |
|
254 | + if (!$this->ldap->bind($bindLogin, htmlspecialchars_decode($password))) { |
|
255 | 255 | $this->errors[] = $this->ldap->error; |
256 | 256 | |
257 | 257 | return false; |
@@ -288,7 +288,7 @@ discard block |
||
288 | 288 | } |
289 | 289 | |
290 | 290 | if (false !== $this->ldap->getDn($login)) { |
291 | - $this->activeServer = (int) $key; |
|
291 | + $this->activeServer = (int)$key; |
|
292 | 292 | break; |
293 | 293 | } |
294 | 294 | } |
@@ -71,9 +71,9 @@ |
||
71 | 71 | </a> | |
72 | 72 | <?php echo $date->format(date('Y-m-d H:i', $faqcomment['date'])) ?> | |
73 | 73 | <a href="<?php printf('../?action=artikel&cat=%d&id=%d&artlang=%s', |
74 | - $faqcomment['category_id'], |
|
75 | - $faqcomment['record_id'], |
|
76 | - $LANGCODE) ?>"> |
|
74 | + $faqcomment['category_id'], |
|
75 | + $faqcomment['record_id'], |
|
76 | + $LANGCODE) ?>"> |
|
77 | 77 | <?php echo $faq->getRecordTitle($faqcomment['record_id']) ?> |
78 | 78 | </a> |
79 | 79 | </span><br/> |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | if (!is_dir(PMF_ROOT_DIR.'/images')) { |
67 | 67 | echo '<p class="alert alert-danger">'.sprintf($PMF_LANG['ad_dir_missing'], '/images').'</p>'; |
68 | 68 | } else { |
69 | - $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(PMF_ROOT_DIR . '/images/')); |
|
69 | + $files = new RecursiveIteratorIterator(new RecursiveDirectoryIterator(PMF_ROOT_DIR.'/images/')); |
|
70 | 70 | foreach ($files as $file) { |
71 | 71 | if ($file->isDir() || !in_array($file->getExtension(), $allowedExtensions)) { |
72 | 72 | continue; |
@@ -74,9 +74,9 @@ discard block |
||
74 | 74 | $path = str_replace(dirname(__DIR__).'/', '', $file->getPath()); |
75 | 75 | printf( |
76 | 76 | '<div class="mce-file" data-src="%s"><img src="%s" class="mce-file-preview">%s</div>', |
77 | - $faqConfig->getDefaultUrl() . $path . '/' . $file->getFilename(), |
|
78 | - $faqConfig->getDefaultUrl() . $path . '/' . $file->getFilename(), |
|
79 | - $path . '/' . $file->getFilename() |
|
77 | + $faqConfig->getDefaultUrl().$path.'/'.$file->getFilename(), |
|
78 | + $faqConfig->getDefaultUrl().$path.'/'.$file->getFilename(), |
|
79 | + $path.'/'.$file->getFilename() |
|
80 | 80 | ); |
81 | 81 | } |
82 | 82 | } |