| Conditions | 1 |
| Paths | 1 |
| Total Lines | 10 |
| Code Lines | 7 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 6 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 34 | 1 | public function __construct(string $message = 'null', string $shader_method = 'unknown') |
|
| 35 | { |
||
| 36 | 1 | $this->message = sprintf( |
|
| 37 | 1 | "Called invalid method (%s) for %s!\nFile: %s on line: %s", |
|
| 38 | $message, |
||
| 39 | $shader_method, |
||
| 40 | 1 | $this->getFile(), |
|
| 41 | 1 | $this->getLine() |
|
| 42 | ); |
||
| 43 | 1 | } |
|
| 44 | } |
||
| 45 |
This check looks for PHPDoc comments describing methods or function parameters that do not exist on the corresponding method or function.
Consider the following example. The parameter
$italyis not defined by the methodfinale(...).The most likely cause is that the parameter was removed, but the annotation was not.