Passed
Push — master ( 47d5af...19bb20 )
by Rob
01:32
created

src/Module.php (1 issue)

1
<?php
2
3
namespace Rvdlee\ZfImageResizer;
4
5
use Zend\Console\Adapter\AdapterInterface as Console;
0 ignored issues
show
The type Zend\Console\Adapter\AdapterInterface 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
use Zend\ModuleManager\Feature\ConfigProviderInterface;
7
8
class Module implements ConfigProviderInterface
9
{
10
    public function getConfig()
11
    {
12
        return include __DIR__ . '/../config/module.config.php';
13
    }
14
15
    public function getConsoleUsage(Console $console)
16
    {
17
        return [
18
            // Describe available commands
19
            'image-resizer [--image] [--width] [--height] [--modus] [--x] [--y]' => 'Resize the given image',
20
21
            // Describe expected parameters
22
            ['--image|-i', 'Provide the image you want to resize'],
23
            ['--width|-w', 'Target width, can be optional if height is provided (ratio scale)'],
24
            ['--height|-h', 'Target height, can be optional if width is provided (ratio scale)'],
25
            ['--modus|-m', 'resize|resize-and-crop|crop'],
26
            ['--crop-modus|-cm', 'manual|upper-left|upper-middle|upper-right|middle-left|centered|middle-right|bottom-left|bottom-middle|bottom-right'],
27
            ['--x|-x', 'Provide x-offset from the top-left corner'],
28
            ['--y|-y', 'Provide y-offset from the top-left corner'],
29
        ];
30
    }
31
}
32
33