Passed
Push — master ( 849af4...d91219 )
by Kosuha
03:36
created
src/HtmlUniParser.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -102,10 +102,10 @@
 block discarded – undo
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);
Please login to merge, or discard this patch.
src/ZendBasedParser.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -86,7 +86,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
             }
Please login to merge, or discard this patch.