| Total Complexity | 5 |
| Total Lines | 33 |
| Duplicated Lines | 0 % |
| Coverage | 0% |
| Changes | 0 | ||
| 1 | <?php |
||
| 12 | abstract class TaxonomyRegistrationModule extends Module implements ModuleInterface |
||
| 13 | { |
||
| 14 | use TargetsInitHook; |
||
| 15 | |||
| 16 | public function hook(): void |
||
| 17 | { |
||
| 18 | $this->targetInitHook(); |
||
| 19 | } |
||
| 20 | |||
| 21 | protected function doInitAction(): void |
||
| 24 | } |
||
| 25 | |||
| 26 | protected function registerTaxonomies(): void |
||
| 27 | { |
||
| 28 | $this->taxonomyRegistrar()->registerMany(...$this->taxonomies()); |
||
| 29 | } |
||
| 30 | |||
| 31 | protected function taxonomyRegistrar(): TaxonomyRegistrarInterface |
||
| 32 | { |
||
| 33 | return new TaxonomyRegistrar($this->optionHandlers()); |
||
|
|
|||
| 34 | } |
||
| 35 | |||
| 36 | protected function optionHandlers(): ?TaxonomyOptionHandlerCollectionInterface |
||
| 39 | } |
||
| 40 | |||
| 41 | /** |
||
| 42 | * @return TaxonomyInterface[] |
||
| 43 | */ |
||
| 44 | abstract protected function taxonomies(): array; |
||
| 45 | } |
||
| 46 |
This check looks for function or method calls that always return null and whose return value is used.
The method
getObject()can return nothing but null, so it makes no sense to use the return value.The reason is most likely that a function or method is imcomplete or has been reduced for debug purposes.