Passed
Push — master ( b4ac3b...3cca7b )
by Tarmo
02:47
created
src/Command/User/ListUserGroupsCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -81,7 +81,7 @@  discard block
 block discarded – undo
81 81
          *
82 82
          * @return string
83 83
          */
84
-        $formatterUser = function (User $user): string {
84
+        $formatterUser = function(User $user): string {
85 85
             return \sprintf(
86 86
                 '%s %s <%s>',
87 87
                 $user->getFirstname(),
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
          *
96 96
          * @return array
97 97
          */
98
-        $formatterGroup = function (UserGroup $userGroup) use ($formatterUser): array {
98
+        $formatterGroup = function(UserGroup $userGroup) use ($formatterUser): array {
99 99
             return [
100 100
                 $userGroup->getId(),
101 101
                 $userGroup->getName(),
Please login to merge, or discard this patch.
src/Command/User/UserHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -58,7 +58,7 @@  discard block
 block discarded – undo
58 58
          *
59 59
          * @param UserEntity $user
60 60
          */
61
-        $iterator = function (UserEntity $user) use (&$choices): void {
61
+        $iterator = function(UserEntity $user) use (&$choices): void {
62 62
             $message = \sprintf(
63 63
                 '%s (%s %s <%s>)',
64 64
                 $user->getUsername(),
@@ -92,7 +92,7 @@  discard block
 block discarded – undo
92 92
          *
93 93
          * @param UserGroupEntity $userGroup
94 94
          */
95
-        $iterator = function (UserGroupEntity $userGroup) use (&$choices): void {
95
+        $iterator = function(UserGroupEntity $userGroup) use (&$choices): void {
96 96
             $choices[$userGroup->getId()] = \sprintf('%s (%s)', $userGroup->getName(), $userGroup->getRole()->getId());
97 97
         };
98 98
 
Please login to merge, or discard this patch.
src/Command/User/CreateUserGroupCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -85,7 +85,7 @@
 block discarded – undo
85 85
          *
86 86
          * @return InputOption
87 87
          */
88
-        $iterator = function (array $input): InputOption {
88
+        $iterator = function(array $input): InputOption {
89 89
             return new InputOption(
90 90
                 $input['name'],
91 91
                 $input['shortcut'] ?? null,
Please login to merge, or discard this patch.
src/Command/Utils/CreateDateDimensionEntitiesCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,7 +102,7 @@  discard block
 block discarded – undo
102 102
          *
103 103
          * @return int
104 104
          */
105
-        $validator = function ($year) {
105
+        $validator = function($year) {
106 106
             $year = (int)$year;
107 107
 
108 108
             if ($year < self::YEAR_MIN || $year > self::YEAR_MAX) {
@@ -139,7 +139,7 @@  discard block
 block discarded – undo
139 139
          *
140 140
          * @return int
141 141
          */
142
-        $validator = function ($year) use ($yearStart) {
142
+        $validator = function($year) use ($yearStart) {
143 143
             $year = (int)$year;
144 144
 
145 145
             if ($year < self::YEAR_MIN || $year > self::YEAR_MAX) {
Please login to merge, or discard this patch.
src/Command/ApiKey/ApiKeyHelper.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
          *
50 50
          * @param ApiKey $apiKey
51 51
          */
52
-        $iterator = function (ApiKey $apiKey) use (&$choices): void {
52
+        $iterator = function(ApiKey $apiKey) use (&$choices): void {
53 53
             $message = \sprintf(
54 54
                 '[%s] %s',
55 55
                 $apiKey->getToken(),
Please login to merge, or discard this patch.
src/Command/ApiKey/ListApiKeysCommand.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
          *
96 96
          * @return string
97 97
          */
98
-        $formatterGroup = function (UserGroup $userGroup): string {
98
+        $formatterGroup = function(UserGroup $userGroup): string {
99 99
             return \sprintf(
100 100
                 '%s (%s)',
101 101
                 $userGroup->getName(),
@@ -108,7 +108,7 @@  discard block
 block discarded – undo
108 108
          *
109 109
          * @return array
110 110
          */
111
-        $formatterUser = function (ApiKey $apiToken) use ($formatterGroup): array {
111
+        $formatterUser = function(ApiKey $apiToken) use ($formatterGroup): array {
112 112
             return [
113 113
                 $apiToken->getId(),
114 114
                 $apiToken->getToken(),
Please login to merge, or discard this patch.
src/Form/DataTransformer/UserGroupTransformer.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -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/Form/Type/Console/UserType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -152,7 +152,7 @@
 block discarded – undo
152 152
          *
153 153
          * @return void
154 154
          */
155
-        $iterator = function (UserGroup $userGroup) use (&$choices) {
155
+        $iterator = function(UserGroup $userGroup) use (&$choices) {
156 156
             $name = $userGroup->getName() . ' [' . $userGroup->getRole()->getId() . ']';
157 157
 
158 158
             $choices[$name] = $userGroup->getId();
Please login to merge, or discard this patch.
src/Form/Type/Console/ApiKeyType.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -109,7 +109,7 @@
 block discarded – undo
109 109
          *
110 110
          * @return void
111 111
          */
112
-        $iterator = function (UserGroup $userGroup) use (&$choices) {
112
+        $iterator = function(UserGroup $userGroup) use (&$choices) {
113 113
             $name = $userGroup->getName() . ' [' . $userGroup->getRole()->getId() . ']';
114 114
 
115 115
             $choices[$name] = $userGroup->getId();
Please login to merge, or discard this patch.