Passed
Pull Request — master (#940)
by butschster
12:12 queued 02:58
created
src/Framework/Bootloader/Attributes/AttributesBootloader.php 2 patches
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -47,7 +47,8 @@  discard block
 block discarded – undo
47 47
 
48 48
     private function initInstantiator(AttributesConfig $config): InstantiatorInterface
49 49
     {
50
-        if ($config->isAnnotationsReaderEnabled()) {
50
+        if ($config->isAnnotationsReaderEnabled())
51
+        {
51 52
             return new Facade();
52 53
         }
53 54
 
@@ -62,15 +63,18 @@  discard block
 block discarded – undo
62 63
     ): ReaderInterface {
63 64
         $reader = new AttributeReader($instantiator);
64 65
 
65
-        if ($container->has(CacheInterface::class)) {
66
+        if ($container->has(CacheInterface::class))
67
+        {
66 68
             $cache = $container->get(CacheInterface::class);
67 69
             \assert($cache instanceof CacheInterface);
68 70
 
69 71
             $reader = new Psr16CachedReader($reader, $cache);
70 72
         }
71 73
 
72
-        if ($config->isAnnotationsReaderEnabled()) {
73
-            if (!\interface_exists(DoctrineReaderInterface::class)) {
74
+        if ($config->isAnnotationsReaderEnabled())
75
+        {
76
+            if (!\interface_exists(DoctrineReaderInterface::class))
77
+            {
74 78
                 throw new InitializationException(
75 79
                     'Doctrine annotations reader is not available, please install "doctrine/annotations" package',
76 80
                 );
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@  discard block
 block discarded – undo
29 29
 
30 30
     public function __construct(
31 31
         private readonly ConfiguratorInterface $config,
32
-    ) {
32
+    ){
33 33
     }
34 34
 
35 35
     public function init(): void
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
 
47 47
     private function initInstantiator(AttributesConfig $config): InstantiatorInterface
48 48
     {
49
-        if ($config->isAnnotationsReaderEnabled()) {
49
+        if ($config->isAnnotationsReaderEnabled()){
50 50
             return new Facade();
51 51
         }
52 52
 
@@ -61,15 +61,15 @@  discard block
 block discarded – undo
61 61
     ): ReaderInterface {
62 62
         $reader = new AttributeReader($instantiator);
63 63
 
64
-        if ($container->has(CacheInterface::class)) {
64
+        if ($container->has(CacheInterface::class)){
65 65
             $cache = $container->get(CacheInterface::class);
66 66
             \assert($cache instanceof CacheInterface);
67 67
 
68 68
             $reader = new Psr16CachedReader($reader, $cache);
69 69
         }
70 70
 
71
-        if ($config->isAnnotationsReaderEnabled()) {
72
-            if (!\interface_exists(DoctrineReaderInterface::class)) {
71
+        if ($config->isAnnotationsReaderEnabled()){
72
+            if (!\interface_exists(DoctrineReaderInterface::class)){
73 73
                 throw new InitializationException(
74 74
                     'Doctrine annotations reader is not available, please install "doctrine/annotations" package',
75 75
                 );
Please login to merge, or discard this patch.