@@ -61,7 +61,7 @@  | 
                                                    ||
| 61 | 61 |  				if ($node->count()) { | 
                                                        
| 62 | 62 | $scrapped[$name] = $this->clearString($node->text());  | 
                                                        
| 63 | 63 | }  | 
                                                        
| 64 | -			}elseif (is_array($selector)) { | 
                                                        |
| 64 | +			} elseif (is_array($selector)) { | 
                                                        |
| 65 | 65 |  				foreach ($selector as $selector => $repeat) { | 
                                                        
| 66 | 66 | $node = $this->scrap($selector);  | 
                                                        
| 67 | 67 |  					if ($node->count()) { | 
                                                        
@@ -113,7 +113,7 @@ discard block  | 
                                                    ||
| 113 | 113 | array_get($this->configurations, 'selectors.paramBot')  | 
                                                        
| 114 | 114 | );  | 
                                                        
| 115 | 115 | |
| 116 | -		if(!$paramBot->count()){ | 
                                                        |
| 116 | +		if (!$paramBot->count()) { | 
                                                        |
| 117 | 117 |  			throw new ImageNotFound("Impossible to crawler parambot from response", 1); | 
                                                        
| 118 | 118 | }  | 
                                                        
| 119 | 119 | |
@@ -135,13 +135,13 @@ discard block  | 
                                                    ||
| 135 | 135 | CURLOPT_HTTPHEADER => array(  | 
                                                        
| 136 | 136 | "Pragma: no-cache",  | 
                                                        
| 137 | 137 | "Origin: " . $this->configurations['base'],  | 
                                                        
| 138 | - "Host: ". array_get($this->configurations, 'headers.Host'),  | 
                                                        |
| 138 | + "Host: " . array_get($this->configurations, 'headers.Host'),  | 
                                                        |
| 139 | 139 | "User-Agent: Mozilla/5.0 (Windows NT 6.1; rv:32.0) Gecko/20100101 Firefox/32.0",  | 
                                                        
| 140 | 140 | "Accept: text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8",  | 
                                                        
| 141 | 141 | "Accept-Language: pt-BR,pt;q=0.8,en-US;q=0.5,en;q=0.3",  | 
                                                        
| 142 | 142 | "Accept-Encoding: gzip, deflate",  | 
                                                        
| 143 | 143 | "Referer: " . $this->configurations['captcha'],  | 
                                                        
| 144 | - "Cookie: flag=1; ". $this->cookie,  | 
                                                        |
| 144 | + "Cookie: flag=1; " . $this->cookie,  | 
                                                        |
| 145 | 145 | "Connection: keep-alive"  | 
                                                        
| 146 | 146 | ),  | 
                                                        
| 147 | 147 | CURLOPT_RETURNTRANSFER => true,  | 
                                                        
@@ -160,7 +160,7 @@ discard block  | 
                                                    ||
| 160 | 160 | $this->captcha = $curl->response();  | 
                                                        
| 161 | 161 | |
| 162 | 162 | // é uma imagem o retorno?  | 
                                                        
| 163 | - if(@imagecreatefromstring($this->captcha) == false)  | 
                                                        |
| 163 | + if (@imagecreatefromstring($this->captcha) == false)  | 
                                                        |
| 164 | 164 |  		{ | 
                                                        
| 165 | 165 |  			throw new NoCaptchaResponse('Não foi possível capturar o captcha'); | 
                                                        
| 166 | 166 | }  | 
                                                        
@@ -239,7 +239,7 @@ discard block  | 
                                                    ||
| 239 | 239 | "Accept-Language: pt-BR,pt;q=0.8,en-US;q=0.6,en;q=0.4,es;q=0.2",  | 
                                                        
| 240 | 240 | "Accept-Encoding: gzip, deflate",  | 
                                                        
| 241 | 241 | "Referer: http://pfeserv1.fazenda.sp.gov.br/sintegrapfe/consultaSintegraServlet",  | 
                                                        
| 242 | - "Cookie: flag=1; ". $cookie,  | 
                                                        |
| 242 | + "Cookie: flag=1; " . $cookie,  | 
                                                        |
| 243 | 243 | "Connection: keep-alive"  | 
                                                        
| 244 | 244 | ),  | 
                                                        
| 245 | 245 | CURLOPT_RETURNTRANSFER => 1,  | 
                                                        
@@ -258,7 +258,7 @@ discard block  | 
                                                    ||
| 258 | 258 | // vamos capturar retorno, que deverá ser o HTML para scrapping  | 
                                                        
| 259 | 259 | $html = $curl->response();  | 
                                                        
| 260 | 260 | |
| 261 | -		if(empty($html)) { | 
                                                        |
| 261 | +		if (empty($html)) { | 
                                                        |
| 262 | 262 |  			throw new NoServiceResponse('No response from service', 99); | 
                                                        
| 263 | 263 | }  | 
                                                        
| 264 | 264 | |
@@ -73,7 +73,7 @@  | 
                                                    ||
| 73 | 73 |  				if ($node->count()) { | 
                                                        
| 74 | 74 | $scrapped[$name] = $this->clearString($node->text());  | 
                                                        
| 75 | 75 | }  | 
                                                        
| 76 | -			}elseif (is_array($selector)) { | 
                                                        |
| 76 | +			} elseif (is_array($selector)) { | 
                                                        |
| 77 | 77 |  				foreach ($selector as $selector => $repeat) { | 
                                                        
| 78 | 78 | $node = $this->scrap($selector);  | 
                                                        
| 79 | 79 |  					if ($node->count()) { |