Completed
Push — master ( c94cb4...5445fb )
by
unknown
47s
created
Contributions/ConfigMergersProvider.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
             ),
49 49
         ));
50 50
 
51
-        foreach($this->sectionsProvider->getItems() as $section) {
51
+        foreach ($this->sectionsProvider->getItems() as $section) {
52 52
             if ($section instanceof SectionInterface) {
53 53
                 $currentConfig['modera_backend_security']['sections'][] = array(
54 54
                     'sectionConfig' => array(
Please login to merge, or discard this patch.
Controller/PermissionsController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@
 block discarded – undo
34 34
             ),
35 35
             'hydration' => array(
36 36
                 'groups' => array(
37
-                    'list' => function (Permission $permission) {
37
+                    'list' => function(Permission $permission) {
38 38
                         $users = array();
39 39
                         foreach ($permission->getUsers() as $user) {
40 40
                             $users[] = $user->getId();
Please login to merge, or discard this patch.
Controller/UsersController.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -38,13 +38,13 @@  discard block
 block discarded – undo
38 38
 
39 39
         return array(
40 40
             'entity' => User::clazz(),
41
-            'create_default_data_mapper' => function (ContainerInterface $container) {
41
+            'create_default_data_mapper' => function(ContainerInterface $container) {
42 42
                 return $this->container->get('modera_backend_security.data_mapper.user_data_mapper');
43 43
             },
44 44
             'security' => array(
45 45
                 'actions' => array(
46 46
                     'create' => ModeraBackendSecurityBundle::ROLE_MANAGE_USER_PROFILES,
47
-                    'update' => function (AuthorizationCheckerInterface $ac, array $params) use ($self) {
47
+                    'update' => function(AuthorizationCheckerInterface $ac, array $params) use ($self) {
48 48
                         /* @var TokenStorageInterface $ts */
49 49
                         $ts = $self->get('security.token_storage');
50 50
                         /* @var User $user */
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
                             || $ac->isGranted(ModeraBackendSecurityBundle::ROLE_MANAGE_USER_PROFILE_INFORMATION);
96 96
                     },
97 97
                     'list' => ModeraBackendSecurityBundle::ROLE_ACCESS_BACKEND_TOOLS_SECURITY_SECTION,
98
-                    'batchUpdate' => function (AuthorizationCheckerInterface $ac, array $params) use ($self) {
98
+                    'batchUpdate' => function(AuthorizationCheckerInterface $ac, array $params) use ($self) {
99 99
                         if (isset($params['record']) && isset($params['record']['permissions'])) {
100 100
                             if (!$ac->isGranted(ModeraBackendSecurityBundle::ROLE_MANAGE_PERMISSIONS)) {
101 101
                                 return false;
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
             'hydration' => array(
120 120
                 'groups' => array(
121 121
                     'main-form' => ['id', 'username', 'email', 'firstName', 'lastName', 'middleName', 'meta'],
122
-                    'list' => function (User $user) {
122
+                    'list' => function(User $user) {
123 123
                         $groups = array();
124 124
                         foreach ($user->getGroups() as $group) {
125 125
                             $groups[] = $group->getName();
@@ -145,7 +145,7 @@  discard block
 block discarded – undo
145 145
                             'meta' => $user->getMeta(),
146 146
                         );
147 147
                     },
148
-                    'compact-list' => function (User $user) {
148
+                    'compact-list' => function(User $user) {
149 149
                         $groups = array();
150 150
                         foreach ($user->getGroups() as $group) {
151 151
                             $groups[] = $group->getId();
@@ -176,7 +176,7 @@  discard block
 block discarded – undo
176 176
                     'modera-backend-security-group-groupusers' => HydrationProfile::create(false)->useGroups(array('compact-list')),
177 177
                 ),
178 178
             ),
179
-            'map_data_on_create' => function (array $params, User $user, DataMapperInterface $defaultMapper, ContainerInterface $container) use ($self) {
179
+            'map_data_on_create' => function(array $params, User $user, DataMapperInterface $defaultMapper, ContainerInterface $container) use ($self) {
180 180
                 $defaultMapper->mapData($params, $user);
181 181
 
182 182
                 if (isset($params['plainPassword']) && $params['plainPassword']) {
@@ -195,7 +195,7 @@  discard block
 block discarded – undo
195 195
                     throw new BadPasswordException($e->getErrors()[0], null, $e);
196 196
                 }
197 197
             },
198
-            'update_entity_handler' => function (User $user, array $params, PersistenceHandlerInterface $defaultHandler, ContainerInterface $container) use ($self) {
198
+            'update_entity_handler' => function(User $user, array $params, PersistenceHandlerInterface $defaultHandler, ContainerInterface $container) use ($self) {
199 199
                 /* @var LoggerInterface $activityMgr */
200 200
                 $activityMgr = $container->get('modera_activity_logger.manager.activity_manager');
201 201
 
@@ -240,7 +240,7 @@  discard block
 block discarded – undo
240 240
 
241 241
                 return $defaultHandler->update($user);
242 242
             },
243
-            'updated_entity_validator' => function (array $params, User $user, EntityValidatorInterface $validator, array $config, ContainerInterface $container) {
243
+            'updated_entity_validator' => function(array $params, User $user, EntityValidatorInterface $validator, array $config, ContainerInterface $container) {
244 244
                 $isBatchUpdatedBeingPerformed = !isset($params['record']);
245 245
                 if ($isBatchUpdatedBeingPerformed) {
246 246
                     // Because of bug in AbstractCrudController (see MF-UPGRADE3.0 and search for "$recordParams" keyword)
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
 
301 301
                 return $result;
302 302
             },
303
-            'remove_entities_handler' => function ($entities, $params, $defaultHandler, ContainerInterface $container) {
303
+            'remove_entities_handler' => function($entities, $params, $defaultHandler, ContainerInterface $container) {
304 304
                 /* @var UserService $userService */
305 305
                 $userService = $container->get('modera_security.service.user_service');
306 306
 
Please login to merge, or discard this patch.