Skip to content

Commit 6f1fdf6

Browse files
GrotaxCopilot
andcommitted
Small code fixes
Co-authored-by: Copilot <[email protected]>
1 parent 896ac77 commit 6f1fdf6

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/FeedIo/Reader/Result/UpdateStats.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -142,15 +142,15 @@ public function getAverageInterval(): int
142142
}
143143

144144
// some feeds could have very old historic
145-
// articles so eliminate them with statistic
145+
// articles so eliminate them using statistical methods
146146
$q1 = $intervals[(int) floor($count * 0.25)];
147147
$q3 = $intervals[(int) floor($count * 0.75)];
148148
$iqr = $q3 - $q1;
149149

150150
$lower_bound = $q1 - 1.5 * $iqr;
151151
$upper_bound = $q3 + 1.5 * $iqr;
152152

153-
$result = array_filter($intervals, function($value) use ($lower_bound, $upper_bound) {
153+
$result = array_filter($intervals, function(int $value) use ($lower_bound, $upper_bound) {
154154
return $value >= $lower_bound && $value <= $upper_bound;
155155
});
156156

0 commit comments

Comments
 (0)