@@ -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 | } |
@@ -77,21 +77,21 @@ |
||
| 77 | 77 | $search |
| 78 | 78 | ->setTable(PMF_Db::getTablePrefix().'faqdata AS fd') |
| 79 | 79 | ->setResultColumns( |
| 80 | - [ |
|
| 81 | - 'fd.id AS id', |
|
| 82 | - 'fd.lang AS lang', |
|
| 83 | - 'fcr.category_id AS category_id', |
|
| 84 | - 'fd.thema AS question', |
|
| 85 | - 'fd.content AS answer', |
|
| 86 | - 'fd.keywords AS keyowrds' |
|
| 87 | - ] |
|
| 80 | + [ |
|
| 81 | + 'fd.id AS id', |
|
| 82 | + 'fd.lang AS lang', |
|
| 83 | + 'fcr.category_id AS category_id', |
|
| 84 | + 'fd.thema AS question', |
|
| 85 | + 'fd.content AS answer', |
|
| 86 | + 'fd.keywords AS keyowrds' |
|
| 87 | + ] |
|
| 88 | 88 | ) |
| 89 | 89 | ->setJoinedTable(PMF_Db::getTablePrefix().'faqcategoryrelations AS fcr') |
| 90 | 90 | ->setJoinedColumns( |
| 91 | - [ |
|
| 91 | + [ |
|
| 92 | 92 | 'fd.id = fcr.record_id', |
| 93 | 93 | 'fd.lang = fcr.record_lang', |
| 94 | - ] |
|
| 94 | + ] |
|
| 95 | 95 | ) |
| 96 | 96 | ->setConditions( |
| 97 | 97 | [ |