Completed
Push — master ( 58593e...34b479 )
by Luc
05:58
created
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.
src/Label/ReadModels/Relations/Repository/Doctrine/DBALReadRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
     public function getLabelRelations(LabelName $labelName)
17 17
     {
18 18
         $aliases = $this->getAliases();
19
-        $whereLabelName = SchemaConfigurator::LABEL_NAME . ' = ?';
19
+        $whereLabelName = SchemaConfigurator::LABEL_NAME.' = ?';
20 20
 
21 21
         $queryBuilder = $this->createQueryBuilder()->select($aliases)
22 22
             ->from($this->getTableName()->toNative())
@@ -37,7 +37,7 @@  discard block
 block discarded – undo
37 37
     public function getLabelRelationsForItem(StringLiteral $relationId)
38 38
     {
39 39
         $aliases = $this->getAliases();
40
-        $whereRelationId = SchemaConfigurator::RELATION_ID . ' = ?';
40
+        $whereRelationId = SchemaConfigurator::RELATION_ID.' = ?';
41 41
 
42 42
         $queryBuilder = $this->createQueryBuilder()->select($aliases)
43 43
             ->from($this->getTableName()->toNative())
Please login to merge, or discard this patch.