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.
Test Failed
Push — master ( bab0de...1a0dda )
by Haven
10:01
created

CsrfViewMiddleware::__invoke()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 15
Code Lines 9

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
dl 0
loc 15
rs 9.4285
c 0
b 0
f 0
cc 1
eloc 9
nc 1
nop 3
1
<?php
2
3
namespace App\Middleware;
4
5
/**
6
*
7
*/
8
class CsrfViewMiddleware extends Middleware
9
{
10
11
	public function __invoke($request,$response,$next)
12
	{
13
		$this->container->view->getEnvironment()->addGlobal('csrf',[
14
			'field' => '
15
				<input type="hidden" name="'. $this->container->csrf->getTokenNameKey() .'"
16
				 value="'. $this->container->csrf->getTokenName() .'">
17
				<input type="hidden" name="'. $this->container->csrf->getTokenValueKey() .'"
18
				 value="'. $this->container->csrf->getTokenValue() .'">
19
			',
20
		]);
21
22
		$response = $next($request,$response);
23
		return $response;
24
25
	}
26
}