| Conditions | 2 |
| Paths | 2 |
| Total Lines | 8 |
| Code Lines | 4 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 24 | public function getConfiguration(): AvataxConfigurationInterface |
||
| 25 | { |
||
| 26 | $configuration = $this->avataxConfigurationRepository->findOneByEnabled(); |
||
| 27 | if (!$configuration instanceof AvataxConfigurationInterface) { |
||
| 28 | throw new NotFoundHttpException(sprintf('The "%s" has not been found', AvataxConfigurationInterface::class)); |
||
| 29 | } |
||
| 30 | |||
| 31 | return $configuration; |
||
| 32 | } |
||
| 34 |