Issues (136)

src/Console/ConsoleFacade.php (4 issues)

Labels
Severity
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Gacela\Console;
6
7
use Gacela\Console\Domain\AllAppModules\AppModule;
8
use Gacela\Console\Domain\CommandArguments\CommandArguments;
9
use Gacela\Framework\AbstractFacade;
10
11
/**
12
 * @extends AbstractFacade<ConsoleFactory>
13
 */
14
final class ConsoleFacade extends AbstractFacade
15
{
16
    public function sanitizeFilename(string $filename): string
17
    {
18
        return $this->getFactory()
19
            ->createFilenameSanitizer()
0 ignored issues
show
The method createFilenameSanitizer() does not exist on Gacela\Framework\AbstractFactory. It seems like you code against a sub-type of Gacela\Framework\AbstractFactory such as GacelaTest\Benchmark\FileCache\ModuleC\FactoryC or GacelaTest\Benchmark\FileCache\ModuleE\FactoryE or GacelaTest\Benchmark\Fil...\ModuleG\ModuleGFactory or GacelaTest\Benchmark\FileCache\ModuleA\FactoryA or GacelaTest\Feature\Frame...ileCache\Module\Factory or Gacela\Console\ConsoleFactory or GacelaTest\Benchmark\FileCache\ModuleB\FactoryB or GacelaTest\Benchmark\FileCache\ModuleD\FactoryD or GacelaTest\Benchmark\FileCache\ModuleF\Factory. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

19
            ->/** @scrutinizer ignore-call */ createFilenameSanitizer()
Loading history...
20
            ->sanitize($filename);
21
    }
22
23
    public function parseArguments(string $desiredNamespace): CommandArguments
24
    {
25
        return $this->getFactory()
26
            ->createCommandArgumentsParser()
0 ignored issues
show
The method createCommandArgumentsParser() does not exist on Gacela\Framework\AbstractFactory. It seems like you code against a sub-type of Gacela\Framework\AbstractFactory such as GacelaTest\Benchmark\FileCache\ModuleC\FactoryC or GacelaTest\Benchmark\FileCache\ModuleE\FactoryE or GacelaTest\Benchmark\Fil...\ModuleG\ModuleGFactory or GacelaTest\Benchmark\FileCache\ModuleA\FactoryA or GacelaTest\Feature\Frame...ileCache\Module\Factory or Gacela\Console\ConsoleFactory or GacelaTest\Benchmark\FileCache\ModuleB\FactoryB or GacelaTest\Benchmark\FileCache\ModuleD\FactoryD or GacelaTest\Benchmark\FileCache\ModuleF\Factory. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

26
            ->/** @scrutinizer ignore-call */ createCommandArgumentsParser()
Loading history...
27
            ->parse($desiredNamespace);
28
    }
29
30
    public function generateFileContent(
31
        CommandArguments $commandArguments,
32
        string $filename,
33
        bool $withShortName = false,
34
    ): string {
35
        return $this->getFactory()
36
            ->createFileContentGenerator()
0 ignored issues
show
The method createFileContentGenerator() does not exist on Gacela\Framework\AbstractFactory. It seems like you code against a sub-type of Gacela\Framework\AbstractFactory such as GacelaTest\Benchmark\FileCache\ModuleC\FactoryC or GacelaTest\Benchmark\FileCache\ModuleE\FactoryE or GacelaTest\Benchmark\Fil...\ModuleG\ModuleGFactory or GacelaTest\Benchmark\FileCache\ModuleA\FactoryA or GacelaTest\Feature\Frame...ileCache\Module\Factory or Gacela\Console\ConsoleFactory or GacelaTest\Benchmark\FileCache\ModuleB\FactoryB or GacelaTest\Benchmark\FileCache\ModuleD\FactoryD or GacelaTest\Benchmark\FileCache\ModuleF\Factory. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

36
            ->/** @scrutinizer ignore-call */ createFileContentGenerator()
Loading history...
37
            ->generate($commandArguments, $filename, $withShortName);
38
    }
39
40
    /**
41
     * @return list<AppModule>
42
     */
43
    public function findAllAppModules(string $filter = ''): array
44
    {
45
        return $this->getFactory()
46
            ->createAllAppModulesFinder()
0 ignored issues
show
The method createAllAppModulesFinder() does not exist on Gacela\Framework\AbstractFactory. It seems like you code against a sub-type of Gacela\Framework\AbstractFactory such as GacelaTest\Benchmark\FileCache\ModuleC\FactoryC or GacelaTest\Benchmark\FileCache\ModuleE\FactoryE or GacelaTest\Benchmark\Fil...\ModuleG\ModuleGFactory or GacelaTest\Benchmark\FileCache\ModuleA\FactoryA or GacelaTest\Feature\Frame...ileCache\Module\Factory or Gacela\Console\ConsoleFactory or GacelaTest\Benchmark\FileCache\ModuleB\FactoryB or GacelaTest\Benchmark\FileCache\ModuleD\FactoryD or GacelaTest\Benchmark\FileCache\ModuleF\Factory. ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

46
            ->/** @scrutinizer ignore-call */ createAllAppModulesFinder()
Loading history...
47
            ->findAllAppModules($filter);
48
    }
49
}
50