Skip to content

Commit ba5b792

Browse files
committed
doc block fixes
1 parent 58e001c commit ba5b792

13 files changed

+22
-16
lines changed

src/Result/Cgi/FailureInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* This interface represents a failure. Any result implementing this interface will
77
* be treated as a failure.
88
*
9-
* @package PhpSchool\PhpWorkshop\Result
109
* @author Aydin Hassan <aydin@hotmail.co.uk>
1110
*/
1211
interface FailureInterface extends ResultInterface

src/Result/Cgi/GenericFailure.php

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public static function fromRequestAndReason(RequestInterface $request, $reason)
4747
/**
4848
* Static constructor to create from a `PhpSchool\PhpWorkshop\Exception\CodeExecutionException` exception.
4949
*
50-
* @param RequestInterface $request The request that caused the failure
50+
* @param RequestInterface $request The request that caused the failure.
5151
* @param CodeExecutionException $e The exception.
5252
* @return static The result.
5353
*/
@@ -57,6 +57,8 @@ public static function fromRequestAndCodeExecutionFailure(RequestInterface $requ
5757
}
5858

5959
/**
60+
* Get the request that caused the failure.
61+
*
6062
* @return RequestInterface
6163
*/
6264
public function getRequest()

src/Result/Cgi/RequestFailure.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ public function __construct(
6060
}
6161

6262
/**
63-
* Get the request object associated with this failure.
63+
* Get the request that caused the failure.
6464
*
6565
* @return RequestInterface
6666
*/

src/Result/Cgi/ResultInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
interface ResultInterface extends \PhpSchool\PhpWorkshop\Result\ResultInterface
1111
{
1212
/**
13+
* Get the request associated with this result.
14+
*
1315
* @return RequestInterface
1416
*/
1517
public function getRequest();

src/Result/Cgi/Success.php

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,8 @@
66
use Psr\Http\Message\RequestInterface;
77

88
/**
9-
* Default implementation of `PhpSchool\PhpWorkshop\Result\SuccessInterface`.
9+
* Default implementation of `PhpSchool\PhpWorkshop\Result\Cgi\SuccessInterface`.
1010
*
11-
* @package PhpSchool\PhpWorkshop
1211
* @author Aydin Hassan <aydin@hotmail.co.uk>
1312
*/
1413
class Success implements SuccessInterface
@@ -24,7 +23,7 @@ class Success implements SuccessInterface
2423
private $name = 'CGI Program Runner';
2524

2625
/**
27-
* @param RequestInterface $request The request that caused the failure.
26+
* @param RequestInterface $request The request for this success.
2827
*/
2928
public function __construct(RequestInterface $request)
3029
{
@@ -42,6 +41,8 @@ public function getCheckName()
4241
}
4342

4443
/**
44+
* Get the request for this success.
45+
*
4546
* @return RequestInterface
4647
*/
4748
public function getRequest()

src/Result/Cgi/SuccessInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* This interface represents a success. Any result implementing this interface will
77
* be treated as a success.
88
*
9-
* @package PhpSchool\PhpWorkshop\Result
109
* @author Aydin Hassan <aydin@hotmail.co.uk>
1110
*/
1211
interface SuccessInterface extends ResultInterface

src/Result/Cli/FailureInterface.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
* This interface represents a failure. Any result implementing this interface will
77
* be treated as a failure.
88
*
9-
* @package PhpSchool\PhpWorkshop\Result
109
* @author Aydin Hassan <aydin@hotmail.co.uk>
1110
*/
1211
interface FailureInterface extends ResultInterface

src/Result/Cli/GenericFailure.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ class GenericFailure extends Failure implements FailureInterface
2323
private static $name = 'CLI Program Runner';
2424

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

src/Result/Cli/RequestFailure.php

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ class RequestFailure implements FailureInterface
2929
private $actualOutput;
3030

3131
/**
32-
* @param ArrayObject $args
32+
* @param ArrayObject $args The arguments that caused the failure.
3333
* @param string $expectedOutput The expected output.
3434
* @param string $actualOutput The actual output.
3535
*/
@@ -43,7 +43,7 @@ public function __construct(ArrayObject $args, $expectedOutput, $actualOutput)
4343
/**
4444
* Named constructor, for added code legibility.
4545
*
46-
* @param ArrayObject $args
46+
* @param ArrayObject $args The arguments that caused the failure.
4747
* @param string $expectedOutput The expected result.
4848
* @param string $actualOutput The actual output.
4949
* @return static The result.
@@ -54,6 +54,8 @@ public static function fromArgsAndOutput(ArrayObject $args, $expectedOutput, $ac
5454
}
5555

5656
/**
57+
* Get the arguments that caused the failure.
58+
*
5759
* @return ArrayObject
5860
*/
5961
public function getArgs()

src/Result/Cli/ResultInterface.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@
1010
interface ResultInterface extends \PhpSchool\PhpWorkshop\Result\ResultInterface
1111
{
1212
/**
13+
* Get the arguments associated with this result.
14+
*
1315
* @return ArrayObject
1416
*/
1517
public function getArgs();

0 commit comments

Comments
 (0)