Completed
Pull Request — master (#95)
by
unknown
17:16
created
example/example_find_text.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -41,5 +41,5 @@
 block discarded – undo
41 41
 $document = new \Voku\Helper\HtmlDomParser($html);
42 42
 
43 43
 foreach (find_contains($document, '.lall', 'foo') as $child_dom) {
44
-    echo $child_dom->html() . "\n";
44
+    echo $child_dom->html()."\n";
45 45
 }
Please login to merge, or discard this patch.
src/voku/helper/HtmlDomHelper.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -24,7 +24,7 @@  discard block
 block discarded – undo
24 24
         }
25 25
 
26 26
         $dom = \Voku\Helper\HtmlDomParser::str_get_html($html);
27
-        $domNew = \Voku\Helper\HtmlDomParser::str_get_html('<textarea ' . $optionStr . '></textarea>');
27
+        $domNew = \Voku\Helper\HtmlDomParser::str_get_html('<textarea '.$optionStr.'></textarea>');
28 28
 
29 29
         $domElement = $dom->findOneOrFalse($htmlCssSelector);
30 30
         if ($domElement === false) {
@@ -55,7 +55,7 @@  discard block
 block discarded – undo
55 55
                 \strpos($attributeNameNew, 'on') === 0 // e.g. onClick, ...
56 56
             ) {
57 57
                 if (isset($attributes[$attributeNameNew])) {
58
-                    $attributes[$attributeNameNew] .= ' ' . $attributeValueNew;
58
+                    $attributes[$attributeNameNew] .= ' '.$attributeValueNew;
59 59
                 } else {
60 60
                     $attributes[$attributeNameNew] = $attributeValueNew;
61 61
                 }
Please login to merge, or discard this patch.