Completed
Pull Request — master (#306)
by Luc
06:57 queued 01:33
created
src/Place/ReadModel/JSONLD/PlaceLDProjector.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -184,7 +184,7 @@  discard block
 block discarded – undo
184 184
         $jsonLD->address = $placeCreated->getAddress()->toJsonLd();
185 185
 
186 186
         $calendarJsonLD = $placeCreated->getCalendar()->toJsonLd();
187
-        $jsonLD = (object) array_merge((array) $jsonLD, $calendarJsonLD);
187
+        $jsonLD = (object)array_merge((array)$jsonLD, $calendarJsonLD);
188 188
 
189 189
         $availableTo = AvailableTo::createFromCalendar($placeCreated->getCalendar());
190 190
         $jsonLD->availableTo = (string)$availableTo;
@@ -246,8 +246,8 @@  discard block
 block discarded – undo
246 246
         $jsonLD->availableTo = (string)$availableTo;
247 247
 
248 248
         // Remove old theme and event type.
249
-        $jsonLD->terms = array_filter($jsonLD->terms, function ($term) {
250
-            return $term->domain !== EventType::DOMAIN &&  $term->domain !== Theme::DOMAIN;
249
+        $jsonLD->terms = array_filter($jsonLD->terms, function($term) {
250
+            return $term->domain !== EventType::DOMAIN && $term->domain !== Theme::DOMAIN;
251 251
         });
252 252
 
253 253
         $eventType = $majorInfoUpdated->getEventType();
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
         // Remove all old facilities + get numeric keys.
280 280
         $terms = array_values(array_filter(
281 281
             $terms,
282
-            function ($term) {
282
+            function($term) {
283 283
                 return $term->domain !== Facility::DOMAIN;
284 284
             }
285 285
         ));
@@ -303,7 +303,7 @@  discard block
 block discarded – undo
303 303
 
304 304
         $placeLd = $document->getBody();
305 305
 
306
-        $placeLd->geo = (object) [
306
+        $placeLd->geo = (object)[
307 307
             'latitude' => $geoCoordinatesUpdated->getCoordinates()->getLatitude()->toDouble(),
308 308
             'longitude' => $geoCoordinatesUpdated->getCoordinates()->getLongitude()->toDouble(),
309 309
         ];
Please login to merge, or discard this patch.
src/Address/CultureFeedAddressFactory.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -28,12 +28,12 @@
 block discarded – undo
28 28
 
29 29
         if (count($missingFields) > 0) {
30 30
             $keys = implode(', ', $missingFields);
31
-            throw new \InvalidArgumentException('The given cdbxml address is missing a ' . $keys);
31
+            throw new \InvalidArgumentException('The given cdbxml address is missing a '.$keys);
32 32
         }
33 33
 
34 34
 
35 35
         return new Address(
36
-            new Street($cdbAddress->getStreet() . ' ' . $cdbAddress->getHouseNumber()),
36
+            new Street($cdbAddress->getStreet().' '.$cdbAddress->getHouseNumber()),
37 37
             new PostalCode($cdbAddress->getZip()),
38 38
             new Locality($cdbAddress->getCity()),
39 39
             Country::fromNative($cdbAddress->getCountry())
Please login to merge, or discard this patch.
src/Organizer/Events/WebsiteUpdated.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
     public function serialize()
39 39
     {
40 40
         return parent::serialize() + [
41
-                'website' => (string) $this->getWebsite()
41
+                'website' => (string)$this->getWebsite()
42 42
             ];
43 43
     }
44 44
 
Please login to merge, or discard this patch.
src/Organizer/Events/WebsiteUniqueConstraintService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -28,6 +28,6 @@
 block discarded – undo
28 28
 
29 29
         /* @var OrganizerCreatedWithUniqueWebsite|WebsiteUpdated $payload */
30 30
         $payload = $domainMessage->getPayload();
31
-        return new StringLiteral((string) $payload->getWebsite());
31
+        return new StringLiteral((string)$payload->getWebsite());
32 32
     }
33 33
 }
Please login to merge, or discard this patch.
src/Event/EventEditingServiceInterface.php 1 patch
Doc Comments   +8 added lines patch added patch discarded remove patch
@@ -18,6 +18,7 @@  discard block
 block discarded – undo
18 18
      *
19 19
      * @param string $id
20 20
      * @param string $description
21
+     * @return string
21 22
      */
22 23
     public function updateDescription($id, $description);
23 24
 
@@ -26,6 +27,7 @@  discard block
 block discarded – undo
26 27
      *
27 28
      * @param string $id
28 29
      * @param AgeRange $ageRange
30
+     * @return string
29 31
      */
30 32
     public function updateTypicalAgeRange($id, AgeRange $ageRange);
31 33
 
@@ -33,6 +35,7 @@  discard block
 block discarded – undo
33 35
      * Delete the typical age range of a place.
34 36
      *
35 37
      * @param string $id
38
+     * @return string
36 39
      */
37 40
     public function deleteTypicalAgeRange($id);
38 41
 
@@ -41,6 +44,7 @@  discard block
 block discarded – undo
41 44
      *
42 45
      * @param string $id
43 46
      * @param string $organizerId
47
+     * @return string
44 48
      */
45 49
     public function updateOrganizer($id, $organizerId);
46 50
 
@@ -49,6 +53,7 @@  discard block
 block discarded – undo
49 53
      *
50 54
      * @param string $id
51 55
      * @param string $organizerId
56
+     * @return string
52 57
      */
53 58
     public function deleteOrganizer($id, $organizerId);
54 59
 
@@ -57,6 +62,7 @@  discard block
 block discarded – undo
57 62
      *
58 63
      * @param string $id
59 64
      * @param ContactPoint $contactPoint
65
+     * @return string
60 66
      */
61 67
     public function updateContactPoint($id, ContactPoint $contactPoint);
62 68
 
@@ -65,6 +71,7 @@  discard block
 block discarded – undo
65 71
      *
66 72
      * @param string $id
67 73
      * @param Image $image
74
+     * @return string
68 75
      */
69 76
     public function addImage($id, Image $image);
70 77
 
@@ -91,6 +98,7 @@  discard block
 block discarded – undo
91 98
      *
92 99
      * @param string $id
93 100
      * @param Image $image
101
+     * @return string
94 102
      */
95 103
     public function removeImage($id, Image $image);
96 104
 
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
@@ -36,7 +36,7 @@
 block discarded – undo
36 36
     public function serialize()
37 37
     {
38 38
         return parent::serialize() + array(
39
-            'typicalAgeRange' => (string) $this->typicalAgeRange,
39
+            'typicalAgeRange' => (string)$this->typicalAgeRange,
40 40
         );
41 41
     }
42 42
 
Please login to merge, or discard this patch.
src/Offer/AgeRange.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -63,10 +63,10 @@
 block discarded – undo
63 63
      */
64 64
     public function __toString()
65 65
     {
66
-        $from = $this->from ? (string) $this->from : '';
67
-        $to = $this->to ? (string) $this->to : '';
66
+        $from = $this->from ? (string)$this->from : '';
67
+        $to = $this->to ? (string)$this->to : '';
68 68
 
69
-        return $from . '-' . $to;
69
+        return $from.'-'.$to;
70 70
     }
71 71
 
72 72
     /**
Please login to merge, or discard this patch.
src/Label/ReadModels/Relations/Repository/LabelRelation.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@  discard block
 block discarded – undo
45 45
         $this->labelName = $labelName;
46 46
         $this->relationType = $relationType;
47 47
         $this->relationId = $relationId;
48
-        $this->imported = (bool) $imported;
48
+        $this->imported = (bool)$imported;
49 49
     }
50 50
 
51 51
     /**
@@ -103,7 +103,7 @@  discard block
 block discarded – undo
103 103
             new LabelName($relation[SchemaConfigurator::LABEL_NAME]),
104 104
             RelationType::fromNative($relation[SchemaConfigurator::RELATION_TYPE]),
105 105
             new StringLiteral($relation[SchemaConfigurator::RELATION_ID]),
106
-            (bool) $relation[SchemaConfigurator::IMPORTED]
106
+            (bool)$relation[SchemaConfigurator::IMPORTED]
107 107
         );
108 108
     }
109 109
 }
Please login to merge, or discard this patch.
src/Label/ReadModels/Relations/Projector.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -185,7 +185,7 @@  discard block
 block discarded – undo
185 185
 
186 186
         foreach ($labelCollection->asArray() as $label) {
187 187
             $this->writeRepository->save(
188
-                new LabelName((string) $label),
188
+                new LabelName((string)$label),
189 189
                 $relationType,
190 190
                 $relationId,
191 191
                 true
@@ -201,7 +201,7 @@  discard block
 block discarded – undo
201 201
     {
202 202
         $labelRelation = null;
203 203
 
204
-        $labelName = new LabelName((string) $labelEvent->getLabel());
204
+        $labelName = new LabelName((string)$labelEvent->getLabel());
205 205
         $relationType = $this->offerTypeResolver->getRelationType($labelEvent);
206 206
         $relationId = new StringLiteral($labelEvent->getItemId());
207 207
 
Please login to merge, or discard this patch.