@@ -21,7 +21,7 @@ |
||
21 | 21 | /** |
22 | 22 | * Deserialize API response into paginator object |
23 | 23 | * |
24 | - * @param $response |
|
24 | + * @param string $response |
|
25 | 25 | * @param VideoFilter $filter |
26 | 26 | * |
27 | 27 | * @return Paginator |
@@ -4,8 +4,6 @@ |
||
4 | 4 | |
5 | 5 | use Illuminate\Support\Collection; |
6 | 6 | use JMS\Serializer\Annotation as JMS; |
7 | -use JMS\Serializer\DeserializationContext; |
|
8 | -use JMS\Serializer\JsonDeserializationVisitor; |
|
9 | 7 | |
10 | 8 | |
11 | 9 | /** |
@@ -68,12 +68,12 @@ |
||
68 | 68 | ->setDebug(false) |
69 | 69 | ->addDefaultHandlers() |
70 | 70 | ->addDefaultListeners() |
71 | - ->configureHandlers(function (HandlerRegistry $registry) { |
|
71 | + ->configureHandlers(function(HandlerRegistry $registry) { |
|
72 | 72 | $registry->registerHandler( |
73 | 73 | GraphNavigator::DIRECTION_DESERIALIZATION, |
74 | 74 | Collection::class, |
75 | 75 | 'xml', |
76 | - function (VisitorInterface $visitor, $data, array $type, Context $context) { |
|
76 | + function(VisitorInterface $visitor, $data, array $type, Context $context) { |
|
77 | 77 | $data = $visitor->visitArray($data, $type, $context); |
78 | 78 | |
79 | 79 | return new Collection($data); |