Skip to content

Commit 312b7a6

Browse files
authored
Merge pull request #143 from php-school/scrutinizer-patch-1
Scrutinizer Auto-Fixes
2 parents 652321a + 99112ba commit 312b7a6

17 files changed

+2
-23
lines changed

app/config.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@
4545
use PhpSchool\PhpWorkshop\Result\Cli\RequestFailure as CliRequestFailure;
4646
use PhpSchool\PhpWorkshop\Result\Failure;
4747
use PhpSchool\PhpWorkshop\Result\FunctionRequirementsFailure;
48-
use PhpSchool\PhpWorkshop\Result\StdOutFailure;
4948
use PhpSchool\PhpWorkshop\ResultAggregator;
5049
use PhpSchool\PhpWorkshop\ResultRenderer\CgiResultRenderer;
5150
use PhpSchool\PhpWorkshop\ResultRenderer\CliResultRenderer;

src/ExerciseRunner/CliRunner.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,6 @@
1919
use PhpSchool\PhpWorkshop\Result\Cli\GenericFailure;
2020
use PhpSchool\PhpWorkshop\Result\Cli\Success;
2121
use PhpSchool\PhpWorkshop\Result\ResultInterface;
22-
use PhpSchool\PhpWorkshop\Result\StdOutFailure;
2322
use PhpSchool\PhpWorkshop\Utils\ArrayObject;
2423
use Symfony\Component\Process\Process;
2524

src/Output/StdOutput.php

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

55
use Colors\Color;
66
use PhpSchool\CliMenu\Terminal\TerminalInterface;
7-
use Psr\Http\Message\RequestInterface;
87

98
/**
109
* Class StdOutput

src/Result/Cgi/GenericFailure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class GenericFailure extends Failure implements FailureInterface
2424

2525
/**
2626
* @param RequestInterface $request The request that caused the failure.
27-
* @param null $reason
27+
* @param string|null $reason
2828
*/
2929
public function __construct(RequestInterface $request, $reason = null)
3030
{

src/Result/Cli/GenericFailure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ class GenericFailure extends Failure implements FailureInterface
2424

2525
/**
2626
* @param ArrayObject $args The arguments that caused the failure.
27-
* @param null $reason The reason (if any) of the failure.
27+
* @param string|null $reason The reason (if any) of the failure.
2828
*/
2929
public function __construct(ArrayObject $args, $reason = null)
3030
{

src/ResultRenderer/CgiResultRenderer.php

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

33
namespace PhpSchool\PhpWorkshop\ResultRenderer;
44

5-
use PhpSchool\PhpWorkshop\Result\CgiOutRequestFailure;
65
use PhpSchool\PhpWorkshop\Result\Cgi\CgiResult;
76
use PhpSchool\PhpWorkshop\Result\Cgi\FailureInterface;
87
use PhpSchool\PhpWorkshop\Result\Cgi\ResultInterface;

test/Asset/CgiExerciseImpl.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22

33
namespace PhpSchool\PhpWorkshopTest\Asset;
44

5-
use PhpSchool\PhpWorkshop\Check\ComposerCheck;
65
use PhpSchool\PhpWorkshop\Exercise\CgiExercise;
7-
use PhpSchool\PhpWorkshop\Exercise\CliExercise;
86
use PhpSchool\PhpWorkshop\Exercise\ExerciseInterface;
97
use PhpSchool\PhpWorkshop\Exercise\ExerciseType;
10-
use PhpSchool\PhpWorkshop\ExerciseCheck\ComposerExerciseCheck;
118
use PhpSchool\PhpWorkshop\ExerciseDispatcher;
129
use Psr\Http\Message\RequestInterface;
1310

test/Asset/CliExerciseImpl.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,9 @@
22

33
namespace PhpSchool\PhpWorkshopTest\Asset;
44

5-
use PhpSchool\PhpWorkshop\Check\ComposerCheck;
65
use PhpSchool\PhpWorkshop\Exercise\CliExercise;
76
use PhpSchool\PhpWorkshop\Exercise\ExerciseInterface;
87
use PhpSchool\PhpWorkshop\Exercise\ExerciseType;
9-
use PhpSchool\PhpWorkshop\ExerciseCheck\ComposerExerciseCheck;
108
use PhpSchool\PhpWorkshop\ExerciseDispatcher;
119

1210
/**

test/Command/PrintCommandTest.php

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,9 @@
22

33
namespace PhpSchool\PhpWorkshop\Command;
44

5-
use Colors\Color;
65
use PhpSchool\PhpWorkshop\Exercise\ExerciseType;
76
use PhpSchool\PhpWorkshopTest\Asset\CliExerciseInterface;
8-
use PhpSchool\PhpWorkshopTest\Asset\ComposerExercise;
97
use PHPUnit_Framework_TestCase;
10-
use PhpSchool\PhpWorkshop\Exercise\ExerciseInterface;
118
use PhpSchool\PhpWorkshop\ExerciseRepository;
129
use PhpSchool\PhpWorkshop\MarkdownRenderer;
1310
use PhpSchool\PhpWorkshop\Output\OutputInterface;

test/ExerciseRunner/CgiRunnerTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
use PhpSchool\PhpWorkshop\Input\Input;
1515
use PhpSchool\PhpWorkshop\Output\StdOutput;
1616
use PhpSchool\PhpWorkshop\Result\Cgi\RequestFailure;
17-
use PhpSchool\PhpWorkshop\Result\CgiOutRequestFailure;
1817
use PhpSchool\PhpWorkshop\Result\Cgi\CgiResult;
1918
use PhpSchool\PhpWorkshop\Result\Failure;
2019
use PhpSchool\PhpWorkshop\ResultAggregator;

0 commit comments

Comments
 (0)