Code Coverage |
||||||||||||||||
Lines |
Branches |
Paths |
Functions and Methods |
Classes and Traits |
||||||||||||
| Total | n/a |
0 / 0 |
n/a |
0 / 0 |
n/a |
0 / 0 |
n/a |
0 / 0 |
CRAP | n/a |
0 / 0 |
|||||
| InvalidUsage | n/a |
0 / 0 |
n/a |
0 / 0 |
n/a |
0 / 0 |
n/a |
0 / 0 |
0 | n/a |
0 / 0 |
|||||
| 1 | <?php |
| 2 | |
| 3 | declare(strict_types=1); |
| 4 | |
| 5 | namespace Celema\Console\Exception; |
| 6 | |
| 7 | use RuntimeException; |
| 8 | |
| 9 | /** |
| 10 | * Reports a command invoked the wrong way, like an unknown option or a |
| 11 | * missing argument. |
| 12 | * |
| 13 | * The runner prints the message and exits with code 2, which tells a |
| 14 | * wrong invocation apart from a failed run. Commands throw it for checks |
| 15 | * of their own, such as options that cannot be combined. |
| 16 | * |
| 17 | * @api |
| 18 | */ |
| 19 | final class InvalidUsage extends RuntimeException {} |
Below are the source code lines that represent each code branch as identified by Xdebug. Please note a branch is not
necessarily coterminous with a line, a line may contain multiple branches and therefore show up more than once.
Please also be aware that some branches may be implicit rather than explicit, e.g. an if statement
always has an else as part of its logical flow even if you didn't write one.