@@ -87,7 +87,7 @@ discard block |
||
87 | 87 | { |
88 | 88 | if ($this->getLastUrl() !== $this->getUrl()) { |
89 | 89 | $bin = PhantomBinary::BIN; |
90 | - $command = $bin.' '.__DIR__.'/nodejs/loadspeed.js ' . $this->url; |
|
90 | + $command = $bin.' '.__DIR__.'/nodejs/loadspeed.js '.$this->url; |
|
91 | 91 | $result = shell_exec($command); |
92 | 92 | $this |
93 | 93 | ->setHtmlBuffer('<meta charset="UTF-8" />'.$result) |
@@ -121,9 +121,9 @@ discard block |
||
121 | 121 | * @return Query |
122 | 122 | * @throws ParserInvalidConfigException |
123 | 123 | */ |
124 | - public function dom($encoding = 'UTF-8', $type='curl'): Query |
|
124 | + public function dom($encoding = 'UTF-8', $type = 'curl'): Query |
|
125 | 125 | { |
126 | - if ($type==='curl') { |
|
126 | + if ($type === 'curl') { |
|
127 | 127 | if (!in_array('curl', get_loaded_extensions())) { |
128 | 128 | throw new ParserInvalidConfigException('The curl extension in not loaded in system'); |
129 | 129 | } |