Completed
Push — master ( 7cc415...6f294e )
by Jerry
02:16
created
src/PHPHtmlDom/Core/PHPHtmlDomImportHtml.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -16,7 +16,7 @@  discard block
 block discarded – undo
16 16
      * Opcionees del contexto de flujo
17 17
      * @var array
18 18
      */
19
-    private $context_options = array('http'=>array('method'=>"GET",'timout'=> 6,'ignore_errors' => true));
19
+    private $context_options = array('http'=>array('method'=>"GET",'timout'=> 6,'ignore_errors' => TRUE));
20 20
 
21 21
     public function __construct()
22 22
     {
@@ -32,9 +32,9 @@  discard block
 block discarded – undo
32 32
     {
33 33
         if(!!filter_var($content,FILTER_VALIDATE_URL)||!!is_readable($content))
34 34
         {
35
-            $content = @file_get_contents($content,false,$this->context);
35
+            $content = @file_get_contents($content,FALSE,$this->context);
36 36
 
37
-            return !!$this->isStringHtml($content)?$content:False;
37
+            return !!$this->isStringHtml($content)?$content:FALSE;
38 38
         }
39 39
         return !!$this->isStringHtml($content)?$content:NULL;
40 40
     }
Please login to merge, or discard this patch.
src/PHPHtmlDom/PHPHtmlDom.php 1 patch
Upper-Lower-Casing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -50,8 +50,8 @@  discard block
 block discarded – undo
50 50
         $this->importer = new \PHPTools\PHPHtmlDom\Core\PHPHtmlDomImportHtml;
51 51
         $this->html_content = NULL;
52 52
 
53
-        $this->dom->preserveWhiteSpace = false;
54
-        $this->dom->validateOnParse = true;
53
+        $this->dom->preserveWhiteSpace = FALSE;
54
+        $this->dom->validateOnParse = TRUE;
55 55
     }
56 56
 
57 57
     /**
@@ -121,7 +121,7 @@  discard block
 block discarded – undo
121 121
      */
122 122
     private function toXPath($css_selector)
123 123
     {
124
-        $xpath = Null;
124
+        $xpath = NULL;
125 125
 
126 126
         try
127 127
         {
Please login to merge, or discard this patch.