Completed
Branch master (e4c283)
by Beñat
04:13
created
Category
src/BenGorUser/User/Domain/Model/UserMailable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@
 block discarded – undo
69 69
     public function __construct($to, UserEmail $from, $aSubject, $aBodyText, $aBodyHtml = null)
70 70
     {
71 71
         if (is_array($to)) {
72
-            $this->to = array_map(function ($receiver) {
72
+            $this->to = array_map(function($receiver) {
73 73
                 if (!$receiver instanceof UserEmail) {
74 74
                     throw new UserEmailInvalidException();
75 75
                 }
Please login to merge, or discard this patch.
src/BenGorUser/User/Application/Service/SignUp/SignUpUserHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -104,7 +104,7 @@
 block discarded – undo
104 104
             throw new UserAlreadyExistException();
105 105
         }
106 106
 
107
-        $userRoles = array_map(function ($role) {
107
+        $userRoles = array_map(function($role) {
108 108
             return new UserRole($role);
109 109
         }, $aCommand->roles());
110 110
 
Please login to merge, or discard this patch.
src/BenGorUser/User/Application/DataTransformer/UserDTODataTransformer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@
 block discarded – undo
46 46
             return [];
47 47
         }
48 48
 
49
-        $roles = array_map(function (UserRole $role) {
49
+        $roles = array_map(function(UserRole $role) {
50 50
             return $role->role();
51 51
         }, $this->user->roles());
52 52
 
Please login to merge, or discard this patch.
src/BenGorUser/User/Infrastructure/Persistence/SqlUserRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -318,7 +318,7 @@  discard block
 block discarded – undo
318 318
     private function rolesToString(array $userRoles)
319 319
     {
320 320
         return json_encode(
321
-            array_map(function (UserRole $userRole) {
321
+            array_map(function(UserRole $userRole) {
322 322
                 return $userRole->role();
323 323
             }, $userRoles)
324 324
         );
@@ -333,7 +333,7 @@  discard block
 block discarded – undo
333 333
      */
334 334
     private function rolesToArray($userRoles)
335 335
     {
336
-        return array_map(function ($userRole) {
336
+        return array_map(function($userRole) {
337 337
             return new UserRole($userRole);
338 338
         }, json_decode($userRoles));
339 339
     }
Please login to merge, or discard this patch.