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 ( 4163c2...958609 )
by Samuel
02:37
created
src/Role/RoleInterface.php 1 patch
Indentation   +6 added lines, -6 removed lines patch added patch discarded remove patch
@@ -19,10 +19,10 @@
 block discarded – undo
19 19
  */
20 20
 interface RoleInterface
21 21
 {
22
-	/**
23
-	 * Returns the descriptionof a role object
24
-	 *
25
-	 * @return string
26
-	 */
27
-	public function getDescription() : string;
22
+    /**
23
+     * Returns the descriptionof a role object
24
+     *
25
+     * @return string
26
+     */
27
+    public function getDescription() : string;
28 28
 }
Please login to merge, or discard this patch.
src/Acl.php 2 patches
Doc Comments   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -192,7 +192,7 @@  discard block
 block discarded – undo
192 192
 	/**
193 193
 	 * Add a new role object to the registry
194 194
 	 *
195
-	 * @param string[] $role
195
+	 * @param string $role
196 196
 	 * @return void
197 197
 	 */
198 198
 	public function addRole(string ...$role)
@@ -206,7 +206,7 @@  discard block
 block discarded – undo
206 206
 	/**
207 207
 	 * Add a new resource object to the registry
208 208
 	 *
209
-	 * @param string[] $resource
209
+	 * @param string $resource
210 210
 	 * @return void
211 211
 	 */
212 212
 	public function addResource(string ...$resource)
@@ -220,7 +220,7 @@  discard block
 block discarded – undo
220 220
 	/**
221 221
 	 * Add a new permission object to the registry
222 222
 	 *
223
-	 * @param string[] $permission
223
+	 * @param string $permission
224 224
 	 * @return void
225 225
 	 */
226 226
 	public function addPermission(string ...$permission)
Please login to merge, or discard this patch.
Indentation   +117 added lines, -117 removed lines patch added patch discarded remove patch
@@ -133,22 +133,22 @@  discard block
 block discarded – undo
133 133
             );
134 134
         }
135 135
 
