Completed
Pull Request — master (#398)
by Kristof
03:34
created
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/Organizer/OrganizerLDProjector.php 2 patches
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -217,7 +217,7 @@  discard block
 block discarded – undo
217 217
 
218 218
         $this->setMainLanguage($jsonLD, $organizerCreated->getMainLanguage());
219 219
 
220
-        $jsonLD->url = (string) $organizerCreated->getWebsite();
220
+        $jsonLD->url = (string)$organizerCreated->getWebsite();
221 221
 
222 222
         $jsonLD->name = [
223 223
             $this->getMainLanguage($jsonLD)->getCode() => $organizerCreated->getTitle(),
@@ -248,7 +248,7 @@  discard block
 block discarded – undo
248 248
         $document = $this->repository->get($organizerId);
249 249
 
250 250
         $jsonLD = $document->getBody();
251
-        $jsonLD->url = (string) $websiteUpdated->getWebsite();
251
+        $jsonLD->url = (string)$websiteUpdated->getWebsite();
252 252
 
253 253
         return $document->withBody($jsonLD);
254 254
     }
@@ -356,7 +356,7 @@  discard block
 block discarded – undo
356 356
         $labelsProperty = $labelAdded->getLabel()->isVisible() ? 'labels' : 'hiddenLabels';
357 357
 
358 358
         $labels = isset($jsonLD->{$labelsProperty}) ? $jsonLD->{$labelsProperty} : [];
359
-        $label = (string) $labelAdded->getLabel();
359
+        $label = (string)$labelAdded->getLabel();
360 360
 
361 361
         $labels[] = $label;
362 362
         $jsonLD->{$labelsProperty} = array_unique($labels);
@@ -380,7 +380,7 @@  discard block
 block discarded – undo
380 380
             if (isset($jsonLD->{$labelsProperty}) && is_array($jsonLD->{$labelsProperty})) {
381 381
                 $jsonLD->{$labelsProperty} = array_filter(
382 382
                     $jsonLD->{$labelsProperty},
383
-                    function ($label) use ($labelRemoved) {
383
+                    function($label) use ($labelRemoved) {
384 384
                         return !$labelRemoved->getLabel()->equals(
385 385
                             new Label($label)
386 386
                         );
@@ -407,7 +407,7 @@  discard block
 block discarded – undo
407 407
     private function applyOrganizerDeleted(
408 408
         OrganizerDeleted $organizerDeleted
409 409
     ) {
410
-        $document =  $this->repository->get($organizerDeleted->getOrganizerId());
410
+        $document = $this->repository->get($organizerDeleted->getOrganizerId());
411 411
 
412 412
         $jsonLD = $document->getBody();
413 413
 
Please login to merge, or discard this patch.
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -197,7 +197,7 @@
 block discarded – undo
197 197
     /**
198 198
      * @param $jsonLD
199 199
      * @param DomainMessage $domainMessage
200
-     * @return mixed
200
+     * @return \stdClass
201 201
      */
202 202
     private function appendCreator($jsonLD, $domainMessage)
203 203
     {
Please login to merge, or discard this patch.
src/Offer/Commands/AbstractCreateCommand.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@
 block discarded – undo
19 19
     {
20 20
         if (!is_string($itemId)) {
21 21
             throw new \InvalidArgumentException(
22
-                'Expected itemId to be a string, received ' . gettype($itemId)
22
+                'Expected itemId to be a string, received '.gettype($itemId)
23 23
             );
24 24
         }
25 25
 
Please login to merge, or discard this patch.
src/Organizer/DBALWebsiteLookupService.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@  discard block
 block discarded – undo
27 27
         $tableName
28 28
     ) {
29 29
         $this->connection = $connection;
30
-        $this->tableName = (string) $tableName;
30
+        $this->tableName = (string)$tableName;
31 31
     }
32 32
 
33 33
     /**
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
             ->select(UniqueDBALEventStoreDecorator::UUID_COLUMN)
42 42
             ->from($this->tableName)
43 43
             ->where($expr->eq(UniqueDBALEventStoreDecorator::UNIQUE_COLUMN, ':url'))
44
-            ->setParameter(':url', (string) $url)
44
+            ->setParameter(':url', (string)$url)
45 45
             ->execute();
46 46
 
47 47
         $uuid = $results->fetchColumn();
Please login to merge, or discard this patch.
src/Offer/OfferFacilityResolver.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -25,11 +25,11 @@
 block discarded – undo
25 25
      */
26 26
     public function byId(StringLiteral $facilityId)
27 27
     {
28
-        if (!array_key_exists((string) $facilityId, $this->facilities)) {
28
+        if (!array_key_exists((string)$facilityId, $this->facilities)) {
29 29
             throw new \Exception("Unknown facility id '{$facilityId}'");
30 30
         }
31 31
 
32
-        return $this->facilities[(string) $facilityId];
32
+        return $this->facilities[(string)$facilityId];
33 33
     }
34 34
 
35 35
     /**
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
@@ -49,7 +49,7 @@
 block discarded – undo
49 49
     public function getNames()
50 50
     {
51 51
         return [
52
-            new StringLiteral((string) $this->label),
52
+            new StringLiteral((string)$this->label),
53 53
         ];
54 54
     }
55 55
 
Please login to merge, or discard this patch.
src/Offer/Commands/AbstractImportLabels.php 1 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 getNames()
39 39
     {
40 40
         return array_map(
41
-            function (Label $label) {
41
+            function(Label $label) {
42 42
                 return new StringLiteral($label->getName()->toString());
43 43
             },
44 44
             $this->getLabels()->toArray()
Please login to merge, or discard this patch.
src/Organizer/Commands/ImportLabels.php 1 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 getNames()
39 39
     {
40 40
         return array_map(
41
-            function (Label $label) {
41
+            function(Label $label) {
42 42
                 return new StringLiteral($label->getName()->toString());
43 43
             },
44 44
             $this->getLabels()->toArray()
Please login to merge, or discard this patch.