| Conditions | 4 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 5 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | public function handle($content) |
||
| 13 | { |
||
| 14 | $subset = lcfirst(class_basename(get_class($this->render->class))); |
||
| 15 | |||
| 16 | if ($subset === 'series' && (! $this->render->class->cascade || starts_with($this->render->class->cascade, 'series.'))) { |
||
| 17 | $content = [$content]; |
||
| 18 | } |
||
| 19 | |||
| 20 | return $this->render->handle($content); |
||
| 21 | } |
||
| 22 | } |
In PHP it is possible to write to properties without declaring them. For example, the following is perfectly valid PHP code:
Generally, it is a good practice to explictly declare properties to avoid accidental typos and provide IDE auto-completion: