Passed
Push — Codacy ( d3d151...03f7d9 )
by Fabien
05:30 queued 02:54
created
Entity/Xml2arrayFunctions.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -66,6 +66,7 @@  discard block
 block discarded – undo
66 66
 
67 67
     /**
68 68
      * @param array|string $value
69
+     * @param string $key
69 70
      */
70 71
     private function setValue($result, $key, $value) {
71 72
         if ($value <> '') {
@@ -98,6 +99,7 @@  discard block
 block discarded – undo
98 99
 
99 100
     /**
100 101
      * @param \SimpleXMLElement $xml
102
+     * @param string $key
101 103
      */
102 104
     private function setStandardAttributes(\SimpleXMLElement $xml, $result, $key) {
103 105
         // Standard Attributes (without Specific thanks to unset())
@@ -133,6 +135,7 @@  discard block
 block discarded – undo
133 135
     /**
134 136
      * @param \SimpleXMLElement $xml
135 137
      * @param string $value
138
+     * @param integer $depth
136 139
      *
137 140
      * @return string
138 141
      */
@@ -152,6 +155,7 @@  discard block
 block discarded – undo
152 155
      * @param \SimpleXMLElement $xml
153 156
      * @param array $arXML
154 157
      * @param string $key
158
+     * @param integer $depth
155 159
      *
156 160
      * @return array
157 161
      */
Please login to merge, or discard this patch.
Tests/Entity/Xml2arrayFunctionsTest.php 1 patch
Doc Comments   +4 added lines patch added patch discarded remove patch
@@ -318,6 +318,10 @@
 block discarded – undo
318 318
         $this->assertXml2Array($expected, $curriculumVitae, $curriculumVitae);
319 319
     }
320 320
 
321
+    /**
322
+     * @param string $curriculumVitae
323
+     * @param string $XML
324
+     */
321 325
     private function assertXml2Array($expected, $curriculumVitae, $XML) {
322 326
         $this->Xml2arrayFunctions = new Xml2arrayFunctions(simplexml_load_string($curriculumVitae));
323 327
         $result = $this->Xml2arrayFunctions->xml2array(simplexml_load_string($XML));
Please login to merge, or discard this patch.