@@ -51,7 +51,8 @@ discard block |
||
| 51 | 51 | |
| 52 | 52 | private function initInstantiator(AttributesConfig $config): InstantiatorInterface |
| 53 | 53 | { |
| 54 | - if ($config->isAnnotationsReaderEnabled()) { |
|
| 54 | + if ($config->isAnnotationsReaderEnabled()) |
|
| 55 | + { |
|
| 55 | 56 | return new Facade(); |
| 56 | 57 | } |
| 57 | 58 | |
@@ -66,7 +67,8 @@ discard block |
||
| 66 | 67 | ): ReaderInterface { |
| 67 | 68 | $reader = new AttributeReader($instantiator); |
| 68 | 69 | |
| 69 | - if ($config->isCacheEnabled()) { |
|
| 70 | + if ($config->isCacheEnabled()) |
|
| 71 | + { |
|
| 70 | 72 | $provider = $container->get(CacheStorageProviderInterface::class); |
| 71 | 73 | \assert($provider instanceof CacheStorageProviderInterface); |
| 72 | 74 | |
@@ -75,8 +77,10 @@ discard block |
||
| 75 | 77 | |
| 76 | 78 | $supportAnnotations = $config->isAnnotationsReaderEnabled(); |
| 77 | 79 | |
| 78 | - if ($supportAnnotations) { |
|
| 79 | - if (!\interface_exists(DoctrineReaderInterface::class)) { |
|
| 80 | + if ($supportAnnotations) |
|
| 81 | + { |
|
| 82 | + if (!\interface_exists(DoctrineReaderInterface::class)) |
|
| 83 | + { |
|
| 80 | 84 | throw new InitializationException( |
| 81 | 85 | 'Doctrine annotations reader is not available, please install "doctrine/annotations" package', |
| 82 | 86 | ); |