Merchant   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 8
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 1
eloc 2
c 1
b 0
f 0
dl 0
loc 8
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A execute() 0 6 1
1
<?php
2
namespace Alns\Main\Cli\Export\Google;
3
4
use App\BxConsole\Annotations\Agent;
5
use App\BxConsole\Annotations\Command;
6
use App\BxConsole\BxCommand;
7
use Symfony\Component\Console\Input\InputInterface;
8
use Symfony\Component\Console\Output\OutputInterface;
9
10
/**
11
 * @Command(
12
 *     name="export:google-merchant",
13
 *     description="Google Merchant export"
14
 * )
15
 * @Agent(
16
 *     period=10800
17
 * )
18
 */
19
class Merchant extends BxCommand {
20
21
    protected function execute(InputInterface $input, OutputInterface $output)
22
    {
23
        /*
24
         * Если используете https://github.com/itrukhin/bxmonolog
25
         */
26
        $this->setLogger(new \App\Log('export/google'));
0 ignored issues
show
Bug introduced by
The type App\Log 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...
27
28
        //TODO: build and write merchant XML
29
    }
30
}