Passed
Branch master (7b1276)
by Marcel
06:24
created

DataCron::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 10
Code Lines 3

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 1
eloc 3
c 0
b 0
f 0
nc 1
nop 4
dl 0
loc 10
rs 10
1
<?php
2
/**
3
 * Data Analytics
4
 *
5
 * This file is licensed under the Affero General Public License version 3 or
6
 * later. See the LICENSE.md file.
7
 *
8
 * @author Marcel Scherello <[email protected]>
9
 * @copyright 2019 Marcel Scherello
10
 */
11
12
namespace OCA\Analytics\Cron;
13
14
use OC\BackgroundJob\Job;
0 ignored issues
show
Bug introduced by
The type OC\BackgroundJob\Job 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...
15
use OCA\Analytics\Service\DataService;
16
use OCP\ILogger;
17
18
class DataCron extends Job
19
{
20
    private $logger;
21
    private $DataService;
22
23
    public function __construct(
24
        string $AppName,
25
        IRequest $request,
0 ignored issues
show
Bug introduced by
The type OCA\Analytics\Cron\IRequest 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...
26
        ILogger $logger,
27
        DataService $DataService
28
    )
29
    {
30
        parent::__construct($AppName, $request);
31
        $this->logger = $logger;
32
        $this->DataService = $DataService;
33
    }
34
35
    /**
36
     * @param $argument
37
     * @SuppressWarnings(PHPMD.UnusedFormalParameter)
38
     */
39
    protected function run()
40
    {
41
        //ToDo
42
    }
43
}