Completed
Push — master ( 3dd078...4ecbc1 )
by Jonas
14s queued 11s
created
src/Event/EventEvent.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -18,7 +18,7 @@
 block discarded – undo
18 18
     {
19 19
         if (!is_string($eventId)) {
20 20
             throw new \InvalidArgumentException(
21
-                'Expected eventId to be a string, received ' . gettype($eventId)
21
+                'Expected eventId to be a string, received '.gettype($eventId)
22 22
             );
23 23
         }
24 24
 
Please login to merge, or discard this patch.
src/Offer/Events/AbstractContactPointUpdated.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -38,7 +38,7 @@
 block discarded – undo
38 38
     }
39 39
 
40 40
     /**
41
-     * @return mixed The object instance
41
+     * @return AbstractContactPointUpdated The object instance
42 42
      */
43 43
     public static function deserialize(array $data)
44 44
     {
Please login to merge, or discard this patch.
src/Offer/IriOfferIdentifier.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -66,7 +66,7 @@  discard block
 block discarded – undo
66 66
     public function jsonSerialize()
67 67
     {
68 68
         return [
69
-            '@id' => (string) $this->iri,
69
+            '@id' => (string)$this->iri,
70 70
             '@type' => $this->type->toNative(),
71 71
         ];
72 72
     }
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     {
79 79
         return json_encode(
80 80
             [
81
-                'iri' => (string) $this->iri,
81
+                'iri' => (string)$this->iri,
82 82
                 'id' => $this->id,
83 83
                 'type' => $this->type->toNative(),
84 84
             ]
Please login to merge, or discard this patch.
src/Offer/Events/AbstractLabelEvent.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -45,7 +45,7 @@
 block discarded – undo
45 45
 
46 46
     /**
47 47
      * @param array $data
48
-     * @return mixed The object instance
48
+     * @return AbstractLabelEvent The object instance
49 49
      */
50 50
     public static function deserialize(array $data)
51 51
     {
Please login to merge, or discard this 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() + array(
41
-            'label' => (string) $this->label,
41
+            'label' => (string)$this->label,
42 42
             'visibility' => $this->label->isVisible(),
43 43
         );
44 44
     }
Please login to merge, or discard this patch.
src/EventSourcing/DBAL/UniqueConstraintException.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
      */
12 12
     public function __construct($uuid, $unique)
13 13
     {
14
-        $message = 'Not unique: uuid = ' . $uuid . ', unique value = ' . $unique;
14
+        $message = 'Not unique: uuid = '.$uuid.', unique value = '.$unique;
15 15
         parent::__construct($message);
16 16
     }
17 17
 }
Please login to merge, or discard this patch.
src/StringFilter/NewlineToBreakTagStringFilter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -11,7 +11,7 @@
 block discarded – undo
11 11
     public function filter($string)
12 12
     {
13 13
         if (!is_string($string)) {
14
-            throw new \InvalidArgumentException('Argument should be string, got ' . gettype($string) . ' instead.');
14
+            throw new \InvalidArgumentException('Argument should be string, got '.gettype($string).' instead.');
15 15
         }
16 16
 
17 17
         // nl2br() only appends <br /> after each \n but does not remove the \n
Please login to merge, or discard this patch.
src/Address/Address.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -81,10 +81,10 @@
 block discarded – undo
81 81
     public function serialize()
82 82
     {
83 83
         return [
84
-          'streetAddress' => $this->streetAddress->toNative(),
85
-          'postalCode' => $this->postalCode->toNative(),
86
-          'addressLocality' => $this->locality->toNative(),
87
-          'addressCountry' => $this->countryCode,
84
+            'streetAddress' => $this->streetAddress->toNative(),
85
+            'postalCode' => $this->postalCode->toNative(),
86
+            'addressLocality' => $this->locality->toNative(),
87
+            'addressCountry' => $this->countryCode,
88 88
         ];
89 89
     }
90 90
 
Please login to merge, or discard this patch.
src/Calendar.php 2 patches
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -84,7 +84,7 @@  discard block
 block discarded – undo
84 84
         );
85 85
 
86 86
         $calendar = [
87
-          'type' => $this->type,
87
+            'type' => $this->type,
88 88
         ];
89 89
 
90 90
         empty($this->startDate) ?: $calendar['startDate'] = $this->startDate->format(DateTime::ATOM);
@@ -167,9 +167,9 @@  discard block
 block discarded – undo
167 167
             $jsonLd['subEvent'] = array();
168 168
             foreach ($timestamps as $timestamp) {
169 169
                 $jsonLd['subEvent'][] = array(
170
-                  '@type' => 'Event',
171
-                  'startDate' => $timestamp->getStartDate()->format(DateTime::ATOM),
172
-                  'endDate' => $timestamp->getEndDate()->format(DateTime::ATOM),
170
+                    '@type' => 'Event',
171
+                    'startDate' => $timestamp->getStartDate()->format(DateTime::ATOM),
172
+                    'endDate' => $timestamp->getEndDate()->format(DateTime::ATOM),
173 173
                 );
174 174
             }
175 175
         }
Please login to merge, or discard this patch.
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
         array $openingHours = array()
63 63
     ) {
64 64
         if (($type->is(CalendarType::MULTIPLE()) || $type->is(CalendarType::SINGLE())) && empty($startDate)) {
65
-            throw new \UnexpectedValueException('Start date can not be empty for calendar type: ' . $type . '.');
65
+            throw new \UnexpectedValueException('Start date can not be empty for calendar type: '.$type.'.');
66 66
         }
67 67
 
68 68
         if ($type->is(CalendarType::PERIODIC()) && (empty($startDate) || empty($endDate))) {
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
         $this->endDate = $endDate;
87 87
         $this->openingHours = $openingHours;
88 88
 
89
-        usort($timestamps, function (Timestamp $timestamp, Timestamp $otherTimestamp) {
89
+        usort($timestamps, function(Timestamp $timestamp, Timestamp $otherTimestamp) {
90 90
             return $timestamp->getStartDate() <=> $otherTimestamp->getStartDate();
91 91
         });
92 92
 
@@ -108,14 +108,14 @@  discard block
 block discarded – undo
108 108
     public function serialize()
109 109
     {
110 110
         $serializedTimestamps = array_map(
111
-            function (Timestamp $timestamp) {
111
+            function(Timestamp $timestamp) {
112 112
                 return $timestamp->serialize();
113 113
             },
114 114
             $this->timestamps
115 115
         );
116 116
 
117 117
         $serializedOpeningHours = array_map(
118
-            function (OpeningHour $openingHour) {
118
+            function(OpeningHour $openingHour) {
119 119
                 return $openingHour->serialize();
120 120
             },
121 121
             $this->openingHours
@@ -143,13 +143,13 @@  discard block
 block discarded – undo
143 143
             !empty($data['startDate']) ? self::deserializeDateTime($data['startDate']) : null,
144 144
             !empty($data['endDate']) ? self::deserializeDateTime($data['endDate']) : null,
145 145
             !empty($data['timestamps']) ? array_map(
146
-                function ($timestamp) {
146
+                function($timestamp) {
147 147
                     return Timestamp::deserialize($timestamp);
148 148
                 },
149 149
                 $data['timestamps']
150 150
             ) : [],
151 151
             !empty($data['openingHours']) ? array_map(
152
-                function ($openingHour) {
152
+                function($openingHour) {
153 153
                     return OpeningHour::deserialize($openingHour);
154 154
                 },
155 155
                 $data['openingHours']
@@ -308,7 +308,7 @@  discard block
 block discarded – undo
308 308
 
309 309
         if ($calendar instanceof CalendarWithSubEvents) {
310 310
             $timestamps = array_map(
311
-                function (DateRange $dateRange) {
311
+                function(DateRange $dateRange) {
312 312
                     return Timestamp::fromUdb3ModelDateRange($dateRange);
313 313
                 },
314 314
                 $calendar->getSubEvents()->toArray()
@@ -317,7 +317,7 @@  discard block
 block discarded – undo
317 317
 
318 318
         if ($calendar instanceof CalendarWithOpeningHours) {
319 319
             $openingHours = array_map(
320
-                function (Udb3ModelOpeningHour $openingHour) {
320
+                function(Udb3ModelOpeningHour $openingHour) {
321 321
                     return OpeningHour::fromUdb3ModelOpeningHour($openingHour);
322 322
                 },
323 323
                 $calendar->getOpeningHours()->toArray()
Please login to merge, or discard this patch.
src/PriceInfo/Price.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -21,7 +21,7 @@
 block discarded – undo
21 21
         }
22 22
 
23 23
         $precision = 0;
24
-        return new Price((int) round($value * 100, $precision));
24
+        return new Price((int)round($value * 100, $precision));
25 25
     }
26 26
 
27 27
     /**
Please login to merge, or discard this patch.