Passed
Push — master ( 238aae...0cf343 )
by Kirill
06:02 queued 02:15
created
src/Framework/Bootloader/Database/MigrationsBootloader.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -42,8 +42,8 @@
 block discarded – undo
42 42
         EnvironmentInterface $env,
43 43
         DirectoriesInterface $dirs
44 44
     ): void {
45
-        if (!$dirs->has('migrations')) {
46
-            $dirs->set('migrations', $dirs->get('app') . 'migrations');
45
+        if (!$dirs->has('migrations')){
46
+            $dirs->set('migrations', $dirs->get('app').'migrations');
47 47
         }
48 48
 
49 49
         $config->setDefaults(
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -40,7 +40,8 @@
 block discarded – undo
40 40
         EnvironmentInterface $env,
41 41
         DirectoriesInterface $dirs
42 42
     ): void {
43
-        if (!$dirs->has('migrations')) {
43
+        if (!$dirs->has('migrations'))
44
+        {
44 45
             $dirs->set('migrations', $dirs->get('app') . 'migrations');
45 46
         }
46 47
 
Please login to merge, or discard this patch.
src/Framework/Bootloader/Cycle/SchemaBootloader.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,11 +85,11 @@  discard block
 block discarded – undo
85 85
     public function getGenerators(): array
86 86
     {
87 87
         $result = [];
88
-        foreach ($this->generators as $group) {
89
-            foreach ($group as $generator) {
90
-                if (is_object($generator) && !$generator instanceof Container\Autowire) {
88
+        foreach ($this->generators as $group){
89
+            foreach ($group as $generator){
90
+                if (is_object($generator) && !$generator instanceof Container\Autowire){
91 91
                     $result[] = $generator;
92
-                } else {
92
+                }else{
93 93
                     $result[] = $this->container->get($generator);
94 94
                 }
95 95
             }
@@ -105,7 +105,7 @@  discard block
 block discarded – undo
105 105
     protected function schema(MemoryInterface $memory): SchemaInterface
106 106
     {
107 107
         $schema = $memory->loadData('cycle');
108
-        if (is_null($schema)) {
108
+        if (is_null($schema)){
109 109
             $schema = (new Compiler())->compile(
110 110
                 $this->container->get(Registry::class),
111 111
                 $this->getGenerators()
Please login to merge, or discard this patch.
Braces   +11 added lines, -5 removed lines patch added patch discarded remove patch
@@ -85,11 +85,16 @@  discard block
 block discarded – undo
85 85
     public function getGenerators(): array
86 86
     {
87 87
         $result = [];
88
-        foreach ($this->generators as $group) {
89
-            foreach ($group as $generator) {
90
-                if (is_object($generator) && !$generator instanceof Container\Autowire) {
88
+        foreach ($this->generators as $group)
89
+        {
90
+            foreach ($group as $generator)
91
+            {
92
+                if (is_object($generator) && !$generator instanceof Container\Autowire)
93
+                {
91 94
                     $result[] = $generator;
92
-                } else {
95
+                }
96
+                else
97
+                {
93 98
                     $result[] = $this->container->get($generator);
94 99
                 }
95 100
             }
@@ -105,7 +110,8 @@  discard block
 block discarded – undo
105 110
     protected function schema(MemoryInterface $memory): SchemaInterface
106 111
     {
107 112
         $schema = $memory->loadData('cycle');
108
-        if (is_null($schema)) {
113
+        if (is_null($schema))
114
+        {
109 115
             $schema = (new Compiler())->compile(
110 116
                 $this->container->get(Registry::class),
111 117
                 $this->getGenerators()
Please login to merge, or discard this patch.
src/Framework/Bootloader/Cycle/CycleBootloader.php 2 patches
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $finalizer->addFinalizer(
55 55
             function () use ($container): void {
56
-                if ($container->hasInstance(ORMInterface::class)) {
56
+                if ($container->hasInstance(ORMInterface::class)){
57 57
                     $container->get(ORMInterface::class)->getHeap()->clean();
58 58
                 }
59 59
             }
@@ -75,7 +75,7 @@  discard block
 block discarded – undo
75 75
     ): ORMInterface {
76 76
         $orm = new ORM($factory, $schema);
77 77
 
78
-        if ($promiseFactory !== null) {
78
+        if ($promiseFactory !== null){
79 79
             return $orm->withPromiseFactory($promiseFactory);
80 80
         }
81 81
 
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -53,7 +53,8 @@  discard block
 block discarded – undo
53 53
     {
54 54
         $finalizer->addFinalizer(
55 55
             function () use ($container): void {
56
-                if ($container->hasInstance(ORMInterface::class)) {
56
+                if ($container->hasInstance(ORMInterface::class))
57
+                {
57 58
                     $container->get(ORMInterface::class)->getHeap()->clean();
58 59
                 }
59 60
             }
@@ -75,7 +76,8 @@  discard block
 block discarded – undo
75 76
     ): ORMInterface {
76 77
         $orm = new ORM($factory, $schema);
77 78
 
78
-        if ($promiseFactory !== null) {
79
+        if ($promiseFactory !== null)
80
+        {
79 81
             return $orm->withPromiseFactory($promiseFactory);
80 82
         }
81 83
 
Please login to merge, or discard this patch.
src/Framework/Bootloader/Http/WebsocketsBootloader.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
             ]
57 57
         );
58 58
 
59
-        if ($env->get('RR_BROADCAST_PATH', null) !== null) {
59
+        if ($env->get('RR_BROADCAST_PATH', null) !== null){
60 60
             $http->addMiddleware(WebsocketsMiddleware::class);
61 61
         }
62 62
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,8 @@
 block discarded – undo
56 56
             ]
57 57
         );
58 58
 
59
-        if ($env->get('RR_BROADCAST_PATH', null) !== null) {
59
+        if ($env->get('RR_BROADCAST_PATH', null) !== null)
60
+        {
60 61
             $http->addMiddleware(WebsocketsMiddleware::class);
61 62
         }
62 63
     }
Please login to merge, or discard this patch.
src/Framework/Bootloader/Http/RouterBootloader.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@
 block discarded – undo
57 57
     private function route(ServerRequestInterface $request): RouteInterface
58 58
     {
59 59
         $route = $request->getAttribute(Router::ROUTE_ATTRIBUTE, null);
60
-        if ($route === null) {
60
+        if ($route === null){
61 61
             throw new ScopeException('Unable to resolve Route, invalid request scope');
62 62
         }
63 63
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -57,7 +57,8 @@
 block discarded – undo
57 57
     private function route(ServerRequestInterface $request): RouteInterface
58 58
     {
59 59
         $route = $request->getAttribute(Router::ROUTE_ATTRIBUTE, null);
60
-        if ($route === null) {
60
+        if ($route === null)
61
+        {
61 62
             throw new ScopeException('Unable to resolve Route, invalid request scope');
62 63
         }
63 64
 
Please login to merge, or discard this patch.
src/Framework/Bootloader/Http/SessionBootloader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@
 block discarded – undo
62 62
                 'handler'  => new Autowire(
63 63
                     FileHandler::class,
64 64
                     [
65
-                        'directory' => $directories->get('runtime') . 'session',
65
+                        'directory' => $directories->get('runtime').'session',
66 66
                         'lifetime'  => 86400
67 67
                     ]
68 68
                 )
Please login to merge, or discard this patch.
src/Framework/Bootloader/Http/HttpBootloader.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,7 @@
 block discarded – undo
74 74
 
75 75
         $kernel->addDispatcher($factory->make(SapiDispatcher::class));
76 76
 
77
-        if (class_exists(PSR7Client::class)) {
77
+        if (class_exists(PSR7Client::class)){
78 78
             $kernel->addDispatcher($factory->make(RrDispatcher::class));
79 79
         }
80 80
     }
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -74,7 +74,8 @@
 block discarded – undo
74 74
 
75 75
         $kernel->addDispatcher($factory->make(SapiDispatcher::class));
76 76
 
77
-        if (class_exists(PSR7Client::class)) {
77
+        if (class_exists(PSR7Client::class))
78
+        {
78 79
             $kernel->addDispatcher($factory->make(RrDispatcher::class));
79 80
         }
80 81
     }
Please login to merge, or discard this patch.
src/Framework/Bootloader/Http/CookiesBootloader.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,7 @@
 block discarded – undo
72 72
     private function cookieQueue(ServerRequestInterface $request): CookieQueue
73 73
     {
74 74
         $cookieQueue = $request->getAttribute(CookieQueue::ATTRIBUTE, null);
75
-        if ($cookieQueue === null) {
75
+        if ($cookieQueue === null){
76 76
             throw new ScopeException('Unable to resolve CookieQueue, invalid request scope');
77 77
         }
78 78
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -72,7 +72,8 @@
 block discarded – undo
72 72
     private function cookieQueue(ServerRequestInterface $request): CookieQueue
73 73
     {
74 74
         $cookieQueue = $request->getAttribute(CookieQueue::ATTRIBUTE, null);
75
-        if ($cookieQueue === null) {
75
+        if ($cookieQueue === null)
76
+        {
76 77
             throw new ScopeException('Unable to resolve CookieQueue, invalid request scope');
77 78
         }
78 79
 
Please login to merge, or discard this patch.
src/Framework/Bootloader/DomainBootloader.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     {
39 39
         $core = new InterceptableCore($core);
40 40
 
41
-        foreach (static::INTERCEPTORS as $interceptor) {
41
+        foreach (static::INTERCEPTORS as $interceptor){
42 42
             $core->addInterceptor($container->get($interceptor));
43 43
         }
44 44
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,8 @@
 block discarded – undo
38 38
     {
39 39
         $core = new InterceptableCore($core);
40 40
 
41
-        foreach (static::INTERCEPTORS as $interceptor) {
41
+        foreach (static::INTERCEPTORS as $interceptor)
42
+        {
42 43
             $core->addInterceptor($container->get($interceptor));
43 44
         }
44 45
 
Please login to merge, or discard this patch.