Passed
Push — develop ( adb61b...9823db )
by Nils
01:20
created

SymfonyConsoleOutputExporter::process()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 1

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 1
c 1
b 0
f 0
dl 0
loc 3
rs 10
cc 1
nc 1
nop 3
1
<?php
2
3
namespace Fowp\WordPressPluginRetriever\Export;
4
5
use Symfony\Component\Console\Output\OutputInterface;
0 ignored issues
show
Bug introduced by
The type Symfony\Component\Console\Output\OutputInterface 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...
6
7
/**
8
 * This exporter just echos the current status of the retriever process.
9
 *
10
 * @example
11
 *   - Retrieved plugin block 1 of 222.
12
 *
13
 * @author [email protected]
14
 */
15
class SymfonyConsoleOutputExporter implements Exporter
16
{
17
    private OutputInterface $output;
18
19
    public function __construct(OutputInterface $output)
20
    {
21
        $this->output = $output;
22
        $this->output->writeln('');
23
    }
24
25
    /**
26
     * @inheritDoc
27
     */
28
    public function process(array $pluginBlock, int $currentPage, int $maxPages): void
29
    {
30
        $this->output->writeln(" - Retrieved plugin block " . $currentPage . ' of ' . $maxPages);
31
    }
32
33
    /**
34
     * @inheritDoc
35
     */
36
    public function finish(): void
37
    {
38
        $this->output->writeln('');
39
    }
40
}
41