@@ -12,9 +12,6 @@ |
||
12 | 12 | namespace spec\LIN3S\CS\Error; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use Prophecy\Argument; |
|
16 | -use Symfony\Component\Process\Exception\ProcessFailedException; |
|
17 | -use Symfony\Component\Process\Process; |
|
18 | 15 | |
19 | 16 | /** |
20 | 17 | * Spec file of Error class. |
@@ -12,9 +12,6 @@ |
||
12 | 12 | namespace spec\LIN3S\CS\Exception; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use Prophecy\Argument; |
|
16 | -use Symfony\Component\Process\Exception\ProcessFailedException; |
|
17 | -use Symfony\Component\Process\Process; |
|
18 | 15 | |
19 | 16 | /** |
20 | 17 | * Spec file of CheckFail exception class. |
@@ -12,9 +12,6 @@ |
||
12 | 12 | namespace spec\LIN3S\CS\Exception; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use Prophecy\Argument; |
|
16 | -use Symfony\Component\Process\Exception\ProcessFailedException; |
|
17 | -use Symfony\Component\Process\Process; |
|
18 | 15 | |
19 | 16 | /** |
20 | 17 | * Spec file of ToolUnavailable exception class. |
@@ -12,9 +12,6 @@ |
||
12 | 12 | namespace spec\LIN3S\CS\Git; |
13 | 13 | |
14 | 14 | use PhpSpec\ObjectBehavior; |
15 | -use Prophecy\Argument; |
|
16 | -use Symfony\Component\Process\Exception\ProcessFailedException; |
|
17 | -use Symfony\Component\Process\Process; |
|
18 | 15 | |
19 | 16 | /** |
20 | 17 | * Spec file of Git class. |
@@ -14,7 +14,6 @@ |
||
14 | 14 | use LIN3S\CS\Checker\Composer; |
15 | 15 | use LIN3S\CS\Checker\EsLint; |
16 | 16 | use LIN3S\CS\Checker\PhpCsFixer; |
17 | -use LIN3S\CS\Checker\PhpFormatter; |
|
18 | 17 | use LIN3S\CS\Checker\Phpmd; |
19 | 18 | use LIN3S\CS\Checker\ScssLint; |
20 | 19 | use LIN3S\CS\Exception\CheckFailException; |
@@ -76,7 +76,7 @@ |
||
76 | 76 | } |
77 | 77 | parent::__construct($name, $version); |
78 | 78 | |
79 | - $rootDirectory = $rootDirectory ?: realpath(__DIR__ . '/../../../../'); |
|
79 | + $rootDirectory = $rootDirectory ? : realpath(__DIR__ . '/../../../../'); |
|
80 | 80 | $this->parameters = Yaml::parse(file_get_contents($rootDirectory . '/.lin3s_cs.yml'))['parameters']; |
81 | 81 | $this->parameters['root_directory'] = $rootDirectory; |
82 | 82 | } |
@@ -100,6 +100,7 @@ |
||
100 | 100 | |
101 | 101 | /** |
102 | 102 | * {@inheritdoc} |
103 | + * @param string $tool |
|
103 | 104 | */ |
104 | 105 | protected static function isAvailable($tool) |
105 | 106 | { |
@@ -86,6 +86,7 @@ |
||
86 | 86 | |
87 | 87 | /** |
88 | 88 | * {@inheritdoc} |
89 | + * @param string $tool |
|
89 | 90 | */ |
90 | 91 | protected static function isAvailable($tool) |
91 | 92 | { |