@@ -11,7 +11,6 @@ |
||
11 | 11 | use CultuurNet\UDB3\Event\ReadModel\Permission\PermissionQueryInterface; |
12 | 12 | use Doctrine\DBAL\Connection; |
13 | 13 | use Doctrine\DBAL\Exception\UniqueConstraintViolationException; |
14 | -use Doctrine\DBAL\Schema\Schema; |
|
15 | 14 | use CultuurNet\UDB3\Event\ReadModel\Permission\PermissionRepositoryInterface; |
16 | 15 | use ValueObjects\String\String; |
17 | 16 |
@@ -1,10 +1,10 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * Created by PhpStorm. |
|
4 | - * User: jonas |
|
5 | - * Date: 27.10.15 |
|
6 | - * Time: 14:04 |
|
7 | - */ |
|
3 | + * Created by PhpStorm. |
|
4 | + * User: jonas |
|
5 | + * Date: 27.10.15 |
|
6 | + * Time: 14:04 |
|
7 | + */ |
|
8 | 8 | |
9 | 9 | namespace CultuurNet\UDB3\Event\ReadModel\Permission\Doctrine; |
10 | 10 |
@@ -69,7 +69,7 @@ discard block |
||
69 | 69 | } |
70 | 70 | |
71 | 71 | /** |
72 | - * @return null|\string[] |
|
72 | + * @return string[] |
|
73 | 73 | */ |
74 | 74 | public function getSelection() |
75 | 75 | { |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | } |
78 | 78 | |
79 | 79 | /** |
80 | - * @return null|\string[] |
|
80 | + * @return string[] |
|
81 | 81 | */ |
82 | 82 | public function getInclude() |
83 | 83 | { |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - */ |
|
3 | + * @file |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace CultuurNet\UDB3\Variations; |
7 | 7 |
@@ -168,7 +168,7 @@ discard block |
||
168 | 168 | } |
169 | 169 | |
170 | 170 | /** |
171 | - * @return Brand |
|
171 | + * @return string |
|
172 | 172 | */ |
173 | 173 | public function getBrand() |
174 | 174 | { |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | } |
177 | 177 | |
178 | 178 | /** |
179 | - * @return Title |
|
179 | + * @return string |
|
180 | 180 | */ |
181 | 181 | public function getTitle() |
182 | 182 | { |
@@ -184,7 +184,7 @@ discard block |
||
184 | 184 | } |
185 | 185 | |
186 | 186 | /** |
187 | - * @return Subtitle |
|
187 | + * @return string |
|
188 | 188 | */ |
189 | 189 | public function getSubtitle() |
190 | 190 | { |
@@ -192,7 +192,7 @@ discard block |
||
192 | 192 | } |
193 | 193 | |
194 | 194 | /** |
195 | - * @return Footer |
|
195 | + * @return string |
|
196 | 196 | */ |
197 | 197 | public function getFooter() |
198 | 198 | { |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | } |
201 | 201 | |
202 | 202 | /** |
203 | - * @return Publisher |
|
203 | + * @return string |
|
204 | 204 | */ |
205 | 205 | public function getPublisher() |
206 | 206 | { |
@@ -224,7 +224,7 @@ discard block |
||
224 | 224 | } |
225 | 225 | |
226 | 226 | /** |
227 | - * @return null|\string[] |
|
227 | + * @return string[] |
|
228 | 228 | */ |
229 | 229 | public function getSelection() |
230 | 230 | { |
@@ -176,7 +176,7 @@ discard block |
||
176 | 176 | * Get all events formatted as JSON-LD. |
177 | 177 | * |
178 | 178 | * @param \Traversable $events |
179 | - * @return \Generator |
|
179 | + * @return \Iterator |
|
180 | 180 | */ |
181 | 181 | private function getEventsAsJSONLD($events) |
182 | 182 | { |
@@ -205,11 +205,11 @@ discard block |
||
205 | 205 | /** |
206 | 206 | * Generator that yields each unique search result. |
207 | 207 | * |
208 | - * @param $totalItemCount |
|
209 | - * @param $query |
|
208 | + * @param integer $totalItemCount |
|
209 | + * @param EventExportQuery $query |
|
210 | 210 | * @param LoggerInterface|null $logger |
211 | 211 | * |
212 | - * @return \Generator |
|
212 | + * @return \Iterator |
|
213 | 213 | */ |
214 | 214 | private function search($totalItemCount, $query, LoggerInterface $logger = null) |
215 | 215 | { |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - */ |
|
3 | + * @file |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace CultuurNet\UDB3\Variations; |
7 | 7 |
@@ -16,7 +16,7 @@ |
||
16 | 16 | /** |
17 | 17 | * @param string $brand |
18 | 18 | * @param string $title |
19 | - * @param string|null $subtitle |
|
19 | + * @param string|null $subTitle |
|
20 | 20 | * @param string|null $footer |
21 | 21 | * @param string|null $publisher |
22 | 22 | * @param EventInfoServiceInterface|null $uitpas |
@@ -14,6 +14,9 @@ |
||
14 | 14 | */ |
15 | 15 | protected $eventFormatter; |
16 | 16 | |
17 | + /** |
|
18 | + * @param string[] $include |
|
19 | + */ |
|
17 | 20 | public function __construct($include = null) |
18 | 21 | { |
19 | 22 | $this->eventFormatter = new JSONLDEventFormatter($include); |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - */ |
|
3 | + * @file |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace CultuurNet\UDB3\Variations; |
7 | 7 |
@@ -15,6 +15,9 @@ |
||
15 | 15 | |
16 | 16 | protected $includedProperties; |
17 | 17 | |
18 | + /** |
|
19 | + * @param string $filePath |
|
20 | + */ |
|
18 | 21 | public function __construct($filePath) |
19 | 22 | { |
20 | 23 | $this->f = fopen($filePath, 'w'); |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - */ |
|
3 | + * @file |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace CultuurNet\UDB3\Variations; |
7 | 7 |
@@ -22,7 +22,7 @@ |
||
22 | 22 | protected $i; |
23 | 23 | |
24 | 24 | /** |
25 | - * @param $filePath |
|
25 | + * @param string $filePath |
|
26 | 26 | */ |
27 | 27 | public function __construct($filePath) |
28 | 28 | { |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - */ |
|
3 | + * @file |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace CultuurNet\UDB3\Variations; |
7 | 7 |
@@ -71,7 +71,7 @@ discard block |
||
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 |
||
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) |
@@ -19,7 +19,7 @@ discard block |
||
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 |
||
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 |
||
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 |
||
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 | ); |
@@ -1,7 +1,7 @@ |
||
1 | 1 | <?php |
2 | 2 | /** |
3 | - * @file |
|
4 | - */ |
|
3 | + * @file |
|
4 | + */ |
|
5 | 5 | |
6 | 6 | namespace CultuurNet\UDB3\Variations; |
7 | 7 |