@@ -102,10 +102,10 @@ |
||
102 | 102 | */ |
103 | 103 | public function __construct($config, ZendBasedParser $parser) |
104 | 104 | { |
105 | - if (!in_array ('dom', get_loaded_extensions())) { |
|
105 | + if (!in_array('dom', get_loaded_extensions())) { |
|
106 | 106 | throw new ParserInvalidConfigException('The dom extension in not loaded in system'); |
107 | 107 | } |
108 | - if (!in_array ('iconv', get_loaded_extensions())) { |
|
108 | + if (!in_array('iconv', get_loaded_extensions())) { |
|
109 | 109 | throw new ParserInvalidConfigException('The iconv extension in not loaded in system'); |
110 | 110 | } |
111 | 111 | parent::__construct($config); |
@@ -86,7 +86,7 @@ discard block |
||
86 | 86 | { |
87 | 87 | if ($this->getLastUrl() !== $this->getUrl()) { |
88 | 88 | $bin = PhantomBinary::BIN; |
89 | - $command = $bin.' '.__DIR__.'/nodejs/loadspeed.js ' . $this->url; |
|
89 | + $command = $bin.' '.__DIR__.'/nodejs/loadspeed.js '.$this->url; |
|
90 | 90 | $result = shell_exec($command); |
91 | 91 | $this |
92 | 92 | ->setHtmlBuffer('<meta charset="UTF-8" />'.$result) |
@@ -120,9 +120,9 @@ discard block |
||
120 | 120 | * @return Query |
121 | 121 | * @throws ParserInvalidConfigException |
122 | 122 | */ |
123 | - public function dom($encoding = 'UTF-8', $type='curl') |
|
123 | + public function dom($encoding = 'UTF-8', $type = 'curl') |
|
124 | 124 | { |
125 | - if ($type==='curl') { |
|
125 | + if ($type === 'curl') { |
|
126 | 126 | if (!in_array('curl', get_loaded_extensions())) { |
127 | 127 | throw new ParserInvalidConfigException('The curl extension in not loaded in system'); |
128 | 128 | } |