@@ -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,9 +77,11 @@ discard block |
||
75 | 77 | |
76 | 78 | $supportAnnotations = $config->isAnnotationsReaderEnabled(); |
77 | 79 | |
78 | - if ($supportAnnotations) { |
|
80 | + if ($supportAnnotations) |
|
81 | + { |
|
79 | 82 | /** @psalm-suppress UndefinedClass */ |
80 | - if (!\interface_exists(DoctrineReaderInterface::class)) { |
|
83 | + if (!\interface_exists(DoctrineReaderInterface::class)) |
|
84 | + { |
|
81 | 85 | throw new InitializationException( |
82 | 86 | 'Doctrine annotations reader is not available, please install "doctrine/annotations" package', |
83 | 87 | ); |