Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
TomasVotruba committed Jul 26, 2023
1 parent eba4517 commit 00ebc7b
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions src/Collector.php
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@ public function incrementLogicalLines(): void

public function currentClassReset(): void
{
if ($this->currentClassLines > 0) {
// if ($this->currentClassLines > 0) {
$this->addToArray('class lines', $this->currentClassLines);
}
//}

$this->currentClassLines = 0;
$this->currentNumberOfMethods = 0;
Expand Down
12 changes: 6 additions & 6 deletions tests/unit/AnalyserTest.php
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ public function test(): void
'files' => 1,
'loc' => 80,
'lloc' => 30,
'llocClasses' => 22,
'llocClasses' => 28,
'llocFunctions' => 1,
'llocGlobal' => 1,
'cloc' => 7,
Expand Down Expand Up @@ -58,11 +58,11 @@ public function test(): void
'namespaces' => 1,
'ncloc' => 73,
'classLlocMin' => 0,
'classLlocAvg' => 7.3,
'classLlocMax' => 22,
'methodLlocMin' => 4,
'methodLlocAvg' => 5.6,
'methodLlocMax' => 7,
'classLlocAvg' => 4.0,
'classLlocMax' => 28,
'methodLlocMin' => 6,
'methodLlocAvg' => 7.3,
'methodLlocMax' => 9,
'averageMethodsPerClass' => 1.3,
'minimumMethodsPerClass' => 0,
'maximumMethodsPerClass' => 4,
Expand Down

0 comments on commit 00ebc7b

Please sign in to comment.