Completed
Pull Request — master (#121)
by Kristof
06:04
created
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.
src/SavedSearches/FixedSavedSearchRepository.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@
 block discarded – undo
16 16
     protected $user;
17 17
 
18 18
     /**
19
-     * @param String $userId
19
+     * @param String $user
20 20
      */
21 21
     public function __construct(\CultureFeed_User $user)
22 22
     {
Please login to merge, or discard this patch.
src/SavedSearches/Properties/CreatedByQueryString.php 1 patch
Doc Comments   -1 removed lines patch added patch discarded remove patch
@@ -12,7 +12,6 @@
 block discarded – undo
12 12
     protected $emailAddress;
13 13
 
14 14
     /**
15
-     * @param String $userId
16 15
      */
17 16
     public function __construct(EmailAddress $emailAddress)
18 17
     {
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/Variations/Command/CreateEventVariationJSONDeserializer.php 4 patches
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -70,7 +70,7 @@
 block discarded – undo
70 70
     }
71 71
 
72 72
     /**
73
-     * @param mixed $json
73
+     * @param stdClass $json
74 74
      *
75 75
      * @throws ValidationException
76 76
      */
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.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
     private function getErrorMessages($validationErrors)
97 97
     {
98 98
         $errorMessages = array_map(
99
-            function ($error) {
99
+            function($error) {
100 100
                 return $error['message'];
101 101
             },
102 102
             $validationErrors
Please login to merge, or discard this patch.
Unused Use Statements   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use CultuurNet\UDB3\Variations\Model\Properties\Description;
10 10
 use CultuurNet\UDB3\Variations\Model\Properties\Id;
11 11
 use JsonSchema\Validator;
12
-use ValueObjects\String\String;
13 12
 use stdClass;
14 13
 
15 14
 class EditDescriptionJSONDeserializer extends JSONDeserializer
Please login to merge, or discard this patch.
src/Variations/Command/EditDescriptionJSONDeserializer.php 4 patches
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
     /**
47 47
      * @param stdClass $json
48 48
      *
49
-     * @return CreateEventVariation
49
+     * @return EditDescription
50 50
      */
51 51
     private function createTypedObject(stdClass $json)
52 52
     {
@@ -57,7 +57,7 @@  discard block
 block discarded – undo
57 57
     }
58 58
 
59 59
     /**
60
-     * @param mixed $json
60
+     * @param stdClass $json
61 61
      *
62 62
      * @throws ValidationException
63 63
      */
Please login to merge, or discard this patch.
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -96,7 +96,7 @@
 block discarded – undo
96 96
     private function getErrorMessages($validationErrors)
97 97
     {
98 98
         $errorMessages = array_map(
99
-            function ($error) {
99
+            function($error) {
100 100
                 return $error['message'];
101 101
             },
102 102
             $validationErrors
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   -1 removed lines patch added patch discarded remove patch
@@ -9,7 +9,6 @@
 block discarded – undo
9 9
 use CultuurNet\UDB3\Variations\Model\Properties\Description;
10 10
 use CultuurNet\UDB3\Variations\Model\Properties\Id;
11 11
 use JsonSchema\Validator;
12
-use ValueObjects\String\String;
13 12
 use stdClass;
14 13
 
15 14
 class EditDescriptionJSONDeserializer extends JSONDeserializer
Please login to merge, or discard this patch.
src/Address.php 1 patch
Indentation   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -70,10 +70,10 @@
 block discarded – undo
70 70
     public function serialize()
71 71
     {
72 72
         return [
73
-          'streetAddress' => $this->streetAddress,
74
-          'postalCode' => $this->postalCode,
75
-          'locality' => $this->locality,
76
-          'country' => $this->country,
73
+            'streetAddress' => $this->streetAddress,
74
+            'postalCode' => $this->postalCode,
75
+            'locality' => $this->locality,
76
+            'country' => $this->country,
77 77
         ];
78 78
     }
79 79
 
Please login to merge, or discard this patch.
src/BackwardsCompatiblePayloadSerializerFactory.php 2 patches
Spacing   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -41,7 +41,7 @@  discard block
 block discarded – undo
41 41
 
42 42
         $payloadManipulatingSerializer->manipulateEventsOfClass(
43 43
             'CultuurNet\UDB3\UsedKeywordsMemory\Created',
44
-            function (array $serializedObject) {
44
+            function(array $serializedObject) {
45 45
                 $serializedObject['class'] = UsedLabelsMemoryCreated::class;
46 46
 
47 47
                 return $serializedObject;
@@ -50,7 +50,7 @@  discard block
 block discarded – undo
50 50
 
51 51
         $payloadManipulatingSerializer->manipulateEventsOfClass(
52 52
             'CultuurNet\UDB3\UsedKeywordsMemory\KeywordUsed',
53
-            function (array $serializedObject) {
53
+            function(array $serializedObject) {
54 54
                 $serializedObject['class'] = LabelUsed::class;
55 55
 
56 56
                 $serializedObject['payload']['label'] = $serializedObject['payload']['keyword'];
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 
63 63
         $payloadManipulatingSerializer->manipulateEventsOfClass(
64 64
             'CultuurNet\UDB3\Event\EventWasTagged',
65
-            function (array $serializedObject) {
65
+            function(array $serializedObject) {
66 66
                 $serializedObject['class'] = EventWasLabelled::class;
67 67
 
68 68
                 $serializedObject['payload']['label'] = $serializedObject['payload']['keyword'];
@@ -74,7 +74,7 @@  discard block
 block discarded – undo
74 74
 
75 75
         $payloadManipulatingSerializer->manipulateEventsOfClass(
76 76
             'CultuurNet\UDB3\Event\TagErased',
77
-            function (array $serializedObject) {
77
+            function(array $serializedObject) {
78 78
                 $serializedObject['class'] = Event\Events\Unlabelled::class;
79 79
 
80 80
                 $serializedObject['payload']['label'] = $serializedObject['payload']['keyword'];
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
86 86
 
87 87
         $payloadManipulatingSerializer->manipulateEventsOfClass(
88 88
             'CultuurNet\UDB3\Event\EventImportedFromUDB2',
89
-            function (array $serializedObject) {
89
+            function(array $serializedObject) {
90 90
                 $serializedObject['class'] = EventImportedFromUDB2::class;
91 91
 
92 92
                 return $serializedObject;
@@ -95,7 +95,7 @@  discard block
 block discarded – undo
95 95
 
96 96
         $payloadManipulatingSerializer->manipulateEventsOfClass(
97 97
             'CultuurNet\UDB3\Event\Events\LabelsApplied',
98
-            function (array $serializedObject) {
98
+            function(array $serializedObject) {
99 99
                 $serializedObject['class'] = LabelsMerged::class;
100 100
 
101 101
                 $keywordsString = $serializedObject['payload']['keywords_string'];
@@ -117,9 +117,9 @@  discard block
 block discarded – undo
117 117
                 }
118 118
 
119 119
                 $labels = array_map(
120
-                    function (Label $label) {
120
+                    function(Label $label) {
121 121
                         return [
122
-                            'text' => (string) $label,
122
+                            'text' => (string)$label,
123 123
                             'visible' => $label->isVisible(),
124 124
                         ];
125 125
                     },
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/BookingInfo.php 1 patch
Indentation   +8 added lines, -8 removed lines patch added patch discarded remove patch
@@ -132,14 +132,14 @@
 block discarded – undo
132 132
     public function serialize()
133 133
     {
134 134
         return [
135
-          'phone' => $this->phone,
136
-          'email' => $this->email,
137
-          'url' => $this->url,
138
-          'urlLabel' => $this->urlLabel,
139
-          'name' => $this->name,
140
-          'description' => $this->description,
141
-          'availabilityStarts' => $this->availabilityStarts,
142
-          'availabilityEnds' => $this->availabilityEnds
135
+            'phone' => $this->phone,
136
+            'email' => $this->email,
137
+            'url' => $this->url,
138
+            'urlLabel' => $this->urlLabel,
139
+            'name' => $this->name,
140
+            'description' => $this->description,
141
+            'availabilityStarts' => $this->availabilityStarts,
142
+            'availabilityEnds' => $this->availabilityEnds
143 143
         ];
144 144
     }
145 145
 
Please login to merge, or discard this patch.