Completed
Push — master ( 670c74...7830c9 )
by Kristof
05:10
created
src/Variations/ReadModel/Search/Criteria.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file
4
- */
3
+     * @file
4
+     */
5 5
 
6 6
 namespace CultuurNet\UDB3\Variations;
7 7
 
Please login to merge, or discard this patch.
src/Variations/ReadModel/Search/CriteriaFromParameterBagFactory.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file
4
- */
3
+     * @file
4
+     */
5 5
 
6 6
 namespace CultuurNet\UDB3\Variations;
7 7
 
Please login to merge, or discard this patch.
src/Variations/ReadModel/Search/Doctrine/ExpressionFactory.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file
4
- */
3
+     * @file
4
+     */
5 5
 
6 6
 namespace CultuurNet\UDB3\Variations;
7 7
 
Please login to merge, or discard this patch.
src/Event/EventCommandHandler.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -22,9 +22,7 @@
 block discarded – undo
22 22
 use CultuurNet\UDB3\Event\Commands\UpdateOrganizer;
23 23
 use CultuurNet\UDB3\Event\Commands\UpdateTypicalAgeRange;
24 24
 use CultuurNet\UDB3\Label as Label;
25
-use CultuurNet\UDB3\Search\Results;
26 25
 use CultuurNet\UDB3\Search\SearchServiceInterface;
27
-use Guzzle\Http\Exception\ClientErrorResponseException;
28 26
 use Psr\Log\LoggerAwareInterface;
29 27
 use Psr\Log\LoggerAwareTrait;
30 28
 
Please login to merge, or discard this patch.
src/EventExport/Command/ExportEventsAsOOXML.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file
4
- */
3
+     * @file
4
+     */
5 5
 
6 6
 namespace CultuurNet\UDB3\Variations;
7 7
 
Please login to merge, or discard this patch.
src/EventExport/Command/ExportEventsAsJsonLD.php 1 patch
Indentation   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -1,7 +1,7 @@
 block discarded – undo
1 1
 <?php
2 2
 /**
3
- * @file
4
- */
3
+     * @file
4
+     */
5 5
 
6 6
 namespace CultuurNet\UDB3\Variations;
7 7
 
Please login to merge, or discard this patch.
src/Event/Event.php 3 patches
Doc Comments   +5 added lines, -7 removed lines patch added patch discarded remove patch
@@ -67,8 +67,9 @@  discard block
 block discarded – undo
67 67
      * @param Title $title
68 68
      * @param EventType $eventType
69 69
      * @param Location $location
70
-     * @param CalendarBase $calendar
70
+     * @param CalendarInterface $calendar
71 71
      * @param Theme/null $theme
72
+     * @param string $eventId
72 73
      *
73 74
      * @return Event
74 75
      */
@@ -172,9 +173,9 @@  discard block
 block discarded – undo
172 173
 
173 174
     /**
174 175
      * @param Language $language
175
-     * @param String|null $title
176
-     * @param String|null $shortDescription
177
-     * @param String|null $longDescription
176
+     * @param null|string $title
177
+     * @param null|string $shortDescription
178
+     * @param null|string $longDescription
178 179
      */
