| 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; |
||
| 20 | public function transform(BaseModel $seo) |
||
| 21 | { |
||
| 22 | return [ |
||
| 23 | 'id' => (int) $seo->id, |
||
|
|
|||
| 24 | 'title' => $seo->title, |
||
| 25 | 'keywords' => $seo->keywords, |
||
| 26 | 'description' => $seo->description, |
||
| 27 | 'og_title' => $seo->og_title, |
||
| 28 | 'og_description' => $seo->og_description, |
||
| 29 | 'og_image' => $seo->og_image, |
||
| 30 | 'og_type' => $seo->og_type, |
||
| 31 | 'fb_app_id' => $seo->fb_app_id, |
||
| 32 | 'meta' => $seo->meta, |
||
| 33 | ]; |
||
| 34 | } |
||
| 35 | } |
||
| 36 |
Since your code implements the magic getter
_get, this function will be called for any read access on an undefined variable. You can add the@propertyannotation to your class or interface to document the existence of this variable.If the property has read access only, you can use the @property-read annotation instead.
Of course, you may also just have mistyped another name, in which case you should fix the error.
See also the PhpDoc documentation for @property.