1 | <?php |
||
2 | |||
3 | namespace Nip\Logger\Manager; |
||
4 | |||
5 | use Nip\Container\ContainerAwareTrait; |
||
6 | |||
7 | /** |
||
8 | * Trait HasApplication |
||
9 | * @package Nip\Logger\Traits |
||
10 | */ |
||
11 | trait HasApplication |
||
12 | { |
||
13 | use ContainerAwareTrait; |
||
14 | |||
15 | /** |
||
16 | * @var Application |
||
0 ignored issues
–
show
|
|||
17 | */ |
||
18 | protected $application = null; |
||
19 | |||
20 | /** |
||
21 | * @return Application |
||
22 | */ |
||
23 | public function getApplication() |
||
24 | { |
||
25 | return $this->application; |
||
26 | } |
||
27 | |||
28 | /** |
||
29 | * @param Application $application |
||
30 | */ |
||
31 | public function setApplication($application) |
||
32 | { |
||
33 | $this->application = $application; |
||
34 | } |
||
35 | |||
36 | /** |
||
37 | * @return bool |
||
38 | */ |
||
39 | public function hasApplication() |
||
40 | { |
||
41 | return is_object($this->application); |
||
42 | } |
||
43 | |||
44 | /** |
||
45 | * @return string |
||
46 | */ |
||
47 | 1 | protected function getLogsFolderPath() |
|
48 | { |
||
49 | 1 | return $this->getContainer()->get('path.storage') . '/logs'; |
|
50 | } |
||
51 | } |
||
52 |
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