Completed
Push — master ( 53a723...32b89d )
by
unknown
11s
created
src/Calendar/CalendarConverter.php 1 patch
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -26,7 +26,7 @@  discard block
 block discarded – undo
26 26
     public function toCdbCalendar(CalendarInterface $calendar)
27 27
     {
28 28
         $weekScheme = $this->getWeekScheme($calendar);
29
-        $calendarType = (string) $calendar->getType();
29
+        $calendarType = (string)$calendar->getType();
30 30
 
31 31
         switch ($calendarType) {
32 32
             case CalendarType::MULTIPLE:
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
      */
85 85
     private function countTimestamps(CultureFeed_Cdb_Data_Calendar_TimestampList $timestamps)
86 86
     {
87
-        $numberOfTimestamps =  iterator_count($timestamps);
87
+        $numberOfTimestamps = iterator_count($timestamps);
88 88
         $timestamps->rewind();
89 89
 
90 90
         return $numberOfTimestamps;
@@ -118,12 +118,12 @@  discard block
 block discarded – undo
118 118
             foreach ($openingHours as $openingHour) {
119 119
                 // In CDB2 every day needs to be a seperate entry.
120 120
                 if (is_array($openingHour)) {
121
-                    $openingHour = (object) $openingHour;
121
+                    $openingHour = (object)$openingHour;
122 122
                 }
123 123
                 foreach ($openingHour->getDayOfWeekCollection()->getDaysOfWeek() as $day) {
124 124
                     $openingTimesPerDay[$day->toNative()][] = new CultureFeed_Cdb_Data_Calendar_OpeningTime(
125
-                        $openingHour->getOpens()->toNativeString() . ':00',
126
-                        $openingHour->getCloses()->toNativeString() . ':00'
125
+                        $openingHour->getOpens()->toNativeString().':00',
126
+                        $openingHour->getCloses()->toNativeString().':00'
127 127
                     );
128 128
                 }
129 129
             }
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
             } else {
207 207
                 $days = iterator_to_array($period->getDatePeriod('1 DAY'));
208 208
                 $fillerTimestamps = array_map(
209
-                    function (DateTimeInterface $dateTime) use ($index) {
209
+                    function(DateTimeInterface $dateTime) use ($index) {
210 210
                         return new CultureFeed_Cdb_Data_Calendar_Timestamp(
211 211
                             $dateTime->format('Y-m-d'),
212 212
                             $this->createIndexedTimeString($index)
@@ -218,7 +218,7 @@  discard block
 block discarded – undo
218 218
 
219 219
             $newCalendar = array_reduce(
220 220
                 array_merge([$startTimestamp], $fillerTimestamps, [$endTimestamp]),
221
-                function (CultureFeed_Cdb_Data_Calendar_TimestampList $calendar, $timestamp) {
221
+                function(CultureFeed_Cdb_Data_Calendar_TimestampList $calendar, $timestamp) {
222 222
                     $calendar->add($timestamp);
223 223
                     return $calendar;
224 224
                 },
@@ -241,7 +241,7 @@  discard block
 block discarded – undo
241 241
         }
242 242
 
243 243
         $time = is_int($index)
244
-            ? $timestamp->format('H:i') . ':' . str_pad((string) $index, 2, '0', STR_PAD_LEFT)
244
+            ? $timestamp->format('H:i').':'.str_pad((string)$index, 2, '0', STR_PAD_LEFT)
245 245
             : $timestamp->format('H:i:s');
246 246
 
247 247
         return $time;
@@ -253,6 +253,6 @@  discard block
 block discarded – undo
253 253
      */
254 254
     private function createIndexedTimeString($index)
255 255
     {
256
-        return '00:00:' . str_pad((string) $index, 2, '0', STR_PAD_LEFT);
256
+        return '00:00:'.str_pad((string)$index, 2, '0', STR_PAD_LEFT);
257 257
     }
258 258
 }
Please login to merge, or discard this patch.
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/Search/Sapi3SearchService.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,13 +43,13 @@  discard block
 block discarded – undo
43 43
 
44 44
     public function search($query, $limit = 30, $start = 0, $sort = null)
45 45
     {
46
-        $queryParameters = 'q=' . urlencode($query) . '&start=' . $start . '&limit=' . $limit;
46
+        $queryParameters = 'q='.urlencode($query).'&start='.$start.'&limit='.$limit;
47 47
 
48 48
         $offerQuery = $this->searchLocation->withQuery($queryParameters);
49 49
 
50 50
         $offerRequest = new Request(
51 51
             'GET',
52
-            (string) $offerQuery
52
+            (string)$offerQuery
53 53
         );
54 54
 
55 55
         $searchResponseData = json_decode($this->httpClient
@@ -59,7 +59,7 @@  discard block
 block discarded – undo
59 59
 
60 60
         $offerIds = array_reduce(
61 61
             $searchResponseData->{'member'},
62
-            function (OfferIdentifierCollection $offerIds, $item) {
62
+            function(OfferIdentifierCollection $offerIds, $item) {
63 63
                 return $offerIds->with(
64 64
                     $this->offerIdentifier->fromIri(Url::fromNative($item->{'@id'}))
65 65
                 );
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/Organizer/Commands/AbstractLabelCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -48,7 +48,7 @@
 block discarded – undo
48 48
      */
49 49
     public function getName()
50 50
     {
51
-        return new StringLiteral((string) $this->label);
51
+        return new StringLiteral((string)$this->label);
52 52
     }
53 53
 
54 54
     public function getPermission()
Please login to merge, or discard this patch.
src/Media/Commands/UploadImage.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -117,7 +117,7 @@
 block discarded – undo
117 117
      */
118 118
     public function getItemId()
119 119
     {
120
-        return (string) $this->getFileId();
120
+        return (string)$this->getFileId();
121 121
     }
122 122
 
123 123
     /**
Please login to merge, or discard this patch.
src/Role/Commands/AbstractCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@
 block discarded – undo
35 35
      */
36 36
     public function getItemId()
37 37
     {
38
-        return (string) $this->getUuid();
38
+        return (string)$this->getUuid();
39 39
     }
40 40
 
41 41
     /**
Please login to merge, or discard this patch.
src/Event/EventThemeResolver.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -590,7 +590,7 @@  discard block
 block discarded – undo
590 590
 
591 591
         $this->themes = array_reduce(
592 592
             $themePerType,
593
-            function ($themes, array $type) {
593
+            function($themes, array $type) {
594 594
                 if (array_key_exists('themes', $type)) {
595 595
                     foreach ($type['themes'] as $themeData) {
596 596
                         $themes[$themeData['id']] = new Theme($themeData['id'], $themeData['label']);
@@ -608,9 +608,9 @@  discard block
 block discarded – undo
608 608
      */
609 609
     public function byId(StringLiteral $themeId)
610 610
     {
611
-        if (!array_key_exists((string) $themeId, $this->themes)) {
612
-            throw new \Exception("Unknown event theme id: " . $themeId);
611
+        if (!array_key_exists((string)$themeId, $this->themes)) {
612
+            throw new \Exception("Unknown event theme id: ".$themeId);
613 613
         }
614
-        return $this->themes[(string) $themeId];
614
+        return $this->themes[(string)$themeId];
615 615
     }
616 616
 }
Please login to merge, or discard this patch.
src/Event/EventTypeResolver.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -43,9 +43,9 @@
 block discarded – undo
43 43
      */
44 44
     public function byId(StringLiteral $typeId)
45 45
     {
46
-        if (!array_key_exists((string) $typeId, $this->types)) {
47
-            throw new \Exception("Unknown event type id: " . $typeId);
46
+        if (!array_key_exists((string)$typeId, $this->types)) {
47
+            throw new \Exception("Unknown event type id: ".$typeId);
48 48
         }
49
-        return $this->types[(string) $typeId];
49
+        return $this->types[(string)$typeId];
50 50
     }
51 51
 }
Please login to merge, or discard this patch.