Passed
Branch master (b4ac3b)
by Tarmo
05:51
created
src/Form/DataTransformer/RoleTransformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * /src/Form/DataTransformer/RoleTransformer.php
5 5
  *
Please login to merge, or discard this patch.
src/Form/DataTransformer/UserGroupTransformer.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * /src/Form/DataTransformer/UserGroupTransformer.php
5 5
  *
@@ -42,7 +42,7 @@  discard block
 block discarded – undo
42 42
      *
43 43
      * @return array
44 44
      */
45
-    public function transform($userGroups): ?array
45
+    public function transform($userGroups): ? array
46 46
     {
47 47
         $output = [];
48 48
 
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
              *
53 53
              * @return string
54 54
              */
55
-            $iterator = function ($userGroup) {
55
+            $iterator = function($userGroup) {
56 56
                 return \is_string($userGroup) ? $userGroup : $userGroup->getId();
57 57
             };
58 58
 
@@ -71,12 +71,12 @@  discard block
 block discarded – undo
71 71
      *
72 72
      * @throws TransformationFailedException if object (issue) is not found.
73 73
      */
74
-    public function reverseTransform($userGroups): ?array
74
+    public function reverseTransform($userGroups): ? array
75 75
     {
76 76
         $output = null;
77 77
 
78 78
         if (\is_array($userGroups)) {
79
-            $iterator = function (string $groupId) {
79
+            $iterator = function(string $groupId) {
80 80
                 $group = $this->resource->findOne($groupId);
81 81
 
82 82
                 if ($group === null) {
Please login to merge, or discard this patch.
src/Doctrine/DBAL/Types/EnumLogLoginType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * /src/Doctrine/DBAL/Types/EnumLogLoginType.php
5 5
  *
Please login to merge, or discard this patch.
src/Doctrine/DBAL/Types/EnumType.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * /src/Doctrine/DBAL/Types/EnumType.php
5 5
  *
@@ -38,11 +38,11 @@  discard block
 block discarded – undo
38 38
      */
39 39
     public function getSQLDeclaration(array $fieldDeclaration, AbstractPlatform $platform): string
40 40
     {
41
-        $iterator = function (string $value): string {
41
+        $iterator = function(string $value): string {
42 42
             return "'" . $value . "'";
43 43
         };
44 44
 
45
-        return 'ENUM(' . \implode(', ', \array_map($iterator, static::$values)). ')';
45
+        return 'ENUM(' . \implode(', ', \array_map($iterator, static::$values)) . ')';
46 46
     }
47 47
 
48 48
     /**
Please login to merge, or discard this patch.
src/Utils/JSON.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
      *
53 53
      * @throws \LogicException
54 54
      */
55
-    public static function encode($input, ?int $options = null, ?int $depth = null): string
55
+    public static function encode($input, ?int $options = null, ?int $depth = null) : string
56 56
     {
57 57
         $options = $options ?? 0;
58 58
         $depth = $depth ?? 512;
Please login to merge, or discard this patch.
src/Utils/Tests/RestTraitTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * /src/Utils/Tests/RestTraitTestCase.php
5 5
  *
Please login to merge, or discard this patch.
src/Utils/Tests/RestIntegrationControllerTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * /src/Utils/Tests/RestIntegrationControllerTestCase.php
5 5
  *
Please login to merge, or discard this patch.
src/Utils/Tests/Auth.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@  discard block
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * /src/Utils/Tests/Auth.php
5 5
  *
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
         }
132 132
 
133 133
         if ($response->getStatusCode() !== 200) {
134
-            throw new \UnexpectedValueException('Invalid status code: '. $response->getStatusCode());
134
+            throw new \UnexpectedValueException('Invalid status code: ' . $response->getStatusCode());
135 135
         }
136 136
 
137 137
         return JSON::decode($response->getContent())->token;
Please login to merge, or discard this patch.
src/Utils/Tests/WebTestCase.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -1,5 +1,5 @@
 block discarded – undo
1 1
 <?php
2
-declare(strict_types=1);
2
+declare(strict_types = 1);
3 3
 /**
4 4
  * /src/Utils/Tests/WebTestCase.php
5 5
  *
Please login to merge, or discard this patch.