Passed
Push — master ( 72934f...dfb406 )
by Aleksei
05:59 queued 26s
created
src/Core/tests/BindingsTest.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,7 +25,8 @@  discard block
 block discarded – undo
25 25
 
26 26
         $this->assertFalse($container->has('abc'));
27 27
 
28
-        $container->bind('abc', function () {
28
+        $container->bind('abc', function ()
29
+        {
29 30
             return 'hello';
30 31
         });
31 32
 
@@ -38,7 +39,8 @@  discard block
 block discarded – undo
38 39
         $container = new Container();
39 40
 
40 41
         $this->assertFalse($container->has('abc'));
41
-        $container->bind('abc', function () {
42
+        $container->bind('abc', function ()
43
+        {
42 44
             return 'hello';
43 45
         });
44 46
 
Please login to merge, or discard this patch.
src/Framework/Session/SessionScope.php 1 patch
Braces   +5 added lines, -2 removed lines patch added patch discarded remove patch
@@ -124,9 +124,12 @@
 block discarded – undo
124 124
      */
125 125
     public function getActiveSession(): SessionInterface
126 126
     {
127
-        try {
127
+        try
128
+        {
128 129
             return $this->container->get(SessionInterface::class);
129
-        } catch (NotFoundExceptionInterface $e) {
130
+        }
131
+        catch (NotFoundExceptionInterface $e)
132
+        {
130 133
             throw new ScopeException(
131 134
                 'Unable to receive active session, invalid request scope',
132 135
                 $e->getCode(),
Please login to merge, or discard this patch.
src/Framework/Cookies/CookieManager.php 1 patch
Braces   +10 added lines, -4 removed lines patch added patch discarded remove patch
@@ -169,9 +169,12 @@  discard block
 block discarded – undo
169 169
      */
170 170
     private function getRequest(): ServerRequestInterface
171 171
     {
172
-        try {
172
+        try
173
+        {
173 174
             return $this->container->get(ServerRequestInterface::class);
174
-        } catch (NotFoundExceptionInterface $e) {
175
+        }
176
+        catch (NotFoundExceptionInterface $e)
177
+        {
175 178
             throw new ScopeException('Unable to receive active request', $e->getCode(), $e);
176 179
         }
177 180
     }
@@ -183,9 +186,12 @@  discard block
 block discarded – undo
183 186
      */
184 187
     private function getCookieQueue(): CookieQueue
185 188
     {
186
-        try {
189
+        try
190
+        {
187 191
             return $this->container->get(CookieQueue::class);
188
-        } catch (NotFoundExceptionInterface $e) {
192
+        }
193
+        catch (NotFoundExceptionInterface $e)
194
+        {
189 195
             throw new ScopeException('Unable to receive cookie queue, invalid request scope', $e->getCode(), $e);
190 196
         }
191 197
     }
Please login to merge, or discard this patch.
src/Framework/Bootloader/Http/CookiesBootloader.php 1 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/Files/tests/DirectoriesTest.php 1 patch
Braces   +8 added lines, -4 removed lines patch added patch discarded remove patch
@@ -137,7 +137,8 @@  discard block
 block discarded – undo
137 137
         $this->assertTrue($files->exists($directory));
138 138
         $this->assertTrue($files->isDirectory($directory));
139 139
 
140
-        foreach ($filenames as $filename) {
140
+        foreach ($filenames as $filename)
141
+        {
141 142
             $this->assertFalse($files->exists($filename));
142 143
             $files->write($filename, 'random-data');
143 144
             $this->assertTrue($files->exists($filename));
@@ -151,7 +152,8 @@  discard block
 block discarded – undo
151 152
         $this->assertFalse($files->exists($directory));
152 153
         $this->assertFalse($files->isDirectory($directory));
153 154
 
154
-        foreach ($filenames as $filename) {
155
+        foreach ($filenames as $filename)
156
+        {
155 157
             $this->assertFalse($files->exists($filename));
156 158
         }
157 159
     }
@@ -182,7 +184,8 @@  discard block
 block discarded – undo
182 184
         $this->assertTrue($files->exists($directory));
183 185
         $this->assertTrue($files->isDirectory($directory));
184 186
 
185
-        foreach ($filenames as $filename) {
187
+        foreach ($filenames as $filename)
188
+        {
186 189
             $this->assertFalse($files->exists($filename));
187 190
             $files->write($filename, 'random-data');
188 191
             $this->assertTrue($files->exists($filename));
@@ -196,7 +199,8 @@  discard block
 block discarded – undo
196 199
         $this->assertFalse($files->exists($directory));
197 200
         $this->assertFalse($files->isDirectory($directory));
198 201
 
199
-        foreach ($filenames as $filename) {
202
+        foreach ($filenames as $filename)
203
+        {
200 204
             $this->assertFalse($files->exists($filename));
201 205
         }
202 206
     }
Please login to merge, or discard this patch.
src/Models/tests/GetEntity.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,8 @@
 block discarded – undo
20 20
 
21 21
     protected static function filter($v)
22 22
     {
23
-        if (is_array($v)) {
23
+        if (is_array($v))
24
+        {
24 25
             throw new RuntimeException("can't be array");
25 26
         }
26 27
 
Please login to merge, or discard this patch.
src/Models/tests/DataEntityTest.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -75,7 +75,8 @@
 block discarded – undo
75 75
         $this->assertEquals([], $entity->getValue());
76 76
 
77 77
         $entity['a'] = 90;
78
-        foreach ($entity as $key => $value) {
78
+        foreach ($entity as $key => $value)
79
+        {
79 80
             $this->assertSame('a', $key);
80 81
             $this->assertSame(90, $value);
81 82
         }
Please login to merge, or discard this patch.
src/Models/tests/NullableEntity.php 1 patch
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,8 @@
 block discarded – undo
20 20
 
21 21
     protected function isNullable(string $field): bool
22 22
     {
23
-        if (parent::isNullable($field)) {
23
+        if (parent::isNullable($field))
24
+        {
24 25
             return true;
25 26
         }
26 27
 
Please login to merge, or discard this patch.
src/Logger/src/Traits/LoggerTrait.php 1 patch
Braces   +6 added lines, -3 removed lines patch added patch discarded remove patch
@@ -42,11 +42,13 @@  discard block
 block discarded – undo
42 42
      */
43 43
     protected function getLogger(string $channel = null): LoggerInterface
44 44
     {
45
-        if ($channel !== null) {
45
+        if ($channel !== null)
46
+        {
46 47
             return $this->allocateLogger($channel);
47 48
         }
48 49
 
49
-        if ($this->logger !== null) {
50
+        if ($this->logger !== null)
51
+        {
50 52
             return $this->logger;
51 53
         }
52 54
 
@@ -63,7 +65,8 @@  discard block
 block discarded – undo
63 65
     private function allocateLogger(string $channel): LoggerInterface
64 66
     {
65 67
         $container = ContainerScope::getContainer();
66
-        if (empty($container) || !$container->has(LogsInterface::class)) {
68
+        if (empty($container) || !$container->has(LogsInterface::class))
69
+        {
67 70
             return $this->logger ?? new NullLogger();
68 71
         }
69 72
 
Please login to merge, or discard this patch.