| Conditions | 3 |
| Paths | 3 |
| Total Lines | 17 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 0 |
| CRAP Score | 12 |
| Changes | 0 | ||
| 1 | <?php |
||
| 30 | public function run( |
||
| 31 | string $user, |
||
| 32 | string $organization |
||
| 33 | ) |
||
| 34 | { |
||
| 35 | if (null === ($user = $this->findUser($user))) { |
||
| 36 | return $this->handleNotFoundResponse(); |
||
| 37 | } |
||
| 38 | |||
| 39 | if (null === ($organization = $this->findOrganization($organization))) { |
||
| 40 | return $this->handleNotFoundResponse(); |
||
| 41 | } |
||
| 42 | |||
| 43 | return $this->runInternal( |
||
| 44 | $organization->getUsers()->findOrCreate($user) |
||
| 45 | ); |
||
| 46 | } |
||
| 47 | |||
| 58 |
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.