136
-		$this->session["role"] = $role;
137
-
138
-		return $this;
139
-	}
140
-
141
-	/**
142
-	 * Listen for and intercept undefined methods
143
-	 *
144
-	 * @param string $permission
145
-	 * @param string[] $args
146
-	 * @throws \Exception
147
-	 * @return boolean|null
148
-	 */
149
-	public function __call(string $permission, array $args)
150
-	{
151
-		if (!$this->permissionRegistry->exists($permission)) {
136
+        $this->session["role"] = $role;
137
+
138
+        return $this;
139
+    }
140
+
141
+    /**
142
+     * Listen for and intercept undefined methods
143
+     *
144
+     * @param string $permission
145
+     * @param string[] $args
146
+     * @throws \Exception
147
+     * @return boolean|null
148
+     */
149
+    public function __call(string $permission, array $args)
150
+    {
151
+        if (!$this->permissionRegistry->exists($permission)) {
152 152
             throw new \Exception(
153 153
                 sprintf(
154 154
                     "The permission: %s doesnt exist",
@@ -168,18 +168,18 @@  discard block
 block discarded – undo
168 168
             }
169 169
         }
170 170
 
171
-		if ($this->session["query"])
172
-		{
173
-			$result = $this->getPermissionStatus(
171
+        if ($this->session["query"])
172
+        {
173
+            $result = $this->getPermissionStatus(
174 174
                 $this->session["role"],
175 175
                 $permission,
176 176
                 $args[0]
177 177
             );
178 178
 
179
-			$this->initSession();
179
+            $this->initSession();
180 180
 
181
-			return $result;
182
-		}
181
+            return $result;
182
+        }
183 183
 
184 184
         foreach ($args as $arg) {
185 185
             $this->allow(
@@ -190,103 +190,103 @@  discard block
 block discarded – undo
190 190
             );
191 191
         }
192 192
 
193
-		$this->initSession();
194
-	}
195
-
196
-	/**
197
-	 * Add a new role object to the registry
198
-	 *
199
-	 * @param string[] $role
200
-	 * @return void
201
-	 */
202
-	public function addRole(string ...$role)
203
-	{
204
-		foreach ($role as $_role)
205
-		{
206
-			$this->roleRegistry->save($_role);
207
-		}
208
-	}
209
-
210
-	/**
211
-	 * Add a new resource object to the registry
212
-	 *
213
-	 * @param string[] $resource
214
-	 * @return void
215
-	 */
216
-	public function addResource(string ...$resource)
217
-	{
218
-		foreach ($resource as $_resource)
219
-		{
220
-			$this->resourceRegistry->save($_resource);
221
-		}
222
-	}
223
-
224
-	/**
225
-	 * Add a new permission object to the registry
226
-	 *
227
-	 * @param string[] $permission
228
-	 * @return void
229
-	 */
230
-	public function addPermission(string ...$permission)
231
-	{
232
-		foreach ($permission as $_permission)
233
-		{
234
-			$this->permissionRegistry->save($_permission);
235
-		}
236
-	}
237
-
238
-	/**
239
-	 * Adds objects lazily.
240
-	 *
241
-	 * Automatically determine the type of an object and call the appropriate
242
-	 * add method on it.
243
-	 *
244
-	 * @param ObjectInterface[] $objects
245
-	 * @throws \Exception
246
-	 * @return void
247
-	 */
248
-	public function add(ObjectInterface ...$objects)
249
-	{
250
-		foreach ($objects as $object)
251
-		{
252
-			if ($object instanceof RoleInterface)
253
-			{
254
-				$this->addRole((string)$object);
255
-			}
256
-			else if ($object instanceof ResourceInterface)
257
-			{
258
-				$this->addResource((string)$object);
259
-			}
260
-			else if ($object instanceof PermissionInterface)
261
-			{
262
-				$this->addPermission((string)$object);
263
-			}
264
-			else {
265
-	            throw new \Exception(
266
-	                sprintf(
267
-	                    "%s must implement one of RoleInterface, '.
193
+        $this->initSession();
194
+    }
195
+
196
+    /**
197
+     * Add a new role object to the registry
198
+     *
199
+     * @param string[] $role
200
+     * @return void
201
+     */
202
+    public function addRole(string ...$role)
203
+    {
204
+        foreach ($role as $_role)
205
+        {
206
+            $this->roleRegistry->save($_role);
207
+        }
208
+    }
209
+
210
+    /**
211
+     * Add a new resource object to the registry
212
+     *
213
+     * @param string[] $resource
214
+     * @return void
215
+     */
216
+    public function addResource(string ...$resource)
217
+    {
218
+        foreach ($resource as $_resource)
219
+        {
220
+            $this->resourceRegistry->save($_resource);
221
+        }
222
+    }
223
+
224
+    /**
225
+     * Add a new permission object to the registry
226
+     *
227
+     * @param string[] $permission
228
+     * @return void
229
+     */
230
+    public function addPermission(string ...$permission)
231
+    {
232
+        foreach ($permission as $_permission)
233
+        {
234
+            $this->permissionRegistry->save($_permission);
235
+        }
236
+    }
237
+
238
+    /**
239
+     * Adds objects lazily.
240
+     *
241
+     * Automatically determine the type of an object and call the appropriate
242
+     * add method on it.
243
+     *
244
+     * @param ObjectInterface[] $objects
245
+     * @throws \Exception
246
+     * @return void
247
+     */
248
+    public function add(ObjectInterface ...$objects)
249
+    {
250
+        foreach ($objects as $object)
251
+        {
252
+            if ($object instanceof RoleInterface)
253
+            {
254
+                $this->addRole((string)$object);
255
+            }
256
+            else if ($object instanceof ResourceInterface)
257
+            {
258
+                $this->addResource((string)$object);
259
+            }
260
+            else if ($object instanceof PermissionInterface)
261
+            {
262
+                $this->addPermission((string)$object);
263
+            }
264
+            else {
265
+                throw new \Exception(
266
+                    sprintf(
267
+                        "%s must implement one of RoleInterface, '.
268 268
 	                    'ResourceInterface and PermissionInterface",
269
-	                    $object
270
-	                )
271
-	            );
272
-	        }	
273
-		}
274
-	}
275
-
276
-	/**
277
-	 * Change the status option of an assigned permission to true
278
-	 *
279
-	 * @param string $role;
280
-	 * @param string $permission
281
-	 * @param string $resource
282
-	 * @param boolean $status Optional
283
-	 * @throws \Exception
284
-	 * @return void
285
-	 */
286
-	public function allow(string $role, string $permission, string $resource, bool $status=null)
287
-	{
269
+                        $object
270
+                    )
271
+                );
272
+            }	
273
+        }
274
+    }
275
+
276
+    /**
277
+     * Change the status option of an assigned permission to true
278
+     *
279
+     * @param string $role;
280
+     * @param string $permission
281
+     * @param string $resource
282
+     * @param boolean $status Optional
283
+     * @throws \Exception
284
+     * @return void
285
+     */
286
+    public function allow(string $role, string $permission, string $resource, bool $status=null)
287
+    {
288 288
         $status = $status ?? true;
289
-		if (!$this->roleRegistry->exists($role)) {
289
+        if (!$this->roleRegistry->exists($role)) {
290 290
             throw new \Exception(
291 291
                 sprintf(
292 292
                     "The role: %s doesnt exist",
Please login to merge, or discard this patch.
src/AclInterface.php 1 patch
Doc Comments   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -22,7 +22,7 @@  discard block
 block discarded – undo
22 22
     /**
23 23
      * Adds a new role object to the registry
24 24
      *
25
-     * @param string $role
25
+     * @param string[] $role
26 26
      * @return void
27 27
      */
28 28
     public function addRole(string ...$role);
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
     /**
31 31
      * Adds a new resource object to the registry
32 32
      *
33
-     * @param string $resource
33
+     * @param string[] $resource
34 34
      * @return void
35 35
      */
36 36
     public function addResource(string ...$resource);
@@ -38,7 +38,7 @@  discard block
 block discarded – undo
38 38
     /**
39 39
      * Adds a new permission object to the registry
40 40
      *
41
-     * @param string $permission
41
+     * @param string[] $permission
42 42
      * @return void
43 43
      */
44 44
     public function addPermission(string ...$permission);
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
      * Automatically determine the type of an object and call the appropriate
50 50
      * add method on it.
51 51
      *
52
-     * @param ObjectInterface $object
52
+     * @param ObjectInterface[] $object
53 53
      * @throws \Exception
54 54
      * @return void
55 55
      */
Please login to merge, or discard this patch.