| Conditions | 1 |
| Paths | 1 |
| Total Lines | 15 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php namespace App\LaravelRestCms\Seo; |
||
| 21 | public function transform(BaseModel $seo) |
||
| 22 | { |
||
| 23 | return [ |
||
| 24 | 'id' => (int) $seo->id, |
||
| 25 | 'title' => $seo->title, |
||
| 26 | 'keywords' => $seo->keywords, |
||
| 27 | 'description' => $seo->description, |
||
| 28 | 'og_title' => $seo->og_title, |
||
| 29 | 'og_description' => $seo->og_description, |
||
| 30 | 'og_image' => $seo->og_image, |
||
| 31 | 'og_type' => $seo->og_type, |
||
| 32 | 'fb_app_id' => $seo->fb_app_id, |
||
| 33 | 'meta' => $seo->meta, |
||
| 34 | ]; |
||
| 35 | } |
||
| 36 | } |
||
| 37 |
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.