179 180
     public function applyTranslation(
180 181
         Language $language,
@@ -368,9 +369,6 @@  discard block
 block discarded – undo
368 369
     /**
369 370
      * Updated the contact info.
370 371
      *
371
-     * @param array $phones
372
-     * @param array $emails
373
-     * @param array $urls
374 372
      */
375 373
     public function updateContactPoint(ContactPoint $contactPoint)
376 374
     {
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -462,7 +462,7 @@
 block discarded – undo
462 462
     {
463 463
         $duplicateMediaObject = array_filter(
464 464
             $this->getMediaObjects(),
465
-            function ($existingMediaObjectId) use ($image) {
465
+            function($existingMediaObjectId) use ($image) {
466 466
                 return $image
467 467
                     ->getMediaObjectId()
468 468
                     ->sameValueAs($existingMediaObjectId);
Please login to merge, or discard this patch.
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -40,13 +40,10 @@
 block discarded – undo
40 40
 use CultuurNet\UDB3\CollaborationData;
41 41
 use CultuurNet\UDB3\Location;
42 42
 use CultuurNet\UDB3\Media\Image;
43
-use CultuurNet\UDB3\Media\MediaObject;
44
-use CultuurNet\UDB3\Media\Properties\MIMEType;
45 43
 use CultuurNet\UDB3\Title;
46 44
 use CultuurNet\UDB3\Translation;
47 45
 use ValueObjects\Identity\UUID;
48 46
 use ValueObjects\String\String;
49
-use ValueObjects\Web\Url;
50 47
 
51 48
 class Event extends EventSourcedAggregateRoot
52 49
 {
Please login to merge, or discard this patch.
src/Event/ReadModel/JSONLD/Specifications/Labelable.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -8,7 +8,7 @@
 block discarded – undo
8 8
 {
9 9
 
10 10
     /**
11
-     * @param $eventLd
11
+     * @param \stdClass $eventLd
12 12
      * @return bool
13 13
      */
14 14
     public function hasLabel($eventLd, String $label)
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -2,8 +2,6 @@
 block discarded – undo
2 2
 
3 3
 namespace CultuurNet\UDB3\Event\ReadModel\JSONLD\Specifications;
4 4
 
5
-use ValueObjects\String\String;
6
-
7 5
 trait Labelable
8 6
 {
9 7
 
Please login to merge, or discard this patch.
src/CollaborationData.php 2 patches
Doc Comments   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     }
58 58
 
59 59
     /**
60
-     * @return String|null
60
+     * @return String
61 61
      */
62 62
     public function getSubBrand()
63 63
     {
@@ -76,7 +76,7 @@  discard block
 block discarded – undo
76 76
     }
77 77
 
78 78
     /**
79
-     * @return String|null
79
+     * @return String
80 80
      */
81 81
     public function getTitle()
82 82
     {
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     }
96 96
 
97 97
     /**
98
-     * @return String|null
98
+     * @return String
99 99
      */
100 100
     public function getText()
101 101
     {
@@ -114,7 +114,7 @@  discard block
 block discarded – undo
114 114
     }
115 115
 
116 116
     /**
117
-     * @return String|null
117
+     * @return String
118 118
      */
119 119
     public function getCopyright()
120 120
     {
@@ -133,7 +133,7 @@  discard block
 block discarded – undo
133 133
     }
134 134
 
135 135
     /**
136
-     * @return String|null
136
+     * @return String
137 137
      */
138 138
     public function getKeyword()
139 139
     {
@@ -152,7 +152,7 @@  discard block
 block discarded – undo
152 152
     }
153 153
 
154 154
     /**
155
-     * @return String|null
155
+     * @return String
156 156
      */
157 157
     public function getArticle()
158 158
     {
Please login to merge, or discard this patch.
Spacing   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -268,15 +268,15 @@
 block discarded – undo
268 268
     public function serialize()
269 269
     {
270 270
         $data = [
271
-            'subBrand' => (string) $this->subBrand,
272
-            'plainText' => (string) $this->plainText,
273
-            'title' => (string) $this->title,
274
-            'text' => (string) $this->text,
275
-            'copyright' => (string) $this->copyright,
276
-            'keyword' => (string) $this->keyword,
277
-            'image' => (string) $this->image,
278
-            'article' => (string) $this->article,
279
-            'link' => (string) $this->link,
271
+            'subBrand' => (string)$this->subBrand,
272
+            'plainText' => (string)$this->plainText,
273
+            'title' => (string)$this->title,
274
+            'text' => (string)$this->text,
275
+            'copyright' => (string)$this->copyright,
276
+            'keyword' => (string)$this->keyword,
277
+            'image' => (string)$this->image,
278
+            'article' => (string)$this->article,
279
+            'link' => (string)$this->link,
280 280
         ];
281 281
 
282 282
         return array_filter($data, 'strlen');
Please login to merge, or discard this patch.