@@ -18,13 +18,6 @@ |
||
18 | 18 | namespace Mcustiel\SimpleRequest; |
19 | 19 | |
20 | 20 | use Doctrine\Common\Annotations\AnnotationReader; |
21 | -use Mcustiel\SimpleRequest\Util\ValidatorBuilder; |
|
22 | -use Mcustiel\SimpleRequest\Annotation\RequestAnnotation; |
|
23 | -use Mcustiel\SimpleRequest\Annotation\ValidatorAnnotation; |
|
24 | -use Mcustiel\SimpleRequest\Annotation\FilterAnnotation; |
|
25 | -use Mcustiel\SimpleRequest\Util\FilterBuilder; |
|
26 | -use Mcustiel\SimpleRequest\Annotation\ParseAs; |
|
27 | -use Mcustiel\SimpleRequest\Annotation\AnnotationWithAssociatedClass; |
|
28 | 21 | use Mcustiel\SimpleRequest\Strategies\AnnotationParserFactory; |
29 | 22 | use Mcustiel\SimpleRequest\Strategies\PropertyParserBuilder; |
30 | 23 | use Mcustiel\SimpleRequest\Strategies\Properties\PropertyParser; |
@@ -19,7 +19,6 @@ |
||
19 | 19 | |
20 | 20 | use Mcustiel\SimpleRequest\Exception\InvalidRequestException; |
21 | 21 | use Psr\Cache\CacheItemPoolInterface as PsrCache; |
22 | -use Symfony\Component\Cache\CacheItem; |
|
23 | 22 | |
24 | 23 | /** |
25 | 24 | * Builds a request by parsing all the resulting object's annotations and running |
@@ -92,13 +92,13 @@ |
||
92 | 92 | return $this->validateList($value); |
93 | 93 | } |
94 | 94 | |
95 | - private function convertToArray($value) |
|
96 | - { |
|
97 | - if (!is_array($value)) { |
|
98 | - $value = json_decode(json_encode($value), true); |
|
99 | - } |
|
100 | - return $value; |
|
101 | - } |
|
95 | + private function convertToArray($value) |
|
96 | + { |
|
97 | + if (!is_array($value)) { |
|
98 | + $value = json_decode(json_encode($value), true); |
|
99 | + } |
|
100 | + return $value; |
|
101 | + } |
|
102 | 102 | |
103 | 103 | |
104 | 104 | /** |