Issues (29)

Controller/UniLoginAppController.php (4 issues)

1
<?php
2
App::uses('AppController', 'Controller');
3
4
/**
5
 * CakePHP plugin for UniLogin.
6
 *
7
 */
8
class UniLoginAppController extends AppController {
0 ignored issues
show
The type AppController was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
9
10
/**
11
 * An array of names of models to load.
12
 *
13
 * @var array
14
 */
15
	public $uses = [];
16
17
/**
18
 * Before action logic.
19
 *
20
 * @return void
21
 */
22
	public function beforeFilter() {
23
		// Allow access to Opauth methods for users of AuthComponent
24
		if (is_object($this->Auth) && method_exists($this->Auth, 'allow')) {
25
			$this->Auth->allow();
26
		}
27
28
		parent::beforeFilter();
29
	}
30
31
/**
32
 * Constructor.
33
 *
34
 * @param CakeRequest $request Request object for this controller. Can be null for testing,
0 ignored issues
show
The type CakeRequest was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
35
 *  but expect that features that use the request parameters will not work.
36
 * @param CakeResponse $response Response object for this controller.
0 ignored issues
show
The type CakeResponse was not found. Maybe you did not declare it correctly or list all dependencies?

The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g. excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
37
 */
38
	public function __construct($request = null, $response = null) {
39
		parent::__construct($request, $response);
40
41
		$this->autoRender = false;
0 ignored issues
show
Bug Best Practice introduced by
The property autoRender does not exist. Although not strictly required by PHP, it is generally a best practice to declare properties explicitly.
Loading history...
42
	}
43
44
}
45