| Conditions | 3 |
| Paths | 2 |
| Total Lines | 17 |
| Code Lines | 10 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 61 | public function start(): bool |
||
| 62 | { |
||
| 63 | $master = $this->server->getFilesystem()->findNodeById($this->data['master']); |
||
| 64 | |||
| 65 | if (isset($this->data['id'])) { |
||
| 66 | $this->converter->convert($this->data['id'], $master); |
||
| 67 | } else { |
||
| 68 | foreach ($this->converter->getSlaves($master) as $slave) { |
||
| 69 | $this->async->addJob(self::class, [ |
||
| 70 | 'master' => $this->data['master'], |
||
| 71 | 'id' => $slave['_id'], |
||
| 72 | ]); |
||
| 73 | } |
||
| 74 | } |
||
| 75 | |||
| 76 | return true; |
||
| 77 | } |
||
| 78 | } |
||
| 79 |
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.