| Total Complexity | 8 |
| Total Lines | 34 |
| Duplicated Lines | 0 % |
| Coverage | 100% |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 10 | trait HasFeatureImage |
||
| 11 | { |
||
| 12 | protected ?ImageManager $featureImageManager = null; |
||
| 13 | |||
| 14 | 1 | protected function createFeatureImageManager(?string $tag = null): ImageManager |
|
| 22 | } |
||
| 23 | |||
| 24 | 17 | public function featureImageManager(?string $tag = null): ImageManager |
|
| 29 | } |
||
| 30 | |||
| 31 | |||
| 32 | 1 | public function featureImageManagerDirectory(?string $tag = null): string |
|
| 33 | { |
||
| 34 | 1 | $class = $this->getMorphClass(); |
|
| 35 | |||
| 36 | 1 | $path = Str::contains($class, '\\') ? class_basename($class) : $class; |
|
| 37 | |||
| 38 | 1 | return base64_encode($path . '-' . $this->getKey()); |
|
| 39 | } |
||
| 40 | |||
| 41 | 3 | public function featureImageKey(?string $tag = null): string |
|
| 44 | } |
||
| 45 | } |
||
| 46 |
This check looks for parameters that have been defined for a function or method, but which are not used in the method body.