@@ -16,7 +16,7 @@ discard block |
||
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 |
||
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 | } |
@@ -50,8 +50,8 @@ discard block |
||
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 |
||
121 | 121 | */ |
122 | 122 | private function toXPath($css_selector) |
123 | 123 | { |
124 | - $xpath = Null; |
|
124 | + $xpath = NULL; |
|
125 | 125 | |
126 | 126 | try |
127 | 127 | { |