Skip to content

Commit

Permalink
Merge pull request #90 from bmitch/Cleanup
Browse files Browse the repository at this point in the history
Cleanup
  • Loading branch information
bmitch authored Aug 31, 2017
2 parents 5ac52db + 10f1fe8 commit b75ead8
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Empty file removed config/.gitkeep
Empty file.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public function assess(string $filePath): int
$this->countTheLogicalAnds($contents);
$this->countTheLogicalOrs($contents);

if ($this->score == 0) {
if ($this->score === 0) {
$this->score = 1;
}
return $this->score;
Expand All @@ -45,7 +45,7 @@ protected function countTheMethods(string $contents)
{
preg_match("/[ ]function[ ]/", $contents, $matches);
if (isset($matches[0])) {
$this->score ++;
$this->score++;
}
}

Expand Down
1 change: 0 additions & 1 deletion src/Results/ResultCollection.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ public function normalizeAgainst(Config $config): self

/**
* Filter by min score.
*
* @param int $minScore Minimum Score.
* @return \Closure
*/
Expand Down

0 comments on commit b75ead8

Please sign in to comment.