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 ( a06f6d...331cde )
by Axel
03:41
created
src/Cache/Pool/TextCacheItemPool.php 1 patch
Braces   +4 added lines, -2 removed lines patch added patch discarded remove patch
@@ -128,8 +128,10 @@
 block discarded – undo
128 128
     public function clear() {
129 129
         $items = glob("{$this->cacheFolder}/*.txt"); // get all file names
130 130
         foreach($items as $item){ // iterate files
131
-          if(is_file($item))
132
-            unlink($item); // delete file
131
+          if(is_file($item)) {
132
+                      unlink($item);
133
+          }
134
+          // delete file
133 135
         }
134 136
         $this->deferredItems = [];
135 137
         return true;
Please login to merge, or discard this patch.
example/User.php 1 patch
Braces   +3 added lines, -2 removed lines patch added patch discarded remove patch
@@ -127,8 +127,9 @@
 block discarded – undo
127 127
     	/** @var Visa $visa */
128 128
     	$visas = [];
129 129
 		foreach($this->visas as $visa) {
130
-    		if ($visa->getCountry()->getCode() == $country_code)
131
-				$visas[] = $visa;
130
+    		if ($visa->getCountry()->getCode() == $country_code) {
131
+    						$visas[] = $visa;
132
+    		}
132 133
 		}
133 134
 		return $visas;
134 135
 	}
Please login to merge, or discard this patch.
src/Abac.php 1 patch
Braces   +4 added lines, -3 removed lines patch added patch discarded remove patch
@@ -130,14 +130,15 @@
 block discarded – undo
130 130
 	 * @return array
131 131
 	 */
132 132
 	private function prepareGetterParams($getter_params, $user, $resource) {
133
-		if (empty($getter_params)) return [];
133
+		if (empty($getter_params)) {
134
+		    return [];
135
+		}
134 136
 		$values = [];
135 137
 		foreach($getter_params as $getter_name=>$params) {
136 138
 			foreach($params as $param) {
137 139
 				if ( '@' !== $param[ 'param_name' ][ 0 ] ) {
138 140
 					$values[$getter_name][] = $param[ 'param_value' ];
139
-				}
140
-				else {
141
+				} else {
141 142
 					$values[$getter_name][] = $this->attributeManager->retrieveAttribute( $this->attributeManager->getAttribute( $param[ 'param_value' ] ) , $user, $resource );
142 143
 				}
143 144
 			}
Please login to merge, or discard this patch.