Completed
Pull Request — master (#466)
by Jonas
02:19
created
src/CommandHandling/UnauthorizableCommandException.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,8 +22,8 @@
 block discarded – undo
22 22
      */
23 23
     public function __construct(StringLiteral $userId, $command)
24 24
     {
25
-        parent::__construct('User with id: ' . $userId->toNative() .
26
-            ' failed to execute command: ' . get_class($command) .
25
+        parent::__construct('User with id: '.$userId->toNative().
26
+            ' failed to execute command: '.get_class($command).
27 27
             ' because it is not authorizable.');
28 28
 
29 29
         $this->userId = $userId;
Please login to merge, or discard this patch.
src/Offer/Events/AbstractFacilitiesUpdated.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -32,7 +32,7 @@
 block discarded – undo
32 32
 
33 33
     /**
34 34
      * @param array $data
35
-     * @return mixed The object instance
35
+     * @return AbstractFacilitiesUpdated The object instance
36 36
      */
37 37
     public static function deserialize(array $data)
38 38
     {
Please login to merge, or discard this patch.
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/Calendar/CalendarConverter.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -40,7 +40,7 @@  discard block
 block discarded – undo
40 40
     public function toCdbCalendar(CalendarInterface $calendar)
41 41
     {
42 42
         $weekScheme = $this->getWeekScheme($calendar);
43
-        $calendarType = (string) $calendar->getType();
43
+        $calendarType = (string)$calendar->getType();
44 44
 
45 45
         switch ($calendarType) {
46 46
             case CalendarType::MULTIPLE:
@@ -99,7 +99,7 @@  discard block
 block discarded – undo
99 99
      */
100 100
     private function countTimestamps(CultureFeed_Cdb_Data_Calendar_TimestampList $timestamps)
101 101
     {
102
-        $numberOfTimestamps =  iterator_count($timestamps);
102
+        $numberOfTimestamps = iterator_count($timestamps);
103 103
         $timestamps->rewind();
104 104
 
105 105
         return $numberOfTimestamps;
@@ -133,12 +133,12 @@  discard block
 block discarded – undo
133 133
             foreach ($openingHours as $openingHour) {
134 134
                 // In CDB2 every day needs to be a seperate entry.
135 135
                 if (is_array($openingHour)) {
136
-                    $openingHour = (object) $openingHour;
136
+                    $openingHour = (object)$openingHour;
137 137
                 }
138 138
                 foreach ($openingHour->getDayOfWeekCollection()->getDaysOfWeek() as $day) {
139 139
                     $openingTimesPerDay[$day->toNative()][] = new CultureFeed_Cdb_Data_Calendar_OpeningTime(
140
-                        $openingHour->getOpens()->toNativeString() . ':00',
141
-                        $openingHour->getCloses()->toNativeString() . ':00'
140
+                        $openingHour->getOpens()->toNativeString().':00',
141
+                        $openingHour->getCloses()->toNativeString().':00'
142 142
                     );
143 143
                 }
144 144
             }
@@ -221,7 +221,7 @@  discard block
 block discarded – undo
221 221
             } else {
222 222
                 $days = iterator_to_array($period->getDatePeriod('1 DAY'));
223 223
                 $fillerTimestamps = array_map(
224
-                    function (DateTimeInterface $dateTime) use ($index) {
224
+                    function(DateTimeInterface $dateTime) use ($index) {
225 225
                         return new CultureFeed_Cdb_Data_Calendar_Timestamp(
226 226
                             $dateTime->format('Y-m-d'),
227 227
                             $this->createIndexedTimeString($index)
@@ -233,7 +233,7 @@  discard block
 block discarded – undo
233 233
 
234 234
             $newCalendar = array_reduce(
235 235
                 array_merge([$startTimestamp], $fillerTimestamps, [$endTimestamp]),
236
-                function (CultureFeed_Cdb_Data_Calendar_TimestampList $calendar, $timestamp) {
236
+                function(CultureFeed_Cdb_Data_Calendar_TimestampList $calendar, $timestamp) {
237 237
                     $calendar->add($timestamp);
238 238
                     return $calendar;
239 239
                 },
@@ -256,7 +256,7 @@  discard block
 block discarded – undo
256 256
         }
257 257
 
258 258
         $time = is_int($index)
259
-            ? $timestamp->format('H:i') . ':' . str_pad((string) $index, 2, '0', STR_PAD_LEFT)
259
+            ? $timestamp->format('H:i').':'.str_pad((string)$index, 2, '0', STR_PAD_LEFT)
260 260
             : $timestamp->format('H:i:s');
261 261
 
262 262
         return $time;
@@ -268,7 +268,7 @@  discard block
 block discarded – undo
268 268
      */
269 269
     private function createIndexedTimeString($index)
270 270
     {
271
-        return '00:00:' . str_pad((string) $index, 2, '0', STR_PAD_LEFT);
271
+        return '00:00:'.str_pad((string)$index, 2, '0', STR_PAD_LEFT);
272 272
     }
273 273
 
274 274
     /**
Please login to merge, or discard this patch.
src/BookingInfo.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -237,7 +237,7 @@
 block discarded – undo
237 237
     }
238 238
 
239 239
     /**
240
-     * @param $string
240
+     * @param string|null $string
241 241
      * @return null|string
242 242
      */
243 243
     private function castEmptyStringToNull($string)
Please login to merge, or discard this patch.
Indentation   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -116,9 +116,9 @@
 block discarded – undo
116 116
     {
117 117
         $serialized = array_filter(
118 118
             [
119
-              'phone' => $this->phone,
120
-              'email' => $this->email,
121
-              'url' => $this->url,
119
+                'phone' => $this->phone,
120
+                'email' => $this->email,
121
+                'url' => $this->url,
122 122
             ]
123 123
         );
124 124
 
Please login to merge, or discard this patch.
src/Storage/DBALPurgeService.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -42,7 +42,7 @@
 block discarded – undo
42 42
         $this->connection->exec($sql);
43 43
 
44 44
         if ($platform instanceof SqlitePlatform) {
45
-            $sql = 'UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME=' . $this->connection->quoteIdentifier($this->tableName);
45
+            $sql = 'UPDATE SQLITE_SEQUENCE SET SEQ=0 WHERE NAME='.$this->connection->quoteIdentifier($this->tableName);
46 46
             $this->connection->exec($sql);
47 47
         }
48 48
     }
Please login to merge, or discard this patch.
src/EventSourcing/DomainMessageBuilder.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -88,7 +88,7 @@
 block discarded – undo
88 88
             )
89 89
         );
90 90
 
91
-        $message =  new DomainMessage(
91
+        $message = new DomainMessage(
92 92
             $this->id ?? UUID::generateAsString(),
93 93
             $this->playhead ?? 1,
94 94
             $finalMetaData,
Please login to merge, or discard this patch.