| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Code Lines | 8 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 8 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php namespace JobApis\JobsToMail\Jobs\Searches; |
||
| 28 | 2 | public function handle(SearchRepositoryInterface $searches) |
|
| 29 | { |
||
| 30 | 2 | if ($searches->delete($this->searchId)) { |
|
| 31 | 1 | return new FlashMessage( |
|
| 32 | 1 | 'alert-success', |
|
| 33 | 1 | 'You will no longer receive emails for this search.' |
|
| 34 | ); |
||
| 35 | } |
||
| 36 | 1 | return new FlashMessage( |
|
| 37 | 1 | 'alert-danger', |
|
| 38 | 1 | 'We couldn\'t unsubscribe you. Please try again later or contact us.' |
|
| 39 | ); |
||
| 40 | } |
||
| 41 | } |
||
| 42 |
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.