GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Completed
Push — master ( 6ce9ed...6b9c73 )
by Carlos
03:10
created
src/Sintegra/Services/Portais/SP/Search.php 2 patches
Spacing   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -113,7 +113,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 block discarded – undo
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
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 * para os método como cookie e captcha prepararem suas informações
63 63
 	 * 
64 64
 	 * @param  array $configurations  @ref zServices\Sintegra\Services\Sintegra\{Service}\Service::$configurations
65
-	 * @return object
65
+	 * @return Search
66 66
 	 */
67 67
 	public function request($configurations)
68 68
 	{
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 	 * @param  string  $cookie   Referencia: $service->cookie()
208 208
 	 * @param  string  $captcha  Texto do captcha resolvido pelo usuário
209 209
 	 * @param  array   $params   Parametros avulsos de requisição. Referência $service->params()
210
-	 * @return array   $data     Informações da entidade no serviço.
210
+	 * @return Crawler   $data     Informações da entidade no serviço.
211 211
 	 */
212 212
 	public function getData($document, $cookie, $captcha, $params, $configurations)
213 213
 	{
Please login to merge, or discard this patch.
src/ReceitaFederal/Services/Portais/AN/Crawler.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
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()) {
Please login to merge, or discard this patch.
src/Miscellany/Curl.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -33,7 +33,7 @@  discard block
 block discarded – undo
33 33
 
34 34
 	/**
35 35
 	 * Initialize
36
-	 * @return object
36
+	 * @return Curl
37 37
 	 */
38 38
 	public function init($url)
39 39
 	{
@@ -47,7 +47,7 @@  discard block
 block discarded – undo
47 47
 	/**
48 48
 	 * Set option
49 49
 	 * @param  array  $options [description]
50
-	 * @return object
50
+	 * @return Curl
51 51
 	 */
52 52
 	public function options(array $options)
53 53
 	{
@@ -60,7 +60,7 @@  discard block
 block discarded – undo
60 60
 
61 61
 	/**
62 62
 	 * POST Params
63
-	 * @return object
63
+	 * @return Curl
64 64
 	 */
65 65
 	public function post(array $fields)
66 66
 	{
@@ -90,7 +90,7 @@  discard block
 block discarded – undo
90 90
 
91 91
 	/**
92 92
 	 * Close connection
93
-	 * @return object
93
+	 * @return Curl
94 94
 	 */
95 95
 	public function close()
96 96
 	{
Please login to merge, or discard this patch.
src/ReceitaFederal/Services/Portais/AN/Search.php 2 patches
Unused Use Statements   -3 removed lines patch added patch discarded remove patch
@@ -5,9 +5,6 @@
 block discarded – undo
5 5
 use zServices\Miscellany\Exceptions\NoServiceCall;
6 6
 use zServices\Miscellany\Exceptions\NoCaptchaResponse;
7 7
 use zServices\Miscellany\Exceptions\NoServiceResponse;
8
-use zServices\Miscellany\Exceptions\ImageNotFound;
9
-use zServices\Miscellany\Exceptions\InvalidInputs;
10
-use zServices\Miscellany\Exceptions\InvalidCaptcha;
11 8
 use zServices\Miscellany\ClientHttp;
12 9
 use zServices\Miscellany\Curl;
13 10
 
Please login to merge, or discard this patch.
Doc Comments   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -62,7 +62,7 @@  discard block
 block discarded – undo
62 62
 	 * para os método como cookie e captcha prepararem suas informações
63 63
 	 * 
64 64
 	 * @param  array $configurations  @ref zServices\Sintegra\Services\Sintegra\{Service}\Service::$configurations
65
-	 * @return object
65
+	 * @return Search
66 66
 	 */
67 67
 	public function request($configurations)
68 68
 	{
@@ -207,7 +207,7 @@  discard block
 block discarded – undo
207 207
 	 * @param  string  $cookie   Referencia: $service->cookie()
208 208
 	 * @param  string  $captcha  Texto do captcha resolvido pelo usuário
209 209
 	 * @param  array   $params   Parametros avulsos de requisição. Referência $service->params()
210
-	 * @return array   $data     Informações da entidade no serviço.
210
+	 * @return Crawler   $data     Informações da entidade no serviço.
211 211
 	 */
212 212
 	public function getData($document, $cookie, $captcha, $params, $configurations)
213 213
 	{
Please login to merge, or discard this patch.
src/Sintegra/Services/Portais/SP/Service.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 	/**
72 72
 	 * Executa primeira requisição preparando
73 73
 	 * o cookie e captcha
74
-	 * @return  void
74
+	 * @return  Service
75 75
 	 */
76 76
 	public function request()
77 77
 	{
Please login to merge, or discard this patch.
src/Sintegra/Services/Portais/SP/Crawler.php 1 patch
Braces   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -73,7 +73,7 @@
 block discarded – undo
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()) {
Please login to merge, or discard this patch.
src/ReceitaFederal/Services/Portais/AN/Service.php 1 patch
Doc Comments   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -71,7 +71,7 @@
 block discarded – undo
71 71
 	/**
72 72
 	 * Executa primeira requisição preparando
73 73
 	 * o cookie e captcha
74
-	 * @return  void
74
+	 * @return  Service
75 75
 	 */
76 76
 	public function request()
77 77
 	{
Please login to merge, or discard this patch.
src/Laravel/ServicesProvider.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -34,7 +34,7 @@  discard block
 block discarded – undo
34 34
    */
35 35
   protected function registerReceitaFederal()
36 36
   {
37
-  	$this->app->bind('ReceitaFederal', function(){
37
+  	$this->app->bind('ReceitaFederal', function() {
38 38
   		return new RFSearch;
39 39
   	});
40 40
   }
@@ -46,7 +46,7 @@  discard block
 block discarded – undo
46 46
    */
47 47
   protected function registerSintegra()
48 48
   {
49
-  	$this->app->bind('Sintegra', function(){
49
+  	$this->app->bind('Sintegra', function() {
50 50
   		return new Search;
51 51
   	});
52 52
   }
Please login to merge, or discard this patch.