Completed
Push — master ( 0635f4...217dce )
by Kristof
8s
created
src/LabelCollection.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@  discard block
 block discarded – undo
71 71
     }
72 72
 
73 73
     /**
74
-     * @param Label[] $label
74
+     * @param Label $label
75 75
      * @return bool
76 76
      */
77 77
     public function contains(Label $label)
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
     }
96 96
 
97 97
     /**
98
-     * @param LabelCollection $labelCollection
98
+     * @param LabelCollection $labelCollectionToMerge
99 99
      * @return LabelCollection
100 100
      */
101 101
     public function merge(LabelCollection $labelCollectionToMerge)
Please login to merge, or discard this patch.
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -19,7 +19,7 @@  discard block
 block discarded – undo
19 19
     {
20 20
         array_walk(
21 21
             $labels,
22
-            function ($item) {
22
+            function($item) {
23 23
                 if (!$item instanceof Label) {
24 24
                     throw new \InvalidArgumentException(
25 25
                         'Argument $labels should only contain members of type Label'
@@ -54,7 +54,7 @@  discard block
 block discarded – undo
54 54
     {
55 55
         $labels = array_filter(
56 56
             $this->labels,
57
-            function (Label $existingLabel) use ($label) {
57
+            function(Label $existingLabel) use ($label) {
58 58
                 return !$existingLabel->equals($label);
59 59
             }
60 60
         );
@@ -78,7 +78,7 @@  discard block
 block discarded – undo
78 78
     {
79 79
         $equalLabels = array_filter(
80 80
             $this->labels,
81
-            function (Label $existingLabel) use ($label) {
81
+            function(Label $existingLabel) use ($label) {
82 82
                 return $label->equals($existingLabel);
83 83
             }
84 84
         );
@@ -139,8 +139,8 @@  discard block
 block discarded – undo
139 139
     public function toStrings()
140 140
     {
141 141
         $labels = array_map(
142
-            function (Label $label) {
143
-                return (string) $label;
142
+            function(Label $label) {
143
+                return (string)$label;
144 144
             },
145 145
             $this->labels
146 146
         );
Please login to merge, or discard this 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/OfferEditingTrait.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@
 block discarded – undo
15 15
 
16 16
     /**
17 17
      * Get the namespaced classname of the command to create.
18
-     * @param type $className
18
+     * @param string $className
19 19
      *   Name of the class
20 20
      * @return string
21 21
      */
Please login to merge, or discard this patch.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -8,8 +8,6 @@
 block discarded – undo
8 8
 namespace CultuurNet\UDB3;
9 9
 
10 10
 use CultuurNet\UDB3\Media\Image;
11
-use CultuurNet\UDB3\Media\MediaObject;
12
-use ValueObjects\String\String;
13 11
 
14 12
 /**
15 13
  * Trait that contains all major editing methods for Offers.
Please login to merge, or discard this patch.
src/Organizer/OrganizerEditingServiceInterface.php 2 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,7 @@
 block discarded – undo
12 12
 
13 13
     /**
14 14
      * @param Title $title
15
-     * @param array $adresses
15
+     * @param array $addresses
16 16
      * @param array $phones
17 17
      * @param array $emails
18 18
      * @param array $urls
Please login to merge, or discard this 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/Place/Commands/UpdateMajorInfo.php 1 patch
Doc Comments   +1 added lines, -2 removed lines patch added patch discarded remove patch
@@ -50,10 +50,9 @@
 block discarded – undo
50 50
     private $calendar;
51 51
 
52 52
     /**
53
-     * @param string $eventId
54 53
      * @param Title $title
55
-     * @param string $location
56 54
      * @param CalendarInterface $calendar
55
+     * @param string $placeId
57 56
      */
58 57
     public function __construct($placeId, Title $title, EventType $eventType, Address $address, CalendarInterface $calendar, $theme = null)
59 58
     {
Please login to merge, or discard this patch.
src/Place/Events/BookingInfoUpdated.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -27,7 +27,7 @@
 block discarded – undo
27 27
     }
28 28
 
29 29
     /**
30
-     * @return mixed The object instance
30
+     * @return BookingInfoUpdated The object instance
31 31
      */
32 32
     public static function deserialize(array $data)
33 33
     {
Please login to merge, or discard this patch.
src/Place/Events/MajorInfoUpdated.php 2 patches
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.
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -49,7 +49,6 @@
 block discarded – undo
49 49
     /**
50 50
      * @param string $placeId
51 51
      * @param Title $title
52
-     * @param string $location
53 52
      * @param CalendarInterface $calendar
54 53
      */
55 54
     public function __construct($placeId, Title $title, EventType $eventType, Address $address, CalendarInterface $calendar, $theme = null)
Please login to merge, or discard this patch.
src/Place/PlaceEditingServiceInterface.php 3 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
      * @param Title $title
23 23
      * @param EventType $eventType
24 24
      * @param Address $address
25
-     * @param CalendarBase $calendar
25
+     * @param CalendarInterface $calendar
26 26
      * @param Theme|null $theme
27 27
      *
28 28
      * @return string $eventId
@@ -43,7 +43,7 @@  discard block
 block discarded – undo
43 43
      * @param Title $title
44 44
      * @param EventType $eventType
45 45
      * @param Address $address
46
-     * @param CalendarBase $calendar
46
+     * @param CalendarInterface $calendar
47 47
      * @param Theme/null $theme
48 48
      */
49 49
     public function updateMajorInfo($id, Title $title, EventType $eventType, Address $address, CalendarInterface $calendar, $theme = null);
Please login to merge, or discard this 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.
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -9,11 +9,9 @@
 block discarded – undo
9 9
 use CultuurNet\UDB3\CalendarInterface;
10 10
 use CultuurNet\UDB3\ContactPoint;
11 11
 use CultuurNet\UDB3\Event\EventType;
12
-use CultuurNet\UDB3\Label;
13 12
 use CultuurNet\UDB3\Media\Image;
14 13
 use CultuurNet\UDB3\Theme;
15 14
 use CultuurNet\UDB3\Title;
16
-use ValueObjects\Identity\UUID;
17 15
 use ValueObjects\String\String;
18 16
 
19 17
 interface PlaceEditingServiceInterface
Please login to merge, or discard this patch.
src/Place/ReadModel/JSONLD/EventFactory.php 2 patches
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.
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/SavedSearches/CombinedSavedSearchRepository.php 1 patch
Doc Comments   -2 removed lines patch added patch discarded remove patch
@@ -13,8 +13,6 @@
 block discarded – undo
13 13
     protected $repositories;
14 14
 
15 15
     /**
16
-     * @param SavedSearchRepositoryInterface $repository,...
17
-     *   Optionally an unlimited list of repositories to combine.
18 16
      *
19 17
      * @throws \InvalidArgumentException
20 18
      *   When one of the provided arguments does not implement
Please login to merge, or discard this patch.