@@ -479,6 +479,9 @@ |
||
| 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) { |
@@ -4,6 +4,9 @@ discard block |
||
| 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 |
||
| 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) { |
@@ -8,6 +8,9 @@ |
||
| 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; |
@@ -59,10 +59,10 @@ |
||
| 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; |
@@ -193,7 +193,7 @@ |
||
| 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; |