Skip to content
This repository was archived by the owner on May 6, 2025. It is now read-only.

Commit 9856cee

Browse files
committed
CS
1 parent 24e0d09 commit 9856cee

File tree

10 files changed

+22
-24
lines changed

10 files changed

+22
-24
lines changed

src/DetectorFactory.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -292,6 +292,7 @@ private function getViolationFilter(Configuration $configuration)
292292
/**
293293
* @param Configuration $configuration
294294
* @param OutputInterface $output
295+
*
295296
* @return ConsoleOutputRenderer|Violation\Renderer\Html\Renderer
296297
*/
297298
private function getRenderer(Configuration $configuration, OutputInterface $output)

src/Finder/DeprecationFinderFactory.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,4 +19,3 @@ public function createFinder()
1919
return $finder;
2020
}
2121
}
22-

src/Finder/ParsedPhpFileFinder.php

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
use SensioLabs\DeprecationDetector\Console\Output\VerboseProgressOutput;
66
use SensioLabs\DeprecationDetector\FileInfo\PhpFileInfo;
77
use SensioLabs\DeprecationDetector\Parser\ParserInterface;
8-
use Symfony\Component\Finder\Finder;
98
use PhpParser\Error;
109

1110
class ParsedPhpFileFinder
@@ -26,9 +25,9 @@ class ParsedPhpFileFinder
2625
private $finderFactory;
2726

2827
/**
29-
* @param ParserInterface $parser
30-
* @param VerboseProgressOutput $progressOutput
31-
* @param FinderFactoryInterface $finderFactory
28+
* @param ParserInterface $parser
29+
* @param VerboseProgressOutput $progressOutput
30+
* @param FinderFactoryInterface $finderFactory
3231
*/
3332
public function __construct(ParserInterface $parser, VerboseProgressOutput $progressOutput, FinderFactoryInterface $finderFactory)
3433
{
@@ -39,6 +38,7 @@ public function __construct(ParserInterface $parser, VerboseProgressOutput $prog
3938

4039
/**
4140
* @param string $path
41+
*
4242
* @return Result
4343
*/
4444
public function parsePhpFiles($path)
@@ -66,6 +66,7 @@ public function parsePhpFiles($path)
6666
}
6767

6868
$this->progressOutput->end();
69+
6970
return new Result($parsedFiles, $parserErrors, $fileCount);
7071
}
71-
}
72+
}

src/Finder/Result.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,8 +15,8 @@ class Result
1515

1616
/**
1717
* @param PhpFileInfo[] $files
18-
* @param Error[] $errors
19-
* @param int $fileCount
18+
* @param Error[] $errors
19+
* @param int $fileCount
2020
*/
2121
public function __construct(array $files, array $errors, $fileCount)
2222
{

src/Violation/ViolationDetector.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ public function __construct(
3333
}
3434

3535
/**
36-
* @param RuleSet $ruleSet
37-
* @param PhpFileInfo[] $files
36+
* @param RuleSet $ruleSet
37+
* @param PhpFileInfo[] $files
3838
*
3939
* @return BaseViolation[]
4040
*/

tests/Console/Command/CheckCommandTest.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -90,11 +90,11 @@ public function testCommandWithFilterMethodOption()
9090
}
9191

9292
/**
93-
* Helper method for simplified executing of CheckCommand
93+
* Helper method for simplified executing of CheckCommand.
9494
*
95-
* @param string $sourcePath source argument
96-
* @param string $rulesetPath ruleset argument
97-
* @param array $options Further options as key => value array
95+
* @param string $sourcePath source argument
96+
* @param string $rulesetPath ruleset argument
97+
* @param array $options Further options as key => value array
9898
*/
9999
private function executeCommand($sourcePath, $rulesetPath, array $options = array())
100100
{

tests/FileInfo/Usage/DeprecatedLanguageUsageTest.php

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

33
namespace SensioLabs\DeprecationDetector\Tests\FileInfo\Usage;
44

5-
65
use SensioLabs\DeprecationDetector\FileInfo\Usage\DeprecatedLanguageUsage;
76

87
class DeprecatedLanguageUsageTest extends \PHPUnit_Framework_TestCase

tests/Finder/ResultTest.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ public function testClassIsInitializable()
1616
public function testParsedFiles()
1717
{
1818
$parsedFiles = array(
19-
$this->prophesize('SensioLabs\DeprecationDetector\FileInfo\PhpFileInfo')
19+
$this->prophesize('SensioLabs\DeprecationDetector\FileInfo\PhpFileInfo'),
2020
);
2121

2222
$result = new Result($parsedFiles, array(), 10);
@@ -27,7 +27,7 @@ public function testParsedFiles()
2727
public function testParserErrors()
2828
{
2929
$parserErrors = array(
30-
$this->prophesize('SensioLabs\DeprecationDetector\FileInfo\PhpFileInfo')
30+
$this->prophesize('SensioLabs\DeprecationDetector\FileInfo\PhpFileInfo'),
3131
);
3232

3333
$result = new Result(array(), $parserErrors, 10);

tests/Violation/Renderer/Html/RendererFactoryTest.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
<?php
2+
23
namespace SensioLabs\DeprecationDetector\Tests\Violation\Renderer\Html;
34

45
use PHPUnit_Framework_TestCase;
@@ -7,7 +8,7 @@
78
use Symfony\Component\Filesystem\Filesystem;
89

910
/**
10-
* Class RendererFactoryTest
11+
* Class RendererFactoryTest.
1112
*
1213
* @author Karl Spies <[email protected]>
1314
*/

tests/Violation/Renderer/Html/RendererTest.php

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,24 +5,22 @@
55
use org\bovigo\vfs\vfsStream;
66
use org\bovigo\vfs\vfsStreamDirectory;
77
use PHPUnit_Framework_TestCase;
8-
use Prophecy\Argument;
98
use SensioLabs\DeprecationDetector\Violation\Renderer\Html\Renderer;
109

1110
/**
12-
* Class RendererTest
11+
* Class RendererTest.
1312
*
1413
* @author Karl Spies <[email protected]>
1514
*/
1615
class RendererTest extends PHPUnit_Framework_TestCase
1716
{
18-
1917
/**
20-
* @var vfsStreamDirectory
18+
* @var vfsStreamDirectory
2119
*/
2220
private $root;
2321

2422
/**
25-
* set up test environment
23+
* set up test environment.
2624
*/
2725
public function setUp()
2826
{
@@ -61,5 +59,4 @@ public function testRenderViolations()
6159
$this->assertContains('12', $fileContent);
6260
$this->assertContains('Just a comment', $fileContent);
6361
}
64-
6562
}

0 commit comments

Comments
 (0)