Completed
Push — master ( 6ceb07...e22522 )
by Sergei
16:21
created
Controller/PermissionsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -29,7 +29,7 @@
 block discarded – undo
29 29
             ),
30 30
             'hydration' => array(
31 31
                 'groups' => array(
32
-                    'list' => function (Permission $permission) {
32
+                    'list' => function(Permission $permission) {
33 33
                         $groups = array();
34 34
                         foreach ($permission->getGroups() as $group) {
35 35
                             $groups[] = $group->getId();
Please login to merge, or discard this patch.
Controller/UsersController.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
             'security' => array(
35 35
                 'actions' => array(
36 36
                     'create' => ModeraBackendSecurityBundle::ROLE_MANAGE_USER_PROFILES,
37
-                    'update' => function (AuthorizationCheckerInterface $ac, array $params) use ($self) {
37
+                    'update' => function(AuthorizationCheckerInterface $ac, array $params) use ($self) {
38 38
                         /* @var TokenStorageInterface $ts */
39 39
                         $ts = $self->get('security.token_storage');
40 40
                         /* @var User $user */
@@ -56,7 +56,7 @@  discard block
 block discarded – undo
56 56
             'hydration' => array(
57 57
                 'groups' => array(
58 58
                     'main-form' => ['id', 'username', 'email', 'firstName', 'lastName', 'middleName'],
59
-                    'list' => function (User $user) {
59
+                    'list' => function(User $user) {
60 60
                         $groups = array();
61 61
                         foreach ($user->getGroups() as $group) {
62 62
                             $groups[] = $group->getName();
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
                     'modera-backend-security-group-groupusers' => HydrationProfile::create(false)->useGroups(array('compact-list')),
85 85
                 ),
86 86
             ),
87
-            'map_data_on_create' => function (array $params, User $entity, DataMapperInterface $defaultMapper, ContainerInterface $container) use ($self) {
87
+            'map_data_on_create' => function(array $params, User $entity, DataMapperInterface $defaultMapper, ContainerInterface $container) use ($self) {
88 88
                 $defaultMapper->mapData($params, $entity);
89 89
 
90 90
                 if (isset($params['plainPassword']) && $params['plainPassword']) {
@@ -100,7 +100,7 @@  discard block
 block discarded – undo
100 100
                     $mailService->sendPassword($entity, $plainPassword);
101 101
                 }
102 102
             },
103
-            'map_data_on_update' => function (array $params, User $entity, DataMapperInterface $defaultMapper, ContainerInterface $container) use ($self) {
103
+            'map_data_on_update' => function(array $params, User $entity, DataMapperInterface $defaultMapper, ContainerInterface $container) use ($self) {
104 104
                 $defaultMapper->mapData($params, $entity);
105 105
 
106 106
                 /* @var LoggerInterface $activityMgr */
@@ -131,7 +131,7 @@  discard block
 block discarded – undo
131 131
                     $activityMgr->info($activityMsg, $activityContext);
132 132
                 }
133 133
             },
134
-            'remove_entities_handler' => function ($entities, $params, $defaultHandler, ContainerInterface $container) {
134
+            'remove_entities_handler' => function($entities, $params, $defaultHandler, ContainerInterface $container) {
135 135
                 /* @var UserService $userService */
136 136
                 $userService = $container->get('modera_security.service.user_service');
137 137
 
Please login to merge, or discard this patch.
Controller/GroupsController.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
     {
25 25
         $em = $this->getDoctrine();
26 26
 
27
-        $groupEntityValidator = function (array $params, Group $group, DefaultEntityValidator $defaultValidator, array $config, ContainerInterface $container) use ($em) {
27
+        $groupEntityValidator = function(array $params, Group $group, DefaultEntityValidator $defaultValidator, array $config, ContainerInterface $container) use ($em) {
28 28
 
29 29
             $validationResult = $defaultValidator->validate($group, $config);
30 30
 
@@ -53,7 +53,7 @@  discard block
 block discarded – undo
53 53
 
54 54
         };
55 55
 
56
-        $mapEntity = function (array $params, Group $group, DataMapperInterface $defaultMapper, ContainerInterface $container) {
56
+        $mapEntity = function(array $params, Group $group, DataMapperInterface $defaultMapper, ContainerInterface $container) {
57 57
             $defaultMapper->mapData($params, $group);
58 58
 
59 59
             /*
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
             ),
87 87
             'hydration' => array(
88 88
                 'groups' => array(
89
-                    'list' => function (Group $group) {
89
+                    'list' => function(Group $group) {
90 90
                             return array(
91 91
                                 'id' => $group->getId(),
92 92
                                 'name' => $group->getName(),
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
                     'edit-group' => array('main-form'),
104 104
                 ),
105 105
             ),
106
-            'format_new_entity_values' => function (array $params, array $config, NewValuesFactoryInterface $defaultImpl, ContainerInterface $container) {
106
+            'format_new_entity_values' => function(array $params, array $config, NewValuesFactoryInterface $defaultImpl, ContainerInterface $container) {
107 107
                 return array(
108 108
                     'refName' => null,
109 109
                 );
Please login to merge, or discard this patch.