Passed
Push — master ( ecb751...b15917 )
by Daniel
06:52
created
src/Command/UserCreateCommand.php 5 patches
Indentation   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -130,7 +130,4 @@
 block discarded – undo
130 130
                 throw new Exception($label . ' can not be empty');
131 131
             }
132 132
 
133
-            return $string;
134
-        };
135
-    }
136
-}
133
+            return $string
137 134
\ No newline at end of file
Please login to merge, or discard this patch.
Switch Indentation   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -130,7 +130,4 @@
 block discarded – undo
130 130
                 throw new Exception($label . ' can not be empty');
131 131
             }
132 132
 
133
-            return $string;
134
-        };
135
-    }
136
-}
133
+            return $string
137 134
\ No newline at end of file
Please login to merge, or discard this patch.
Spacing   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -130,7 +130,4 @@
 block discarded – undo
130 130
                 throw new Exception($label . ' can not be empty');
131 131
             }
132 132
 
133
-            return $string;
134
-        };
135
-    }
136
-}
133
+            return $string
137 134
\ No newline at end of file
Please login to merge, or discard this patch.
Braces   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -130,7 +130,4 @@
 block discarded – undo
130 130
                 throw new Exception($label . ' can not be empty');
131 131
             }
132 132
 
133
-            return $string;
134
-        };
135
-    }
136
-}
133
+            return $string
137 134
\ No newline at end of file
Please login to merge, or discard this patch.
Upper-Lower-Casing   +1 added lines, -4 removed lines patch added patch discarded remove patch
@@ -130,7 +130,4 @@
 block discarded – undo
130 130
                 throw new Exception($label . ' can not be empty');
131 131
             }
132 132
 
133
-            return $string;
134
-        };
135
-    }
136
-}
133
+            return $string
137 134
\ No newline at end of file
Please login to merge, or discard this patch.
src/Annotation/Publishable.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -30,5 +30,5 @@
 block discarded – undo
30 30
     /**
31 31
      * @var string[]
32 32
      */
33
-    public ?array $validationGroups = null;
33
+    public ? array $validationGroups = null;
34 34
 }
Please login to merge, or discard this patch.
src/Event/ImagineRemoveEvent.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -20,8 +20,8 @@
 block discarded – undo
20 20
  */
21 21
 class ImagineRemoveEvent extends Event
22 22
 {
23
-    public ?array $paths;
24
-    public ?array $filters;
23
+    public ? array $paths;
24
+    public ? array $filters;
25 25
 
26 26
     public function __construct(?array $paths, ?array $filters)
27 27
     {
Please login to merge, or discard this patch.
src/Factory/Uploadable/MediaObjectFactory.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -47,7 +47,7 @@
 block discarded – undo
47 47
                 $mediaObject->width = (int) $xmlattributes->width;
48 48
                 $mediaObject->height = (int) $xmlattributes->height;
49 49
             } else {
50
-                [ $mediaObject->width, $mediaObject->height ] = @getimagesize($file);
50
+                [$mediaObject->width, $mediaObject->height] = @getimagesize($file);
51 51
             }
52 52
         }
53 53
 
Please login to merge, or discard this patch.
src/Annotation/UploadableField.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -25,7 +25,7 @@
 block discarded – undo
25 25
 
26 26
     public ?string $prefix = null;
27 27
 
28
-    public ?array $imagineFilters = [];
28
+    public ? array $imagineFilters = [];
29 29
 
30 30
     // Nice to have - feature to configure the IRI in the output media objects for this field
31 31
     // public string $iri = 'http://schema.org/MediaObject';
Please login to merge, or discard this patch.
src/EventListener/Imagine/ImagineEventListener.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -39,7 +39,7 @@
 block discarded – undo
39 39
     public function onStore(ImagineStoreEvent $event): void
40 40
     {
41 41
         $content = $event->binary->getContent();
42
-        [ $width, $height ] = getimagesizefromstring($content);
42
+        [$width, $height] = getimagesizefromstring($content);
43 43
         $fileSize = \strlen($content);
44 44
 
45 45
         $fileInfo = new FileInfo($event->path, $event->binary->getMimeType(), $fileSize, $width, $height, $event->filter);
Please login to merge, or discard this patch.
src/Doctrine/Extension/ORM/PublishableExtension.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
         // (o.publishedResource = :id OR o.id = :id) ORDER BY o.publishedResource IS NULL LIMIT 1
61 61
         $criteriaReset = false;
62 62
         foreach ($identifiers as $identifier => $value) {
63
-            $predicates = $queryBuilder->expr()->orX($queryBuilder->expr()->eq("$alias.$configuration->associationName", ":id_$identifier"), $queryBuilder->expr()->eq("$alias.$identifier", ":id_$identifier"), );
63
+            $predicates = $queryBuilder->expr()->orX($queryBuilder->expr()->eq("$alias.$configuration->associationName", ":id_$identifier"), $queryBuilder->expr()->eq("$alias.$identifier", ":id_$identifier"),);
64 64
 
65 65
             // Reset queryBuilder to prevent an invalid DQL
66 66
             if (!$criteriaReset) {
Please login to merge, or discard this patch.
src/Entity/Component/Collection.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,12 +41,12 @@
 block discarded – undo
41 41
     /**
42 42
      * @ORM\Column(type="json", nullable=true)
43 43
      */
44
-    private ?array $defaultQueryParameters = null;
44
+    private ? array $defaultQueryParameters = null;
45 45
 
46 46
     /**
47 47
      * @ApiProperty(writable=false)
48 48
      */
49
-    private ?array $collection = null;
49
+    private ? array $collection = null;
50 50
 
51 51
     public function getResourceIri(): ?string
52 52
     {
Please login to merge, or discard this patch.
src/Helper/Timestamped/TimestampedDataPersister.php 1 patch
Spacing   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -37,8 +37,7 @@
 block discarded – undo
37 37
         $configuration = $this->annotationReader->getConfiguration($timestamped);
38 38
         $classMetadata = $this->getClassMetadata($timestamped);
39 39
         $classMetadata->setFieldValue($timestamped, $configuration->createdAtField, $isNew ?
40
-            new \DateTimeImmutable() :
41
-            $classMetadata->getFieldValue($timestamped, $configuration->createdAtField));
40
+            new \DateTimeImmutable() : $classMetadata->getFieldValue($timestamped, $configuration->createdAtField));
42 41
         $classMetadata->setFieldValue($timestamped, $configuration->modifiedAtField, new \DateTime());
43 42
     }
44 43
 }
Please login to merge, or discard this patch.