@@ -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 | } |
@@ -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. |
@@ -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. |
@@ -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. |