Skip to content

Commit ed9294b

Browse files
karlitschekclaude
andcommitted
fix(stream): satisfy the docblock alignment rule on getDailyCounts
php-cs-fixer wants a multi-line @return description aligned under the description column, which for this signature meant indenting the wrap to column 68. The description belongs in the docblock body instead, so the @return line stays a single type and there is nothing to align. Reproduced and verified with php-cs-fixer 3.95.15, the version CI pins: 1 of 97 files before, 0 of 97 after. Signed-off-by: Frank Karlitschek <karlitschek@users.noreply.github.com> Co-Authored-By: Claude Opus 5 (1M context) <noreply@anthropic.com>
1 parent 7cd6560 commit ed9294b

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

‎lib/Data.php‎

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -405,12 +405,14 @@ private function applyStreamConditions(
405405
* `affecteduser` and a timestamp range, which is exactly the
406406
* `activity_user_time` index.
407407
*
408+
* `counts` is keyed by `Y-m-d` and omits days with no activity, so its size
409+
* tracks real activity rather than the length of the window. `partialBefore`
410+
* is the date from which counts are known to be incomplete, or null.
411+
*
408412
* @param int $from Start of the window as a Unix timestamp, inclusive
409413
* @param int $to End of the window as a Unix timestamp, inclusive
410414
*
411-
* @return array{counts: array<string, int>, partialBefore: ?string} Counts
412-
* keyed by `Y-m-d`, omitting days with no activity, plus the date
413-
* from which counts are known to be incomplete, if any
415+
* @return array{counts: array<string, int>, partialBefore: ?string}
414416
*/
415417
public function getDailyCounts(
416418
UserSettings $userSettings,

0 commit comments

Comments
 (0)