Passed
Pull Request — master (#1207)
by Aleksei
10:55
created
src/Files/tests/TestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,5 +18,5 @@
 block discarded – undo
18 18
     /**
19 19
      * @var string
20 20
      */
21
-    protected const FIXTURE_DIRECTORY = __DIR__ . '/fixtures/';
21
+    protected const FIXTURE_DIRECTORY = __DIR__.'/fixtures/';
22 22
 }
Please login to merge, or discard this patch.
src/Models/tests/GetEntity.php 2 patches
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.
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -13,10 +13,10 @@
 block discarded – undo
13 13
 
14 14
     protected static function filter($v)
15 15
     {
16
-        if (is_array($v)) {
16
+        if (is_array($v)){
17 17
             throw new RuntimeException("can't be array");
18 18
         }
19 19
 
20
-        return (int) $v;
20
+        return (int)$v;
21 21
     }
22 22
 }
Please login to merge, or discard this patch.
src/Models/tests/NullableEntity.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -20,7 +20,7 @@
 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
             return true;
25 25
         }
26 26
 
Please login to merge, or discard this 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/Boot/tests/Fixtures/BrokenCore.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -29,25 +29,25 @@
 block discarded – undo
29 29
      */
30 30
     protected function mapDirectories(array $directories): array
31 31
     {
32
-        if (!isset($directories['root'])) {
32
+        if (!isset($directories['root'])){
33 33
             throw new BootException('Missing required directory `root`.');
34 34
         }
35 35
 
36
-        if (!isset($directories['app'])) {
37
-            $directories['app'] = $directories['root'] . '/app/';
36
+        if (!isset($directories['app'])){
37
+            $directories['app'] = $directories['root'].'/app/';
38 38
         }
39 39
 
40 40
         return array_merge([
41 41
             // public root
42
-            'public' => $directories['root'] . '/public/',
42
+            'public' => $directories['root'].'/public/',
43 43
 
44 44
             // data directories
45
-            'runtime' => $directories['root'] . '/runtime/',
46
-            'cache' => $directories['root'] . '/runtime/cache/',
45
+            'runtime' => $directories['root'].'/runtime/',
46
+            'cache' => $directories['root'].'/runtime/cache/',
47 47
 
48 48
             // application directories
49
-            'config' => $directories['app'] . '/config/',
50
-            'resources' => $directories['app'] . '/resources/',
49
+            'config' => $directories['app'].'/config/',
50
+            'resources' => $directories['app'].'/resources/',
51 51
         ], $directories);
52 52
     }
53 53
 }
Please login to merge, or discard this patch.
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,11 +43,13 @@
 block discarded – undo
43 43
      */
44 44
     protected function mapDirectories(array $directories): array
45 45
     {
46
-        if (!isset($directories['root'])) {
46
+        if (!isset($directories['root']))
47
+        {
47 48
             throw new BootException('Missing required directory `root`.');
48 49
         }
49 50
 
50
-        if (!isset($directories['app'])) {
51
+        if (!isset($directories['app']))
52
+        {
51 53
             $directories['app'] = $directories['root'] . '/app/';
52 54
         }
53 55
 
Please login to merge, or discard this patch.
src/Boot/tests/Fixtures/TestCore.php 2 patches
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -43,11 +43,13 @@
 block discarded – undo
43 43
      */
44 44
     protected function mapDirectories(array $directories): array
45 45
     {
46
-        if (!isset($directories['root'])) {
46
+        if (!isset($directories['root']))
47
+        {
47 48
             throw new BootException('Missing required directory `root`.');
48 49
         }
49 50
 
50
-        if (!isset($directories['app'])) {
51
+        if (!isset($directories['app']))
52
+        {
51 53
             $directories['app'] = $directories['root'] . '/app/';
52 54
         }
53 55
 
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -43,25 +43,25 @@
 block discarded – undo
43 43
      */
44 44
     protected function mapDirectories(array $directories): array
45 45
     {
46
-        if (!isset($directories['root'])) {
46
+        if (!isset($directories['root'])){
47 47
             throw new BootException('Missing required directory `root`.');
48 48
         }
49 49
 
50
-        if (!isset($directories['app'])) {
51
-            $directories['app'] = $directories['root'] . '/app/';
50
+        if (!isset($directories['app'])){
51
+            $directories['app'] = $directories['root'].'/app/';
52 52
         }
53 53
 
54 54
         return array_merge([
55 55
             // public root
56
-            'public'    => $directories['root'] . '/public/',
56
+            'public'    => $directories['root'].'/public/',
57 57
 
58 58
             // data directories
59
-            'runtime'   => $directories['root'] . '/runtime/',
60
-            'cache'     => $directories['root'] . '/runtime/cache/',
59
+            'runtime'   => $directories['root'].'/runtime/',
60
+            'cache'     => $directories['root'].'/runtime/cache/',
61 61
 
62 62
             // application directories
63
-            'config'    => $directories['app'] . '/config/',
64
-            'resources' => $directories['app'] . '/resources/',
63
+            'config'    => $directories['app'].'/config/',
64
+            'resources' => $directories['app'].'/resources/',
65 65
         ], $directories);
66 66
     }
67 67
 
Please login to merge, or discard this patch.
src/Console/tests/Fixtures/TestCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -22,6 +22,6 @@
 block discarded – undo
22 22
 
23 23
     public function perform(): void
24 24
     {
25
-        $this->write('Hello World - ' . ($this->count++));
25
+        $this->write('Hello World - '.($this->count++));
26 26
     }
27 27
 }
Please login to merge, or discard this patch.
src/Console/tests/Fixtures/HelperCommand.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
 
27 27
     public function perform(): void
28 28
     {
29
-        switch ($this->argument('helper')) {
29
+        switch ($this->argument('helper')){
30 30
             case 'verbose':
31 31
                 $this->write($this->isVerbose() ? 'true' : 'false');
32 32
                 break;
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,8 @@
 block discarded – undo
26 26
 
27 27
     public function perform(): void
28 28
     {
29
-        switch ($this->argument('helper')) {
29
+        switch ($this->argument('helper'))
30
+        {
30 31
             case 'verbose':
31 32
                 $this->write($this->isVerbose() ? 'true' : 'false');
32 33
                 break;
Please login to merge, or discard this patch.
src/Auth/tests/Stub/TestAuthProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 {
19 19
     public function getActor(TokenInterface $token): ?object
20 20
     {
21
-        if ($token->getPayload()['ok']) {
21
+        if ($token->getPayload()['ok']){
22 22
             return new \stdClass();
23 23
         }
24 24
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@
 block discarded – undo
18 18
 {
19 19
     public function getActor(TokenInterface $token): ?object
20 20
     {
21
-        if ($token->getPayload()['ok']) {
21
+        if ($token->getPayload()['ok'])
22
+        {
22 23
             return new \stdClass();
23 24
         }
24 25
 
Please login to merge, or discard this patch.
src/AuthHttp/tests/Stub/TestAuthHttpProvider.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
 {
19 19
     public function getActor(TokenInterface $token): ?object
20 20
     {
21
-        if ($token->getID() === 'ok') {
21
+        if ($token->getID() === 'ok'){
22 22
             return new \stdClass();
23 23
         }
24 24
 
Please login to merge, or discard this patch.
Braces   +2 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,8 @@
 block discarded – undo
18 18
 {
19 19
     public function getActor(TokenInterface $token): ?object
20 20
     {
21
-        if ($token->getID() === 'ok') {
21
+        if ($token->getID() === 'ok')
22
+        {
22 23
             return new \stdClass();
23 24
         }
24 25
 
Please login to merge, or discard this patch.