Passed
Push — master ( b48e8d...3fd8db )
by Daniele
08:23 queued 05:56
created
source/FluidXml/FluidContext.php 1 patch
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -479,6 +479,9 @@
 block discarded – undo
479 479
                 return $set;
480 480
         }
481 481
 
482
+        /**
483
+         * @param callable $fn
484
+         */
482 485
         protected function callfn($fn, $args)
483 486
         {
484 487
                 if ($fn instanceof \Closure) {
Please login to merge, or discard this patch.
source/FluidXml/FluidHelper.php 1 patch
Doc Comments   +6 added lines patch added patch discarded remove patch
@@ -4,6 +4,9 @@  discard block
 block discarded – undo
4 4
 
5 5
 class FluidHelper
6 6
 {
7
+        /**
8
+         * @param string $string
9
+         */
7 10
         public static function isAnXmlString($string)
8 11
         {
9 12
                 // Removes any empty new line at the beginning,
@@ -69,6 +72,9 @@  discard block
 block discarded – undo
69 72
                 return static::exportNode($dom->ownerDocument, $dom, $html);
70 73
         }
71 74
 
75
+        /**
76
+         * @param \DOMDocument $dom
77
+         */
72 78
         public static function domdocumentToHtml($dom, $clone = true)
73 79
         {
74 80
                 if ($clone) {
Please login to merge, or discard this patch.
source/FluidXml/FluidInsertionHandler.php 2 patches
Doc Comments   +3 added lines patch added patch discarded remove patch
@@ -8,6 +8,9 @@
 block discarded – undo
8 8
         private $dom;
9 9
         private $namespaces;
10 10
 
11
+        /**
12
+         * @param FluidDocument $document
13
+         */
11 14
         public function __construct($document)
12 15
         {
13 16
                 $this->document   = $document;
Please login to merge, or discard this patch.
Braces   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -59,10 +59,10 @@
 block discarded – undo
59 59
                         if (\is_array($opt)) {
60 60
                                 $attributes = $opt;
61 61
 
62
-                        }  elseif (\is_bool($opt)) {
62
+                        } elseif (\is_bool($opt)) {
63 63
                                 $switch_context = $opt;
64 64
 
65
-                        }  elseif (\is_string($opt)) {
65
+                        } elseif (\is_string($opt)) {
66 66
                                 $e = \array_pop($element);
67 67
 
68 68
                                 $element[$e] = $opt;
Please login to merge, or discard this patch.
source/FluidXml/FluidXml.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -193,7 +193,7 @@
 block discarded – undo
193 193
                         }
194 194
 
195 195
                         $namespaces[] = new FluidNamespace(...$args);
196
-                }  elseif (\is_array($arguments[0])) {
196
+                } elseif (\is_array($arguments[0])) {
197 197
                         $namespaces = $arguments[0];
198 198
                 } else {
199 199
                         $namespaces = $arguments;
Please login to merge, or discard this patch.