Completed
Pull Request — master (#2)
by Tomasz
02:10
created
src/Format/XmlFormat.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -70,6 +70,9 @@
 block discarded – undo
70 70
         return $hydrator($data[$hydrators->getRoot($class)], $hydrators);
71 71
     }
72 72
 
73
+    /**
74
+     * @param \DOMDocument $parent
75
+     */
73 76
     private function parse(\DOMDocument $doc, $parent = null)
74 77
     {
75 78
         $ret = array();
Please login to merge, or discard this patch.
src/Hydrator/ReflectionHydrator.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -8,6 +8,9 @@  discard block
 block discarded – undo
8 8
     private $class;
9 9
     private $objects;
10 10
 
11
+    /**
12
+     * @param string $class
13
+     */
11 14
     public function __construct($class, array $objects)
12 15
     {
13 16
         if(false === class_exists($class)) {
@@ -36,6 +39,9 @@  discard block
 block discarded – undo
36 39
         return $object;
37 40
     }
38 41
 
42
+    /**
43
+     * @param string $name
44
+     */
39 45
     private function computeValue($name, $data, HydratorContainerInterface $hydrators)
40 46
     {
41 47
         if(false === array_key_exists($name, $this->objects)) {
Please login to merge, or discard this patch.
tests/SerializardTest.php 1 patch
Unused Use Statements   -2 removed lines patch added patch discarded remove patch
@@ -8,12 +8,10 @@
 block discarded – undo
8 8
 use Thunder\Serializard\FormatContainer\FormatContainer;
9 9
 use Thunder\Serializard\Hydrator\ReflectionHydrator;
10 10
 use Thunder\Serializard\HydratorContainer\FallbackHydratorContainer;
11
-use Thunder\Serializard\HydratorContainer\HydratorContainerInterface as Hydrators;
12 11
 use Thunder\Serializard\HydratorContainer\HydratorContainerInterface;
13 12
 use Thunder\Serializard\Normalizer\ReflectionNormalizer;
14 13
 use Thunder\Serializard\NormalizerContainer\FallbackNormalizerContainer;
15 14
 use Thunder\Serializard\NormalizerContext\NormalizerContextInterface;
16
-use Thunder\Serializard\NormalizerContext\ParentNormalizerContext;
17 15
 use Thunder\Serializard\Serializard;
18 16
 use Thunder\Serializard\Tests\Fake\Context\FakeNormalizerContext;
19 17
 use Thunder\Serializard\Tests\Fake\FakeArticle;
Please login to merge, or discard this patch.