Completed
Pull Request — master (#466)
by Jonas
02:19
created
src/Offer/Events/AbstractTitleUpdated.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
-            'title' => (string) $this->title,
39
+            'title' => (string)$this->title,
40 40
         );
41 41
     }
42 42
 
Please login to merge, or discard this patch.
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/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/DayOfWeekCollection.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
     public function getDaysOfWeek()
53 53
     {
54 54
         return array_map(
55
-            function ($dayOfWeek) {
55
+            function($dayOfWeek) {
56 56
                 return DayOfWeek::fromNative($dayOfWeek);
57 57
             },
58 58
             $this->daysOfWeek
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     {
67 67
         return array_reduce(
68 68
             $data,
69
-            function (DayOfWeekCollection $collection, $dayOfWeek) {
69
+            function(DayOfWeekCollection $collection, $dayOfWeek) {
70 70
                  return $collection->addDayOfWeek(DayOfWeek::fromNative($dayOfWeek));
71 71
             },
72 72
             new DayOfWeekCollection()
@@ -88,7 +88,7 @@  discard block
 block discarded – undo
88 88
     public static function fromUdb3ModelDays(Days $days)
89 89
     {
90 90
         $days = array_map(
91
-            function (Day $day) {
91
+            function(Day $day) {
92 92
                 return DayOfWeek::fromUdb3ModelDay($day);
93 93
             },
94 94
             $days->toArray()
Please login to merge, or discard this patch.
src/ContactPoint.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -112,21 +112,21 @@
 block discarded – undo
112 112
     public static function fromUdb3ModelContactPoint(Udb3ModelContactPoint $contactPoint)
113 113
     {
114 114
         $phones = array_map(
115
-            function (TelephoneNumber $phone) {
115
+            function(TelephoneNumber $phone) {
116 116
                 return $phone->toString();
117 117
             },
118 118
             $contactPoint->getTelephoneNumbers()->toArray()
119 119
         );
120 120
 
121 121
         $emails = array_map(
122
-            function (EmailAddress $emailAddress) {
122
+            function(EmailAddress $emailAddress) {
123 123
                 return $emailAddress->toString();
124 124
             },
125 125
             $contactPoint->getEmailAddresses()->toArray()
126 126
         );
127 127
 
128 128
         $urls = array_map(
129
-            function (Url $url) {
129
+            function(Url $url) {
130 130
                 return $url->toString();
131 131
             },
132 132
             $contactPoint->getUrls()->toArray()
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/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.