Completed
Push — master ( 65925d...2d1b3d )
by Daniel
08:05
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/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/File/Uploader/FileUploader.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
         if ($file->getFilename() === '') {
84 84
             $template = 'The file was not uploaded. It is likely that the file size was larger than %s';
85 85
             throw new ValidationException(new ConstraintViolationList([
86
-                new ConstraintViolation(sprintf($template, ini_get('upload_max_filesize')), $template, [ ini_get('upload_max_filesize') ], $file, 'filename', $file->getFilename())
86
+                new ConstraintViolation(sprintf($template, ini_get('upload_max_filesize')), $template, [ini_get('upload_max_filesize')], $file, 'filename', $file->getFilename())
87 87
             ]));
88 88
         }
89 89
         $resourceMetadata = $this->resourceMetadataFactory->create(get_class($entity));
Please login to merge, or discard this patch.
src/EventSubscriber/JwtEventSubscriber.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 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
Please login to merge, or discard this patch.
src/Doctrine/Extension/DiscriminatorMappingExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -83,7 +83,7 @@
 block discarded – undo
83 83
 
84 84
     protected function addDiscriminatorMap(ClassMetadata $classMetadata): void
85 85
     {
86
-        if ($classMetadata->isRootEntity() && ! $classMetadata->isInheritanceTypeNone()) {
86
+        if ($classMetadata->isRootEntity() && !$classMetadata->isInheritanceTypeNone()) {
87 87
             $this->addDefaultDiscriminatorMap($classMetadata);
88 88
         }
89 89
     }
Please login to merge, or discard this patch.
src/Security/EventListener/DenyAccessListener.php 1 patch
Braces   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -46,13 +46,13 @@
 block discarded – undo
46 46
     {
47 47
         if ($resource instanceof RestrictedResourceInterface) {
48 48
             $this->isResourceRestricted($resource);
49
-        }elseif ($resource instanceof DynamicContent) {
49
+        } elseif ($resource instanceof DynamicContent) {
50 50
             $this->isDynamicContentRestricted($resource);
51
-        }elseif ($resource instanceof Route) {
51
+        } elseif ($resource instanceof Route) {
52 52
             $this->isRouteRestricted($resource);
53
-        }elseif ($resource instanceof  ComponentLocation) {
53
+        } elseif ($resource instanceof  ComponentLocation) {
54 54
             $this->isComponentLocationRestricted($resource);
55
-        }elseif ($resource instanceof AbstractComponent) {
55
+        } elseif ($resource instanceof AbstractComponent) {
56 56
             $this->isComponentRestricted($resource);
57 57
         }
58 58
     }
Please login to merge, or discard this patch.
src/Resources/config/services.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -54,12 +54,12 @@  discard block
 block discarded – undo
54 54
     $services
55 55
         ->set(TablePrefixExtension::class)
56 56
         ->set(TablePrefixExtension::class)
57
-        ->tag('doctrine.event_listener', [ 'event' => 'loadClassMetadata' ])
57
+        ->tag('doctrine.event_listener', ['event' => 'loadClassMetadata'])
58 58
     ;
59 59
 
60 60
     $services
61 61
         ->set(DiscriminatorMappingExtension::class)
62
-        ->tag('doctrine.event_listener', [ 'event' => 'loadClassMetadata' ])
62
+        ->tag('doctrine.event_listener', ['event' => 'loadClassMetadata'])
63 63
     ;
64 64
 
65 65
     $services
@@ -124,7 +124,7 @@  discard block
 block discarded – undo
124 124
             tagged_iterator('silverback_api_component.data_transformer'),
125 125
             new Reference(RestrictedResourceVoter::class)
126 126
         ])
127
-        ->tag('serializer.normalizer', [ 'priority' => 100 ])
127
+        ->tag('serializer.normalizer', ['priority' => 100])
128 128
     ;
129 129
 
130 130
     $services
Please login to merge, or discard this patch.
src/Serializer/ApiContextBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -60,7 +60,7 @@
 block discarded – undo
60 60
     private function getGroupVariants(string $group, bool $normalization): array
61 61
     {
62 62
         $rw = ($normalization ? 'read' : 'write');
63
-        return [ $group, sprintf('%s_%s', $group, $rw) ];
63
+        return [$group, sprintf('%s_%s', $group, $rw)];
64 64
     }
65 65
 
66 66
     /**
Please login to merge, or discard this patch.
src/Controller/FormPatchAction.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -31,7 +31,7 @@
 block discarded – undo
31 31
     private function getNestedKey(FormInterface $form, array $formData): FormInterface
32 32
     {
33 33
         $child = $form->get($key = key($formData));
34
-        while(is_array($formData = $formData[$key]) && $count = \count($formData)) {
34
+        while (is_array($formData = $formData[$key]) && $count = \count($formData)) {
35 35
             if (!$this->isAssocArray($formData) && $this->arrayIsStrings($formData)) {
36 36
                 break;
37 37
             }
Please login to merge, or discard this patch.