Passed
Pull Request — master (#1059)
by Maxim
15:44 queued 04:26
created
src/AnnotatedRoutes/tests/App/Controller/PageController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     #[Route('/page/<page>', name: 'page_get', methods: 'GET')]
12 12
     public function get($page): string
13 13
     {
14
-        return 'page-' . $page;
14
+        return 'page-'.$page;
15 15
     }
16 16
 
17 17
     #[Route('/page/about', name: 'page_about', methods: 'GET', priority: -1)]
Please login to merge, or discard this patch.
src/Framework/Bootloader/Attributes/AttributesBootloader.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
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
 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
             return new Facade();
56 56
         }
57 57
 
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
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,9 +75,9 @@  discard block
 block discarded – undo
75 75
 
76 76
         $supportAnnotations = $config->isAnnotationsReaderEnabled();
77 77
 
78
-        if ($supportAnnotations) {
78
+        if ($supportAnnotations){
79 79
             /** @psalm-suppress UndefinedClass */
80
-            if (!\interface_exists(DoctrineReaderInterface::class)) {
80
+            if (!\interface_exists(DoctrineReaderInterface::class)){
81 81
                 throw new InitializationException(
82 82
                     'Doctrine annotations reader is not available, please install "doctrine/annotations" package',
83 83
                 );
Please login to merge, or discard this 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.