Skip to content

Commit 16cf288

Browse files
committed
Fix build
1 parent d9a1233 commit 16cf288

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

‎src/Command/AnalyseApplication.php‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,9 @@ private function runAnalyser(
261261
if ($startTime === null) {
262262
throw new ShouldNotHappenException();
263263
}
264+
if ($linesOfCode === null) {
265+
throw new ShouldNotHappenException();
266+
}
264267
$currentTotalMemory = memory_get_peak_usage(true);
265268
$elapsedTime = microtime(true) - $startTime;
266269
$stdOutput->writeLineFormatted(sprintf('--- consumed %s, total %s, took %.2f s, %.3f LoC/s', BytesHelper::bytes($currentTotalMemory - $previousMemory), BytesHelper::bytes($currentTotalMemory), $elapsedTime, $linesOfCode / $elapsedTime));

0 commit comments

Comments
 (0)