Skip to content

Commit 95f7bfc

Browse files
committed
Code cleanup.
1 parent bda527f commit 95f7bfc

File tree

5 files changed

+7
-4
lines changed

5 files changed

+7
-4
lines changed

src/PHPSemVerChecker/Console/Command/CompareCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
7878
$analyzer = new Analyzer();
7979
$report = $analyzer->analyze($registryBefore, $registryAfter);
8080

81-
$reporter = new Reporter($report, $input);
81+
$reporter = new Reporter($report);
8282
$reporter->setFullPath($input->getOption('full-path'));
8383
$reporter->output($output);
8484

src/PHPSemVerChecker/Filter/SourceFilter.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,7 @@ class SourceFilter
77
/**
88
* @param array $filesBefore
99
* @param array $filesAfter
10+
* @return int
1011
*/
1112
public function filter(array &$filesBefore, array &$filesAfter)
1213
{

src/PHPSemVerChecker/Operation/ClassAdded.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@
44

55
use PhpParser\Node\Stmt\Class_;
66
use PHPSemVerChecker\Node\Statement\Class_ as PClass;
7-
use PHPSemVerChecker\SemanticVersioning\Level;
87

98
class ClassAdded extends Operation {
109
/**

src/PHPSemVerChecker/Operation/ClassMethodRemoved.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
namespace PHPSemVerChecker\Operation;
44

55
use PhpParser\Node\Stmt;
6-
use PhpParser\Node\Stmt\Class_;
76
use PhpParser\Node\Stmt\ClassMethod;
87
use PHPSemVerChecker\Node\Statement\ClassMethod as PClassMethod;
98

src/PHPSemVerChecker/Operation/Visibility.php

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ public static function getMapping()
2020
}
2121

2222
/**
23-
* @param $visibility
23+
* @param int $visibility
2424
* @return int
2525
*/
2626
public static function get($visibility)
@@ -44,6 +44,10 @@ public static function getForContext(Stmt $context)
4444
}
4545
}
4646

47+
/**
48+
* @param int $visibility
49+
* @return string
50+
*/
4751
public static function toString($visibility)
4852
{
4953
if ($visibility === Class_::MODIFIER_PUBLIC) {

0 commit comments

Comments
 (0)