Passed
Push — develop ( 9096ce...05150f )
by Daniel
05:42
created
src/DataFixtures/AbstractFixture.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,7 +56,7 @@
 block discarded – undo
56 56
         if (!$skipValidation) {
57 57
             $this->validateEntity($entity);
58 58
         }
59
-        $this->flush($manager, new ArrayCollection([ $entity ]));
59
+        $this->flush($manager, new ArrayCollection([$entity]));
60 60
     }
61 61
 
62 62
     protected function flush(ObjectManager $manager, ?ArrayCollection $entities = null): void
Please login to merge, or discard this patch.
src/DataModifier/CollectionModifier.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -37,7 +37,7 @@
 block discarded – undo
37 37
         $originalRequest = $requestStack->getCurrentRequest();
38 38
         $dummyRequest = new Request();
39 39
         $dummyRequest->request->set($this->enabledParameterName, true);
40
-        $dummyRequest->attributes->set('_api_pagination', [ $this->itemsPerPageParameterName => $collectionEntity->getPerPage() ]);
40
+        $dummyRequest->attributes->set('_api_pagination', [$this->itemsPerPageParameterName => $collectionEntity->getPerPage()]);
41 41
         $requestStack->push($dummyRequest);
42 42
         $collection = $dataProvider->getCollection($collectionEntity->getResource(), Request::METHOD_GET, $dataProviderContext);
43 43
         $collectionEntity->setCollection($collection);
Please login to merge, or discard this patch.
src/Entity/User/User.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -91,7 +91,7 @@
 block discarded – undo
91 91
 
92 92
     public function __construct(
93 93
         string $username = '',
94
-        array $roles = [ 'ROLE_USER' ],
94
+        array $roles = ['ROLE_USER'],
95 95
         string $password = '',
96 96
         bool $enabled = true
97 97
     ) {
Please login to merge, or discard this patch.
src/EventSubscriber/JwtEventSubscriber.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
 
20 20
     public static function getSubscribedEvents(): array
21 21
     {
22
-        return [ Events::JWT_CREATED => 'updateTokenRoles' ];
22
+        return [Events::JWT_CREATED => 'updateTokenRoles'];
23 23
     }
24 24
 
25 25
     public function updateTokenRoles(JWTCreatedEvent $event): void
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         $user = $event->getUser();
28 28
         $data = $event->getData();
29 29
         $reachableRoles = $this->roleHierarchy->getReachableRoles($user->getRoles());
30
-        $data['roles'] = array_map(function(Role $role) { return (string) $role->getRole(); }, $reachableRoles);
30
+        $data['roles'] = array_map(function (Role $role) { return (string) $role->getRole(); }, $reachableRoles);
31 31
         $event->setData($data);
32 32
     }
33 33
 }
Please login to merge, or discard this patch.