Passed
Push — develop ( 7d20a9...585ca2 )
by Daniel
50:36 queued 04:55
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/Resources/config/services.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -51,12 +51,12 @@
 block discarded – undo
51 51
 
52 52
     $services
53 53
         ->set(TablePrefixExtension::class)
54
-        ->tag('doctrine.event_listener', [ 'event' => 'loadClassMetadata' ])
54
+        ->tag('doctrine.event_listener', ['event' => 'loadClassMetadata'])
55 55
     ;
56 56
 
57 57
     $services
58 58
         ->set(DiscriminatorMappingExtension::class)
59
-        ->tag('doctrine.event_listener', [ 'event' => 'loadClassMetadata' ])
59
+        ->tag('doctrine.event_listener', ['event' => 'loadClassMetadata'])
60 60
     ;
61 61
 
62 62
     $services
Please login to merge, or discard this patch.
src/DoctrineExtension/DiscriminatorMappingExtension.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -82,7 +82,7 @@
 block discarded – undo
82 82
     protected function addDiscriminatorMap(ClassMetadata $class): void
83 83
     {
84 84
         // ! $class->discriminatorMap &&
85
-        if ($class->isRootEntity() && ! $class->isInheritanceTypeNone()) {
85
+        if ($class->isRootEntity() && !$class->isInheritanceTypeNone()) {
86 86
             $this->addDefaultDiscriminatorMap($class);
87 87
         }
88 88
     }
Please login to merge, or discard this patch.