@@ -36,7 +36,8 @@ discard block |
||
36 | 36 | /** |
37 | 37 | * Constructor |
38 | 38 | * |
39 | - * @param $request |
|
39 | + * @param string[] $request |
|
40 | + * @param null|Report $report |
|
40 | 41 | */ |
41 | 42 | public function __construct($request, $report) |
42 | 43 | { |
@@ -133,7 +134,7 @@ discard block |
||
133 | 134 | * Disable this feature by setting the parameter disable_generic_filters to 1 in the API call request. |
134 | 135 | * |
135 | 136 | * @param DataTable $datatable |
136 | - * @return bool |
|
137 | + * @return null|boolean |
|
137 | 138 | */ |
138 | 139 | protected function applyGenericFilters($datatable) |
139 | 140 | { |
@@ -187,6 +188,9 @@ discard block |
||
187 | 188 | return $filterApplied; |
188 | 189 | } |
189 | 190 | |
191 | + /** |
|
192 | + * @param \Piwik\Plugin\Metric[] $metrics |
|
193 | + */ |
|
190 | 194 | public function areProcessedMetricsNeededFor($metrics) |
191 | 195 | { |
192 | 196 | $columnQueryParameters = array( |
@@ -120,7 +120,7 @@ |
||
120 | 120 | * via Common::unsanitizeLabelParameter. |
121 | 121 | * |
122 | 122 | * @param string $originalLabel |
123 | - * @return array |
|
123 | + * @return string[] |
|
124 | 124 | */ |
125 | 125 | private function getLabelVariations($originalLabel) |
126 | 126 | { |
@@ -86,11 +86,17 @@ |
||
86 | 86 | $this->request = $request; |
87 | 87 | } |
88 | 88 | |
89 | + /** |
|
90 | + * @param \Closure $callbackBeforeGenericFilters |
|
91 | + */ |
|
89 | 92 | public function setCallbackBeforeGenericFilters($callbackBeforeGenericFilters) |
90 | 93 | { |
91 | 94 | $this->callbackBeforeGenericFilters = $callbackBeforeGenericFilters; |
92 | 95 | } |
93 | 96 | |
97 | + /** |
|
98 | + * @param \Closure $callbackAfterGenericFilters |
|
99 | + */ |
|
94 | 100 | public function setCallbackAfterGenericFilters($callbackAfterGenericFilters) |
95 | 101 | { |
96 | 102 | $this->callbackAfterGenericFilters = $callbackAfterGenericFilters; |
@@ -57,6 +57,9 @@ discard block |
||
57 | 57 | $this->model = $model; |
58 | 58 | } |
59 | 59 | |
60 | + /** |
|
61 | + * @param integer $idSite |
|
62 | + */ |
|
60 | 63 | public function rememberToInvalidateArchivedReportsLater($idSite, Date $date) |
61 | 64 | { |
62 | 65 | $key = $this->buildRememberArchivedReportId($idSite, $date->toString()); |
@@ -93,6 +96,9 @@ discard block |
||
93 | 96 | return $sitesPerDay; |
94 | 97 | } |
95 | 98 | |
99 | + /** |
|
100 | + * @param string $date |
|
101 | + */ |
|
96 | 102 | private function buildRememberArchivedReportId($idSite, $date) |
97 | 103 | { |
98 | 104 | $id = $this->buildRememberArchivedReportIdForSite($idSite); |
@@ -125,7 +131,7 @@ discard block |
||
125 | 131 | /** |
126 | 132 | * @param $idSites int[] |
127 | 133 | * @param $dates Date[] |
128 | - * @param $period string |
|
134 | + * @param string|boolean $period string |
|
129 | 135 | * @param $segment Segment |
130 | 136 | * @param bool $cascadeDown |
131 | 137 | * @return InvalidationResult |
@@ -304,7 +310,7 @@ discard block |
||
304 | 310 | |
305 | 311 | /** |
306 | 312 | * @param array $idSites |
307 | - * @param array $yearMonths |
|
313 | + * @param integer[] $yearMonths |
|
308 | 314 | */ |
309 | 315 | private function markInvalidatedArchivesForReprocessAndPurge(array $idSites, $yearMonths) |
310 | 316 | { |
@@ -154,6 +154,9 @@ discard block |
||
154 | 154 | return $deletedRowCount; |
155 | 155 | } |
156 | 156 | |
157 | + /** |
|
158 | + * @param string $purgeArchivesOlderThan |
|
159 | + */ |
|
157 | 160 | protected function getOutdatedArchiveIds(Date $date, $purgeArchivesOlderThan) |
158 | 161 | { |
159 | 162 | $archiveTable = ArchiveTableCreator::getNumericTable($date); |
@@ -219,7 +222,7 @@ discard block |
||
219 | 222 | /** |
220 | 223 | * Returns a timestamp indicating outdated archives older than this timestamp (processed before) can be purged. |
221 | 224 | * |
222 | - * @return int|bool Outdated archives older than this timestamp should be purged |
|
225 | + * @return string Outdated archives older than this timestamp should be purged |
|
223 | 226 | */ |
224 | 227 | protected function getOldestTemporaryArchiveToKeepThreshold() |
225 | 228 | { |
@@ -382,7 +382,7 @@ discard block |
||
382 | 382 | * Note: public only for use in closure in PHP 5.3. |
383 | 383 | * |
384 | 384 | * @param $table |
385 | - * @return \Piwik\Period |
|
385 | + * @return boolean |
|
386 | 386 | */ |
387 | 387 | public function areColumnsNotAlreadyRenamed($table) |
388 | 388 | { |
@@ -538,6 +538,9 @@ discard block |
||
538 | 538 | } |
539 | 539 | } |
540 | 540 | |
541 | + /** |
|
542 | + * @param boolean|string $operationToApply |
|
543 | + */ |
|
541 | 544 | protected function getAggregatedNumericMetrics($columns, $operationToApply) |
542 | 545 | { |
543 | 546 | if (!is_array($columns)) { |
@@ -8,12 +8,10 @@ |
||
8 | 8 | */ |
9 | 9 | namespace Piwik\ArchiveProcessor; |
10 | 10 | |
11 | -use Piwik\Archive; |
|
12 | 11 | use Piwik\Cache; |
13 | 12 | use Piwik\Config; |
14 | 13 | use Piwik\DataAccess\ArchiveSelector; |
15 | 14 | use Piwik\Date; |
16 | -use Piwik\Period; |
|
17 | 15 | use Piwik\Piwik; |
18 | 16 | |
19 | 17 | /** |
@@ -217,6 +217,9 @@ |
||
217 | 217 | return (bool)Config::getInstance()->General['enable_browser_archiving_triggering']; |
218 | 218 | } |
219 | 219 | |
220 | + /** |
|
221 | + * @param boolean $enabled |
|
222 | + */ |
|
220 | 223 | public static function setBrowserTriggerArchiving($enabled) |
221 | 224 | { |
222 | 225 | if (!is_bool($enabled)) { |
@@ -63,7 +63,7 @@ |
||
63 | 63 | } |
64 | 64 | |
65 | 65 | /** |
66 | - * @param UIAsset $uiAsset |
|
66 | + * @param string $location |
|
67 | 67 | * @return boolean |
68 | 68 | */ |
69 | 69 | private function assetAlreadyInCatalog($location) |