@@ -48,8 +48,8 @@ discard block |
||
| 48 | 48 | $now = time(); |
| 49 | 49 | $timeStart = $now - 86400 * intval($days); // 86400 seconds/day |
| 50 | 50 | |
| 51 | - $rootPageId = (int) $rootPageId; |
|
| 52 | - $limit = (int) $limit; |
|
| 51 | + $rootPageId = (int)$rootPageId; |
|
| 52 | + $limit = (int)$limit; |
|
| 53 | 53 | $statisticsRows = $this->getDatabase()->exec_SELECTgetRows( |
| 54 | 54 | 'keywords, count(keywords) as count, num_found as hits', |
| 55 | 55 | 'tx_solr_statistics', |
@@ -60,7 +60,7 @@ discard block |
||
| 60 | 60 | ); |
| 61 | 61 | |
| 62 | 62 | $numRows = count($statisticsRows); |
| 63 | - $statisticsRows = array_map(function ($row) use ($numRows) { |
|
| 63 | + $statisticsRows = array_map(function($row) use ($numRows) { |
|
| 64 | 64 | $row['percent'] = $row['count'] * 100 / $numRows; |
| 65 | 65 | |
| 66 | 66 | return $row; |
@@ -106,9 +106,9 @@ discard block |
||
| 106 | 106 | */ |
| 107 | 107 | protected function getTopKeyWordsWithOrWithoutHits($rootPageId, $days = 30, $limit, $withoutHits) |
| 108 | 108 | { |
| 109 | - $rootPageId = (int) $rootPageId; |
|
| 110 | - $limit = (int) $limit; |
|
| 111 | - $withoutHits = (bool) $withoutHits; |
|
| 109 | + $rootPageId = (int)$rootPageId; |
|
| 110 | + $limit = (int)$limit; |
|
| 111 | + $withoutHits = (bool)$withoutHits; |
|
| 112 | 112 | |
| 113 | 113 | $now = time(); |
| 114 | 114 | $timeStart = $now - 86400 * intval($days); // 86400 seconds/day |