Skip to content

Commit cd970c2

Browse files
committed
Improve variable name
1 parent 592e6d0 commit cd970c2

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/ReadTime.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -182,20 +182,20 @@ private function wordsCountCJK(): int
182182
*/
183183
private function imageReadTime(): float
184184
{
185-
$second = 0;
185+
$seconds = 0;
186186
$totalImages = $this->imagesCount();
187187

188188
// For the first image add 12 seconds, second image add 11, ...,
189189
// for image 10+ add 3 seconds.
190190
for ($i = 1; $i <= $totalImages; $i++) {
191191
if ($i > 9) {
192-
$second += 3;
192+
$seconds += 3;
193193
} else {
194-
$second += ($this->imageTime - ($i - 1));
194+
$seconds += ($this->imageTime - ($i - 1));
195195
}
196196
}
197197

198-
return $second / 60;
198+
return $seconds / 60;
199199
}
200200

201201
/**

0 commit comments

Comments
 (0)