@@ -15,7 +15,7 @@ |
||
15 | 15 | /** |
16 | 16 | * Gets the JSON-LD structure of an Organizer. |
17 | 17 | * |
18 | - * @param string $organizerId |
|
18 | + * @param string $oganizerId |
|
19 | 19 | * Id of the Organizer. |
20 | 20 | * |
21 | 21 | * @return \stdClass |
@@ -13,8 +13,6 @@ |
||
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 |
@@ -26,7 +26,7 @@ |
||
26 | 26 | foreach ($arguments as $argument) { |
27 | 27 | if (!($argument instanceof SavedSearchRepositoryInterface)) { |
28 | 28 | $error = 'Argument provided should implement SavedSearchRepositoryInterface. (' |
29 | - . get_class($argument) . ' given.)'; |
|
29 | + . get_class($argument).' given.)'; |
|
30 | 30 | throw new \InvalidArgumentException($error); |
31 | 31 | } |
32 | 32 |
@@ -88,7 +88,7 @@ |
||
88 | 88 | } |
89 | 89 | |
90 | 90 | return parent::serialize() + array( |
91 | - 'title' => (string) $this->getTitle(), |
|
91 | + 'title' => (string)$this->getTitle(), |
|
92 | 92 | 'addresses' => $addresses, |
93 | 93 | 'phones' => $this->getPhones(), |
94 | 94 | 'emails' => $this->getEmails(), |
@@ -48,7 +48,7 @@ |
||
48 | 48 | ]; |
49 | 49 | |
50 | 50 | if ($this->id) { |
51 | - $serializedSavedSearch['id'] = (string) $this->id; |
|
51 | + $serializedSavedSearch['id'] = (string)$this->id; |
|
52 | 52 | } |
53 | 53 | |
54 | 54 | return $serializedSavedSearch; |
@@ -39,7 +39,7 @@ |
||
39 | 39 | public function serialize() |
40 | 40 | { |
41 | 41 | return parent::serialize() + array( |
42 | - 'description' => (string) $this->description, |
|
42 | + 'description' => (string)$this->description, |
|
43 | 43 | ); |
44 | 44 | } |
45 | 45 |
@@ -78,6 +78,9 @@ |
||
78 | 78 | return $document->getRawBody(); |
79 | 79 | } |
80 | 80 | |
81 | + /** |
|
82 | + * @param string $id |
|
83 | + */ |
|
81 | 84 | public function iri($id) |
82 | 85 | { |
83 | 86 | return $this->iriGenerator->iri($id); |
@@ -23,7 +23,7 @@ discard block |
||
23 | 23 | */ |
24 | 24 | public static function calendar(Calendar $calendar) |
25 | 25 | { |
26 | - $offerCalenderUpdate = function ($body) use ($calendar) { |
|
26 | + $offerCalenderUpdate = function($body) use ($calendar) { |
|
27 | 27 | // Purge any existing calendar data |
28 | 28 | unset( |
29 | 29 | $body->calendarType, |
@@ -33,8 +33,8 @@ discard block |
||
33 | 33 | $body->openingHours |
34 | 34 | ); |
35 | 35 | |
36 | - return (object) array_merge( |
|
37 | - (array) $body, |
|
36 | + return (object)array_merge( |
|
37 | + (array)$body, |
|
38 | 38 | $calendar->toJsonLd() |
39 | 39 | ); |
40 | 40 | }; |
@@ -48,7 +48,7 @@ |
||
48 | 48 | |
49 | 49 | /** |
50 | 50 | * @param array $data |
51 | - * @return mixed The object instance |
|
51 | + * @return AbstractImageEvent The object instance |
|
52 | 52 | */ |
53 | 53 | public static function deserialize(array $data) |
54 | 54 | { |
@@ -70,7 +70,7 @@ |
||
70 | 70 | } |
71 | 71 | |
72 | 72 | /** |
73 | - * @param mixed $json |
|
73 | + * @param stdClass $json |
|
74 | 74 | * |
75 | 75 | * @throws ValidationException |
76 | 76 | */ |
@@ -120,7 +120,7 @@ |
||
120 | 120 | private function getErrorMessages($validationErrors) |
121 | 121 | { |
122 | 122 | $errorMessages = array_map( |
123 | - function ($error) { |
|
123 | + function($error) { |
|
124 | 124 | return $error['message']; |
125 | 125 | }, |
126 | 126 | $validationErrors |