@@ -18,8 +18,6 @@ |
||
18 | 18 | public $setter; |
19 | 19 | |
20 | 20 | /** |
21 | - * @param string $getter |
|
22 | - * @param string $setter |
|
23 | 21 | */ |
24 | 22 | public function __construct(array $values) |
25 | 23 | { |
@@ -71,7 +71,7 @@ discard block |
||
71 | 71 | * Set the property value. |
72 | 72 | * |
73 | 73 | * @param $object |
74 | - * @param array $meta |
|
74 | + * @param Metadata $meta |
|
75 | 75 | * @param $propertyName |
76 | 76 | * @param $value |
77 | 77 | * @param array $context |
@@ -177,7 +177,7 @@ discard block |
||
177 | 177 | /** |
178 | 178 | * Get the property name for this normalized key name. This will aslo verify if the name is correct. |
179 | 179 | * |
180 | - * @param array $rootMeta |
|
180 | + * @param Metadata $rootMeta |
|
181 | 181 | * @param string $serializedName |
182 | 182 | * |
183 | 183 | * @return string|null |
@@ -200,7 +200,7 @@ discard block |
||
200 | 200 | /** |
201 | 201 | * Get the type of this property. |
202 | 202 | * |
203 | - * @param array $meta |
|
203 | + * @param Metadata $meta |
|
204 | 204 | * @param string $name |
205 | 205 | * |
206 | 206 | * @return null|string |
@@ -231,7 +231,7 @@ discard block |
||
231 | 231 | /** |
232 | 232 | * @param string $class |
233 | 233 | * |
234 | - * @return Metadata|mixed |
|
234 | + * @return Metadata |
|
235 | 235 | */ |
236 | 236 | private function getMetadata($class) |
237 | 237 | { |
@@ -15,7 +15,6 @@ discard block |
||
15 | 15 | * Gets and caches attributes for this class and context. |
16 | 16 | * |
17 | 17 | * @param object $object |
18 | - * @param array $context |
|
19 | 18 | * |
20 | 19 | * @return string[] |
21 | 20 | */ |
@@ -81,9 +80,9 @@ discard block |
||
81 | 80 | /** |
82 | 81 | * Get a good cache key for this class. |
83 | 82 | * |
84 | - * @param $class |
|
83 | + * @param string $class |
|
85 | 84 | * |
86 | - * @return bool|string |
|
85 | + * @return string|false |
|
87 | 86 | */ |
88 | 87 | private function getCacheKey($class) |
89 | 88 | { |
@@ -22,7 +22,7 @@ |
||
22 | 22 | ->arrayNode('source') |
23 | 23 | ->prototype('scalar') |
24 | 24 | ->validate() |
25 | - ->always(function ($v) { |
|
25 | + ->always(function($v) { |
|
26 | 26 | $v = str_replace(DIRECTORY_SEPARATOR, '/', $v); |
27 | 27 | |
28 | 28 | if (!is_dir($v)) { |
@@ -48,7 +48,7 @@ |
||
48 | 48 | public function getMetadata() |
49 | 49 | { |
50 | 50 | // Create a function to filter out our annotations |
51 | - $filterAnnotations = function ($annotation) { |
|
51 | + $filterAnnotations = function($annotation) { |
|
52 | 52 | return $annotation instanceof SerializerAnnotation; |
53 | 53 | }; |
54 | 54 |