1 | <?php |
||
2 | |||
3 | namespace Nip\Controllers\Traits; |
||
4 | |||
5 | use Nip\Config\Config; |
||
6 | use Nip\Http\Response\Response; |
||
7 | use Nip\Request; |
||
8 | use Nip\View; |
||
9 | use Nip\Records\RecordManager; |
||
0 ignored issues
–
show
|
|||
10 | |||
11 | /** |
||
12 | * Trait AbstractControllerTrait |
||
13 | * @package Nip\Controllers\Traits |
||
14 | */ |
||
15 | trait AbstractControllerTrait |
||
16 | { |
||
17 | |||
18 | /** |
||
19 | * @param bool $autoInit |
||
20 | * @return Response |
||
21 | */ |
||
22 | abstract public function getResponse($autoInit = false); |
||
23 | |||
24 | /** |
||
25 | * @param bool $autoInit |
||
26 | * @return Request |
||
27 | */ |
||
28 | abstract public function getRequest($autoInit = false); |
||
29 | |||
30 | /** |
||
31 | * Return Config Object |
||
32 | * |
||
33 | * @return Config |
||
34 | */ |
||
35 | abstract public function getConfig(); |
||
36 | |||
37 | /** |
||
38 | * @return View |
||
39 | */ |
||
40 | abstract public function getView(); |
||
41 | |||
42 | /** |
||
43 | * @return string |
||
44 | */ |
||
45 | abstract public function getAction(); |
||
46 | |||
47 | /** |
||
48 | * @return RecordManager |
||
49 | */ |
||
50 | // abstract public function getModelManager(); |
||
51 | |||
52 | /** |
||
53 | * @param $url |
||
54 | * @param null $code |
||
0 ignored issues
–
show
|
|||
55 | * @return mixed |
||
56 | */ |
||
57 | abstract protected function redirect($url, $code = null); |
||
58 | |||
59 | /** |
||
60 | * @param $message |
||
61 | * @param $url |
||
62 | * @param string $type |
||
63 | * @param bool $name |
||
64 | * @return mixed |
||
65 | */ |
||
66 | abstract protected function flashRedirect($message, $url, $type = 'success', $name = false); |
||
67 | } |
||
68 |
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:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths