@@ -30,7 +30,7 @@ discard block |
||
30 | 30 | |
31 | 31 | public function __construct( |
32 | 32 | private readonly ConfiguratorInterface $config, |
33 | - ) { |
|
33 | + ){ |
|
34 | 34 | } |
35 | 35 | |
36 | 36 | public function init(EnvironmentInterface $env): void |
@@ -51,7 +51,7 @@ discard block |
||
51 | 51 | |
52 | 52 | private function initInstantiator(AttributesConfig $config): InstantiatorInterface |
53 | 53 | { |
54 | - if ($config->isAnnotationsReaderEnabled()) { |
|
54 | + if ($config->isAnnotationsReaderEnabled()){ |
|
55 | 55 | return new Facade(); |
56 | 56 | } |
57 | 57 | |
@@ -66,7 +66,7 @@ discard block |
||
66 | 66 | ): ReaderInterface { |
67 | 67 | $reader = new AttributeReader($instantiator); |
68 | 68 | |
69 | - if ($config->isCacheEnabled()) { |
|
69 | + if ($config->isCacheEnabled()){ |
|
70 | 70 | $provider = $container->get(CacheStorageProviderInterface::class); |
71 | 71 | \assert($provider instanceof CacheStorageProviderInterface); |
72 | 72 | |
@@ -75,8 +75,8 @@ discard block |
||
75 | 75 | |
76 | 76 | $supportAnnotations = $config->isAnnotationsReaderEnabled(); |
77 | 77 | |
78 | - if ($supportAnnotations) { |
|
79 | - if (!\interface_exists(DoctrineReaderInterface::class)) { |
|
78 | + if ($supportAnnotations){ |
|
79 | + if (!\interface_exists(DoctrineReaderInterface::class)){ |
|
80 | 80 | throw new InitializationException( |
81 | 81 | 'Doctrine annotations reader is not available, please install "doctrine/annotations" package', |
82 | 82 | ); |
@@ -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 | ); |