Completed
Pull Request — master (#290)
by Luc
05:35
created
src/Role/Role.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@
 block discarded – undo
52 52
     private $userIds = [];
53 53
 
54 54
     /**
55
-     * @return string
55
+     * @return UUID
56 56
      */
57 57
     public function getAggregateRootId()
58 58
     {
Please login to merge, or discard this patch.
src/Variations/DefaultOfferVariationService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -69,7 +69,7 @@  discard block
 block discarded – undo
69 69
     public function editDescription(Id $id, Description $description)
70 70
     {
71 71
         /** @var OfferVariation $variation */
72
-        $variation = $this->eventVariationRepository->load((string) $id);
72
+        $variation = $this->eventVariationRepository->load((string)$id);
73 73
 
74 74
         $variation->editDescription($description);
75 75
 
@@ -82,7 +82,7 @@  discard block
 block discarded – undo
82 82
     public function deleteEventVariation(Id $id)
83 83
     {
84 84
         /** @var OfferVariation $variation */
85
-        $variation = $this->eventVariationRepository->load((string) $id);
85
+        $variation = $this->eventVariationRepository->load((string)$id);
86 86
 
87 87
         $variation->markDeleted();
88 88
 
Please login to merge, or discard this patch.
src/CalendarFactory.php 1 patch
Spacing   +10 added lines, -10 removed lines patch added patch discarded remove patch
@@ -36,14 +36,14 @@  discard block
 block discarded – undo
36 36
         if ($cdbCalendar instanceof \CultureFeed_Cdb_Data_Calendar_PeriodList) {
37 37
             /** @var \CultureFeed_Cdb_Data_Calendar_Period $period */
38 38
             $period = $cdbCalendar->current();
39
-            $startDateString = $period->getDateFrom() . 'T00:00:00';
39
+            $startDateString = $period->getDateFrom().'T00:00:00';
40 40
         } else if ($cdbCalendar instanceof \CultureFeed_Cdb_Data_Calendar_TimestampList) {
41 41
             /** @var \CultureFeed_Cdb_Data_Calendar_Timestamp $timestamp */
42 42
             $timestamp = $cdbCalendar->current();
43 43
             if ($timestamp->getStartTime()) {
44
-                $startDateString = $timestamp->getDate() . 'T' . $timestamp->getStartTime();
44
+                $startDateString = $timestamp->getDate().'T'.$timestamp->getStartTime();
45 45
             } else {
46
-                $startDateString = $timestamp->getDate() . 'T00:00:00';
46
+                $startDateString = $timestamp->getDate().'T00:00:00';
47 47
             }
48 48
         }
49 49
         $startDate = !empty($startDateString) ? DateTimeFactory::dateTimeFromDateString($startDateString) : null;
@@ -56,17 +56,17 @@  discard block
 block discarded – undo
56 56
         if ($cdbCalendar instanceof \CultureFeed_Cdb_Data_Calendar_PeriodList) {
57 57
             /** @var \CultureFeed_Cdb_Data_Calendar_Period $period */
58 58
             $period = $cdbCalendar->current();
59
-            $endDateString = $period->getDateTo() . 'T00:00:00';
59
+            $endDateString = $period->getDateTo().'T00:00:00';
60 60
         } else if ($cdbCalendar instanceof \CultureFeed_Cdb_Data_Calendar_TimestampList) {
61 61
             $firstTimestamp = $cdbCalendar->current();
62 62
             /** @var \CultureFeed_Cdb_Data_Calendar_Timestamp $timestamp */
63 63
             $cdbCalendarAsArray = iterator_to_array($cdbCalendar);
64 64
             $timestamp = iterator_count($cdbCalendar) > 1 ? end($cdbCalendarAsArray) : $firstTimestamp;
65 65
             if ($timestamp->getEndTime()) {
66
-                $endDateString = $timestamp->getDate() . 'T' . $timestamp->getEndTime();
66
+                $endDateString = $timestamp->getDate().'T'.$timestamp->getEndTime();
67 67
             } else {
68 68
                 $endTime = $timestamp->getStartTime() ? $timestamp->getStartTime() : '00:00:00';
69
-                $endDateString = $timestamp->getDate() . 'T' . $endTime;
69
+                $endDateString = $timestamp->getDate().'T'.$endTime;
70 70
             }
71 71
         }
72 72
         $endDate = !empty($endDateString) ? DateTimeFactory::dateTimeFromDateString($endDateString) : null;
@@ -83,12 +83,12 @@  discard block
 block discarded – undo
83 83
                 $cdbCalendar->next();
84 84
 
85 85
                 $startTime = $timestamp->getStartTime() ? $timestamp->getStartTime() : '00:00:00';
86
-                $startDateString = $timestamp->getDate() . 'T' . $startTime;
86
+                $startDateString = $timestamp->getDate().'T'.$startTime;
87 87
 
88 88
                 if ($timestamp->getEndTime()) {
89
-                    $endDateString = $timestamp->getDate() . 'T' . $timestamp->getEndTime();
89
+                    $endDateString = $timestamp->getDate().'T'.$timestamp->getEndTime();
90 90
                 } else {
91
-                    $endDateString = $timestamp->getDate() . 'T' . $startTime;
91
+                    $endDateString = $timestamp->getDate().'T'.$startTime;
92 92
                 }
93 93
 
94 94
                 $timestamps[] = $this->createTimestamp(
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
             $openingHour = $mergedOpeningHour->getOpeningHours()[0];
219 219
             $openingHoursAsArray[] = [
220 220
                 'dayOfWeek' => array_map(
221
-                    function (WeekDay $weekDay) {
221
+                    function(WeekDay $weekDay) {
222 222
                         return strtolower($weekDay->toNative());
223 223
                     },
224 224
                     $mergedOpeningHour->getWeekDays()
Please login to merge, or discard this patch.
src/Address/DefaultAddressFormatter.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -10,9 +10,9 @@
 block discarded – undo
10 10
      */
11 11
     public function format(Address $address)
12 12
     {
13
-        return $address->getStreetAddress() . ', ' .
14
-            $address->getPostalCode() . ' ' .
15
-            $address->getLocality() . ', ' .
13
+        return $address->getStreetAddress().', '.
14
+            $address->getPostalCode().' '.
15
+            $address->getLocality().', '.
16 16
             $address->getCountry()->getCode();
17 17
     }
18 18
 }
Please login to merge, or discard this patch.
src/Organizer/Commands/AbstractLabelCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -56,6 +56,6 @@
 block discarded – undo
56 56
      */
57 57
     public function getName()
58 58
     {
59
-        return new StringLiteral((string) $this->label);
59
+        return new StringLiteral((string)$this->label);
60 60
     }
61 61
 }
Please login to merge, or discard this patch.
src/Organizer/Organizer.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -204,7 +204,7 @@
 block discarded – undo
204 204
     protected function applyOrganizerImportedFromUDB2(
205 205
         OrganizerImportedFromUDB2 $organizerImported
206 206
     ) {
207
-        $this->actorId = (string) $organizerImported->getActorId();
207
+        $this->actorId = (string)$organizerImported->getActorId();
208 208
 
209 209
         $actor = ActorItemFactory::createActorFromCdbXml(
210 210
             $organizerImported->getCdbXmlNamespaceUri(),
Please login to merge, or discard this patch.
src/Organizer/Events/AbstractLabelEvent.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
     public function serialize()
61 61
     {
62 62
         return parent::serialize() + [
63
-            'label' => (string) $this->label,
63
+            'label' => (string)$this->label,
64 64
             'visibility' => $this->label->isVisible(),
65 65
         ];
66 66
     }
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
@@ -55,8 +55,8 @@
 block discarded – undo
55 55
     public function serialize()
56 56
     {
57 57
         return parent::serialize() + array(
58
-            'website' => (string) $this->getWebsite(),
59
-            'title' => (string) $this->getTitle(),
58
+            'website' => (string)$this->getWebsite(),
59
+            'title' => (string)$this->getTitle(),
60 60
         );
61 61
     }
62 62
 
Please login to merge, or discard this patch.
src/Label/LabelEventRelationTypeResolver.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -59,6 +59,6 @@
 block discarded – undo
59 59
      */
60 60
     private function createIllegalArgumentMessage($labelEvent)
61 61
     {
62
-        return 'Event with type ' . get_class($labelEvent) . ' can not be converted to a relation type!';
62
+        return 'Event with type '.get_class($labelEvent).' can not be converted to a relation type!';
63 63
     }
64 64
 }
Please login to merge, or discard this patch.