1 | <?php |
||||||||||
2 | |||||||||||
3 | namespace ControleOnline\Service; |
||||||||||
4 | |||||||||||
5 | use ControleOnline\Entity\People; |
||||||||||
0 ignored issues
–
show
|
|||||||||||
6 | use ControleOnline\Entity\Task; |
||||||||||
7 | use ControleOnline\Entity\TaskInteration; |
||||||||||
8 | use ControleOnline\Messages\MessageInterface; |
||||||||||
0 ignored issues
–
show
The type
ControleOnline\Messages\MessageInterface 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||||||||
9 | use Doctrine\ORM\EntityManagerInterface; |
||||||||||
0 ignored issues
–
show
The type
Doctrine\ORM\EntityManagerInterface 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||||||||
10 | use Symfony\Component\Security\Core\Authentication\Token\Storage\TokenStorageInterface as Security; |
||||||||||
0 ignored issues
–
show
The type
Symfony\Component\Securi...e\TokenStorageInterface 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||||||||
11 | use Symfony\Component\HttpFoundation\RequestStack; |
||||||||||
0 ignored issues
–
show
The type
Symfony\Component\HttpFoundation\RequestStack 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||||||||
12 | use Doctrine\ORM\QueryBuilder; |
||||||||||
0 ignored issues
–
show
The type
Doctrine\ORM\QueryBuilder 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||||||||
13 | |||||||||||
14 | class TaskService |
||||||||||
15 | { |
||||||||||
16 | private $request; |
||||||||||
17 | |||||||||||
18 | public function __construct( |
||||||||||
19 | private EntityManagerInterface $manager, |
||||||||||
20 | private Security $security, |
||||||||||
21 | private RequestStack $requestStack, |
||||||||||
22 | private StatusService $statusService, |
||||||||||
0 ignored issues
–
show
The type
ControleOnline\Service\StatusService 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||||||||
23 | private PeopleService $peopleService, |
||||||||||
0 ignored issues
–
show
The type
ControleOnline\Service\PeopleService 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||||||||
24 | private FileService $fileService |
||||||||||
0 ignored issues
–
show
The type
ControleOnline\Service\FileService 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||||||||
25 | ) { |
||||||||||
26 | $this->request = $this->requestStack->getCurrentRequest(); |
||||||||||
27 | } |
||||||||||
28 | |||||||||||
29 | public function securityFilter(QueryBuilder $queryBuilder, $resourceClass = null, $applyTo = null, $rootAlias = null): void |
||||||||||
0 ignored issues
–
show
The parameter
$resourceClass is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. ![]() The parameter
$applyTo is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. ![]() The parameter
$rootAlias is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. ![]() The parameter
$queryBuilder is not used and could be removed.
(
Ignorable by Annotation
)
If this is a false-positive, you can also ignore this issue in your code via the
This check looks for parameters that have been defined for a function or method, but which are not used in the method body. ![]() |
|||||||||||
30 | { |
||||||||||
31 | |||||||||||
32 | /* |
||||||||||
33 | $companies = $this->peopleService->getMyCompanies(); |
||||||||||
34 | $queryBuilder->andWhere(sprintf('%s.taskFor IN(:companies) OR %s.client IN(:companies) OR %s.provider IN(:companies) %s.registeredBy IN(:companies)', $rootAlias, $rootAlias)); |
||||||||||
35 | $queryBuilder->setParameter('companies', $companies); |
||||||||||
36 | */ |
||||||||||
37 | |||||||||||
38 | //echo $queryBuilder->getQuery()->getSQL(); |
||||||||||
39 | } |
||||||||||
40 | } |
||||||||||
41 |
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