Completed
Pull Request — master (#472)
by
unknown
13:47
created
src/Offer/Events/AbstractEventWithIri.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
     final public function __construct(string $itemId, $iri)
13 13
     {
14 14
         parent::__construct($itemId);
15
-        $this->iri = (string) $iri;
15
+        $this->iri = (string)$iri;
16 16
     }
17 17
 
18 18
     public function getIri(): string
Please login to merge, or discard this patch.
src/Offer/Events/AbstractTypicalAgeRangeUpdated.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
     public function serialize(): array
26 26
     {
27 27
         return parent::serialize() + array(
28
-            'typicalAgeRange' => (string) $this->typicalAgeRange,
28
+            'typicalAgeRange' => (string)$this->typicalAgeRange,
29 29
         );
30 30
     }
31 31
 
Please login to merge, or discard this patch.
src/Offer/Events/Image/AbstractImagesEvent.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -26,9 +26,9 @@  discard block
 block discarded – undo
26 26
 
27 27
     public function serialize(): array
28 28
     {
29
-        $serializedData =  parent::serialize() + array(
29
+        $serializedData = parent::serialize() + array(
30 30
             'images' => array_map(
31
-                function (Image $image) {
31
+                function(Image $image) {
32 32
                     return $image->serialize();
33 33
                 },
34 34
                 $this->images->toArray()
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
     {
48 48
         $images = ImageCollection::fromArray(
49 49
             array_map(
50
-                function ($imageData) {
50
+                function($imageData) {
51 51
                     return Image::deserialize($imageData);
52 52
                 },
53 53
                 $data['images']
Please login to merge, or discard this patch.
src/Offer/Events/Image/AbstractImageUpdated.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -55,10 +55,10 @@
 block discarded – undo
55 55
 
56 56
     public function serialize(): array
57 57
     {
58
-        return parent::serialize() +  array(
59
-            'media_object_id' => (string) $this->mediaObjectId,
60
-            'description' => (string) $this->description,
61
-            'copyright_holder' => (string) $this->copyrightHolder,
58
+        return parent::serialize() + array(
59
+            'media_object_id' => (string)$this->mediaObjectId,
60
+            'description' => (string)$this->description,
61
+            'copyright_holder' => (string)$this->copyrightHolder,
62 62
         );
63 63
     }
64 64
 
Please login to merge, or discard this patch.
src/Offer/Events/AbstractLabelEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@
 block discarded – undo
26 26
     public function serialize(): array
27 27
     {
28 28
         return parent::serialize() + array(
29
-            'label' => (string) $this->label,
29
+            'label' => (string)$this->label,
30 30
             'visibility' => $this->label->isVisible(),
31 31
         );
32 32
     }
Please login to merge, or discard this patch.
src/Media/Properties/MIMEType.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,11 +22,11 @@
 block discarded – undo
22 22
         }
23 23
 
24 24
         if (!array_key_exists($subtypeString, self::$supportedSubtypes)) {
25
-            throw new UnsupportedMIMETypeException('MIME type "' . $subtypeString . '" is not supported!');
25
+            throw new UnsupportedMIMETypeException('MIME type "'.$subtypeString.'" is not supported!');
26 26
         }
27 27
 
28 28
         $type = self::$supportedSubtypes[$subtypeString];
29 29
 
30
-        return new self($type . '/' . $subtypeString);
30
+        return new self($type.'/'.$subtypeString);
31 31
     }
32 32
 }
Please login to merge, or discard this patch.
src/Media/Image.php 1 patch
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -103,12 +103,12 @@
 block discarded – undo
103 103
     public function serialize(): array
104 104
     {
105 105
         return [
106
-            'media_object_id' => (string) $this->getMediaObjectId(),
107
-            'mime_type' => (string) $this->getMimeType(),
108
-            'description' => (string) $this->getDescription(),
109
-            'copyright_holder' => (string) $this->getCopyrightHolder(),
110
-            'source_location' => (string) $this->getSourceLocation(),
111
-            'language' => (string) $this->getLanguage(),
106
+            'media_object_id' => (string)$this->getMediaObjectId(),
107
+            'mime_type' => (string)$this->getMimeType(),
108
+            'description' => (string)$this->getDescription(),
109
+            'copyright_holder' => (string)$this->getCopyrightHolder(),
110
+            'source_location' => (string)$this->getSourceLocation(),
111
+            'language' => (string)$this->getLanguage(),
112 112
         ];
113 113
     }
114 114
 }
Please login to merge, or discard this patch.