Completed
Pull Request — master (#139)
by
unknown
05:01
created
src/Place/Events/MajorInfoUpdated.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -10,7 +10,6 @@
 block discarded – undo
10 10
 use CultuurNet\UDB3\Calendar;
11 11
 use CultuurNet\UDB3\CalendarInterface;
12 12
 use CultuurNet\UDB3\Event\EventType;
13
-use CultuurNet\UDB3\Location;
14 13
 use CultuurNet\UDB3\Place\PlaceEvent;
15 14
 use CultuurNet\UDB3\Theme;
16 15
 use CultuurNet\UDB3\Title;
Please login to merge, or discard this patch.
src/Place/ReadModel/JSONLD/EventFactory.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -6,7 +6,6 @@
 block discarded – undo
6 6
 namespace CultuurNet\UDB3\Place\ReadModel\JSONLD;
7 7
 
8 8
 use CultuurNet\UDB3\Event\ReadModel\DocumentEventFactory;
9
-use CultuurNet\UDB3\Place\PlaceEvent;
10 9
 use CultuurNet\UDB3\Place\PlaceProjectedToJSONLD;
11 10
 
12 11
 class EventFactory implements DocumentEventFactory
Please login to merge, or discard this patch.
src/Udb3RepositoryTrait.php 1 patch
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -7,7 +7,6 @@
 block discarded – undo
7 7
 
8 8
 namespace CultuurNet\UDB3;
9 9
 
10
-use Assert\Assertion;
11 10
 use Broadway\Domain\AggregateRoot;
12 11
 use Broadway\Domain\DomainEventStream;
13 12
 
Please login to merge, or discard this patch.
src/CommandHandling/Udb3CommandHandler.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -23,7 +23,7 @@
 block discarded – undo
23 23
 
24 24
         $method = $this->getHandleMethod($command);
25 25
 
26
-        if (! method_exists($this, $method)) {
26
+        if (!method_exists($this, $method)) {
27 27
             return;
28 28
         }
29 29
 
Please login to merge, or discard this patch.
src/Event/Events/LabelsMerged.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     public static function deserialize(array $data)
58 58
     {
59 59
         $labels = array_map(
60
-            function ($item) {
60
+            function($item) {
61 61
                 return new Label(
62 62
                     $item['text'],
63 63
                     $item['visible']
@@ -78,9 +78,9 @@  discard block
 block discarded – undo
78 78
     public function serialize()
79 79
     {
80 80
         $labels = array_map(
81
-            function (Label $label) {
81
+            function(Label $label) {
82 82
                 return [
83
-                    'text' => (string) $label,
83
+                    'text' => (string)$label,
84 84
                     'visible' => $label->isVisible(),
85 85
                 ];
86 86
             },
Please login to merge, or discard this patch.
src/Event/ReadModel/History/HistoryProjector.php 2 patches
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -215,7 +215,7 @@
 block discarded – undo
215 215
         $labels = $labelsMerged->getLabels()->toStrings();
216 216
         // Quote labels.
217 217
         $quotedLabels = array_map(
218
-            function ($label) {
218
+            function($label) {
219 219
                 return "'{$label}'";
220 220
             },
221 221
             $labels
Please login to merge, or discard this patch.
Unused Use Statements   -5 removed lines patch added patch discarded remove patch
@@ -5,9 +5,7 @@  discard block
 block discarded – undo
5 5
 
6 6
 namespace CultuurNet\UDB3\Event\ReadModel\History;
7 7
 
8
-use Broadway\Domain\DateTime;
9 8
 use Broadway\Domain\DomainMessage;
10
-use Broadway\Domain\Metadata;
11 9
 use Broadway\EventHandling\EventListenerInterface;
12 10
 use CultuurNet\UDB3\Cdb\EventItemFactory;
13 11
 use CultuurNet\UDB3\Event\DescriptionTranslated;
@@ -21,11 +19,8 @@  discard block
 block discarded – undo
21 19
 use CultuurNet\UDB3\Event\Events\LabelsMerged;
22 20
 use CultuurNet\UDB3\Event\Events\TranslationDeleted;
23 21
 use CultuurNet\UDB3\Event\Events\LabelDeleted;
24
-use CultuurNet\UDB3\Event\ReadModel\DocumentRepositoryInterface;
25 22
 use CultuurNet\UDB3\Event\TitleTranslated;
26
-use CultuurNet\UDB3\EventHandling\DelegateEventHandlingToSpecificMethodTrait;
27 23
 use CultuurNet\UDB3\Offer\ReadModel\History\OfferHistoryProjector;
28
-use CultuurNet\UDB3\ReadModel\JsonDocument;
29 24
 use ValueObjects\String\String;
30 25
 
31 26
 class HistoryProjector extends OfferHistoryProjector implements EventListenerInterface
Please login to merge, or discard this patch.
src/Event/ReadModel/JSONLD/CdbXMLImporter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -167,7 +167,7 @@
 block discarded – undo
167 167
     {
168 168
         $labels = array_filter(
169 169
             array_values($event->getKeywords()),
170
-            function ($keyword) {
170
+            function($keyword) {
171 171
                 return (strlen(trim($keyword)) > 0);
172 172
             }
173 173
         );
Please login to merge, or discard this patch.
src/Event/ReadModel/Relations/Doctrine/DBALRepository.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
     public function removeOrganizer($eventId)
43 43
     {
44
-        $transaction = function ($connection) use ($eventId) {
44
+        $transaction = function($connection) use ($eventId) {
45 45
             if ($this->eventHasRelations($connection, $eventId)) {
46 46
                 $this->updateEventOrganizerRelation($connection, $eventId, null);
47 47
             }
@@ -52,7 +52,7 @@  discard block
 block discarded – undo
52 52
 
53 53
     public function storeOrganizer($eventId, $organizerId)
54 54
     {
55
-        $transaction = function ($connection) use ($eventId, $organizerId) {
55
+        $transaction = function($connection) use ($eventId, $organizerId) {
56 56
             if ($this->eventHasRelations($connection, $eventId)) {
57 57
                 $this->updateEventOrganizerRelation($connection, $eventId, $organizerId);
58 58
             } else {
Please login to merge, or discard this patch.
src/EventExport/Format/HTML/HTMLEventFormatter.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -247,7 +247,7 @@
 block discarded – undo
247 247
     {
248 248
         return array_keys(array_filter(
249 249
             $this->brandSpecs,
250
-            function (EventSpecificationInterface $brandSpec) use ($event) {
250
+            function(EventSpecificationInterface $brandSpec) use ($event) {
251 251
                 return $brandSpec->isSatisfiedBy($event);
252 252
             }
253 253
         ));
Please login to merge, or discard this patch.