Passed
Pull Request — master (#1059)
by Maxim
15:44 queued 04:26
created
src/Framework/Bootloader/Attributes/AttributesBootloader.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -51,7 +51,8 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
                 );
Please login to merge, or discard this patch.