Completed
Push — master ( babb5a...72bb00 )
by Jonas
15s queued 11s
created
src/Address/LocalityAddressFormatter.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -9,8 +9,8 @@
 block discarded – undo
9 9
      */
10 10
     public function format(Address $address)
11 11
     {
12
-        return $address->getPostalCode() . ' ' .
13
-            $address->getLocality() . ', ' .
12
+        return $address->getPostalCode().' '.
13
+            $address->getLocality().', '.
14 14
             $address->getCountry()->getCode();
15 15
     }
16 16
 }
Please login to merge, or discard this patch.
src/Place/Events/PlaceCreated.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -154,7 +154,7 @@
 block discarded – undo
154 154
         }
155 155
         return parent::serialize() + array(
156 156
             'main_language' => $this->mainLanguage->getCode(),
157
-            'title' => (string) $this->getTitle(),
157
+            'title' => (string)$this->getTitle(),
158 158
             'event_type' => $this->getEventType()->serialize(),
159 159
             'theme' => $theme,
160 160
             'address' => $this->getAddress()->serialize(),
Please login to merge, or discard this patch.
src/Organizer/Events/OrganizerCreatedWithUniqueWebsite.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -73,8 +73,8 @@
 block discarded – undo
73 73
     {
74 74
         return parent::serialize() + array(
75 75
             'main_language' => $this->getMainLanguage()->getCode(),
76
-            'website' => (string) $this->getWebsite(),
77
-            'title' => (string) $this->getTitle(),
76
+            'website' => (string)$this->getWebsite(),
77
+            'title' => (string)$this->getTitle(),
78 78
         );
79 79
     }
80 80
 
Please login to merge, or discard this patch.
src/Offer/Commands/AbstractCreateCommand.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
         if (!is_string($itemId)) {
21 21
             throw new \InvalidArgumentException(
22
-                'Expected itemId to be a string, received ' . gettype($itemId)
22
+                'Expected itemId to be a string, received '.gettype($itemId)
23 23
             );
24 24
         }
25 25
 
Please login to merge, or discard this patch.
src/Offer/OfferFacilityResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@
 block discarded – undo
25 25
      */
26 26
     public function byId(StringLiteral $facilityId)
27 27
     {
28
-        if (!array_key_exists((string) $facilityId, $this->facilities)) {
28
+        if (!array_key_exists((string)$facilityId, $this->facilities)) {
29 29
             throw new \Exception("Unknown facility id '{$facilityId}'");
30 30
         }
31 31
 
32
-        return $this->facilities[(string) $facilityId];
32
+        return $this->facilities[(string)$facilityId];
33 33
     }
34 34
 
35 35
     /**
Please login to merge, or discard this patch.
src/Media/Serialization/MediaObjectSerializer.php 1 patch
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -49,11 +49,11 @@  discard block
 block discarded – undo
49 49
         $normalizedData = [
50 50
             '@id' => $this->iriGenerator->iri($mediaObject->getMediaObjectId()),
51 51
             '@type' => $type,
52
-            'contentUrl' => (string) $mediaObject->getSourceLocation(),
53
-            'thumbnailUrl' => (string) $mediaObject->getSourceLocation(),
54
-            'description' => (string) $mediaObject->getDescription(),
55
-            'copyrightHolder' => (string) $mediaObject->getCopyrightHolder(),
56
-            'inLanguage' => (string) $mediaObject->getLanguage(),
52
+            'contentUrl' => (string)$mediaObject->getSourceLocation(),
53
+            'thumbnailUrl' => (string)$mediaObject->getSourceLocation(),
54
+            'description' => (string)$mediaObject->getDescription(),
55
+            'copyrightHolder' => (string)$mediaObject->getCopyrightHolder(),
56
+            'inLanguage' => (string)$mediaObject->getLanguage(),
57 57
         ];
58 58
 
59 59
         return $normalizedData;
@@ -61,18 +61,18 @@  discard block
 block discarded – undo
61 61
 
62 62
     public function serializeMimeType(MIMEType $mimeType)
63 63
     {
64
-        $typeParts = explode('/', (string) $mimeType);
64
+        $typeParts = explode('/', (string)$mimeType);
65 65
         $type = array_shift($typeParts);
66 66
 
67 67
         if ($type === 'image') {
68 68
             return 'schema:ImageObject';
69 69
         }
70 70
 
71
-        if ((string) $mimeType === 'application/octet-stream') {
71
+        if ((string)$mimeType === 'application/octet-stream') {
72 72
             return 'schema:mediaObject';
73 73
         }
74 74
 
75
-        throw new UnsupportedException('Unsupported MIME-type "'. $mimeType .'"');
75
+        throw new UnsupportedException('Unsupported MIME-type "'.$mimeType.'"');
76 76
     }
77 77
 
78 78
     public function deserialize($data, $type, $format, array $context = array())
Please login to merge, or discard this patch.
src/Offer/ReadModel/MainLanguage/JSONLDMainLanguageQuery.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
         $document = $this->documentRepository->get($cdbid);
39 39
 
40 40
         if (!$document) {
41
-            throw new EntityNotFoundException('Could not load JSON-LD document for cdbid ' . $cdbid);
41
+            throw new EntityNotFoundException('Could not load JSON-LD document for cdbid '.$cdbid);
42 42
         }
43 43
 
44 44
         $json = $document->getBody();
Please login to merge, or discard this patch.
src/Offer/ReadModel/JSONLD/CdbXMLItemBaseImporter.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -153,7 +153,7 @@
 block discarded – undo
153 153
     }
154 154
 
155 155
     /**
156
-     * @param \CultureFeed_Cdb_Data_DetailList|\CultureFeed_Cdb_Data_Detail[] $details
156
+     * @param \CultureFeed_Cdb_Data_DetailList $details
157 157
      * @param \stdClass $jsonLD
158 158
      */
159 159
     public function importPriceInfo(
Please login to merge, or discard this patch.
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -170,7 +170,7 @@  discard block
 block discarded – undo
170 170
 
171 171
         $mainLanguageDetails = array_filter(
172 172
             $details,
173
-            function (\CultureFeed_Cdb_Data_Detail $detail) use ($mainLanguage) {
173
+            function(\CultureFeed_Cdb_Data_Detail $detail) use ($mainLanguage) {
174 174
                 return $detail->getLanguage() === $mainLanguage->getCode();
175 175
             }
176 176
         );
@@ -235,14 +235,14 @@  discard block
 block discarded – undo
235 235
             foreach ($translatedTariffs as $tariffName => $tariffPrice) {
236 236
                 if (!isset($tariffs[$tariffIndex])) {
237 237
                     $tariff = new Tariff(
238
-                        new MultilingualString(new Language($language), new StringLiteral((string) $tariffName)),
238
+                        new MultilingualString(new Language($language), new StringLiteral((string)$tariffName)),
239 239
                         Price::fromFloat($tariffPrice),
240 240
                         Currency::fromNative('EUR')
241 241
                     );
242 242
                 } else {
243 243
                     $tariff = $tariffs[$tariffIndex];
244 244
                     $name = $tariff->getName();
245
-                    $name = $name->withTranslation(new Language($language), new StringLiteral((string) $tariffName));
245
+                    $name = $name->withTranslation(new Language($language), new StringLiteral((string)$tariffName));
246 246
                     $tariff = new Tariff(
247 247
                         $name,
248 248
                         $tariff->getPrice(),
Please login to merge, or discard this patch.
src/Place/ReadModel/JSONLD/PlaceJsonDocumentLanguageAnalyzer.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -62,20 +62,20 @@
 block discarded – undo
62 62
         $mainLanguage = isset($body->mainLanguage) ? $body->mainLanguage : 'nl';
63 63
 
64 64
         if (isset($body->address->streetAddress)) {
65
-            $body->address = (object) [
65
+            $body->address = (object)[
66 66
                 $mainLanguage => $body->address,
67 67
             ];
68 68
         }
69 69
 
70 70
         if (isset($body->bookingInfo->urlLabel) && is_string($body->bookingInfo->urlLabel)) {
71
-            $body->bookingInfo->urlLabel = (object) [
71
+            $body->bookingInfo->urlLabel = (object)[
72 72
                 $mainLanguage => $body->bookingInfo->urlLabel,
73 73
             ];
74 74
         }
75 75
 
76 76
         if (isset($body->priceInfo) && is_array($body->priceInfo) && is_string($body->priceInfo[0]->name)) {
77 77
             foreach ($body->priceInfo as $priceInfo) {
78
-                $priceInfo->name = (object) [
78
+                $priceInfo->name = (object)[
79 79
                     $mainLanguage => $priceInfo->name,
80 80
                 ];
81 81
             }
Please login to merge, or discard this patch.