Issues (108)

src/Command/MagicCommand.php (2 issues)

Labels
Severity
1
<?php
2
3
/**
4
 * @copyright Bluz PHP Team
5
 * @link https://github.com/bluzphp/bluzman
6
 */
7
8
namespace Bluzman\Command;
9
10
use Symfony\Component\Console\Input\InputInterface;
0 ignored issues
show
The type Symfony\Component\Console\Input\InputInterface 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...
11
use Symfony\Component\Console\Output\OutputInterface;
0 ignored issues
show
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...
12
13
/**
14
 * Class TestCommand
15
 *
16
 * @package Bluzman\Command
17
 *
18
 * @author   Pavel Machekhin
19
 * @created  2013-03-28 14:03
20
 */
21
class MagicCommand extends AbstractCommand
22
{
23
    /**
24
     * Command configuration
25 15
     */
26
    protected function configure()
27
    {
28
        $this
29 15
            // the name of the command (the part after "bin/bluzman")
30
            ->setName('i-need-magic')
31 15
            // the short description shown while running "php bin/bluzman list"
32
            ->setDescription('Magic is here')
33
            // the full command description shown when running the command with
34 15
            // the "--help" option
35
            ->setHelp('This command allows you to contribute')
36 15
        ;
37
    }
38
39
    /**
40
     * @param InputInterface $input
41
     * @param OutputInterface $output
42
     * @return int
43
     */
44
    protected function execute(InputInterface $input, OutputInterface $output): int
45
    {
46
        $this->callForContribute();
47
        return 0;
48
    }
49
}
50