ConsoleProvider::register()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 13

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 8
CRAP Score 1

Importance

Changes 0
Metric Value
cc 1
nc 1
nop 1
dl 0
loc 13
rs 9.8333
c 0
b 0
f 0
ccs 8
cts 8
cp 1
crap 1
1
<?php
2
3
declare(strict_types=1);
4
5
namespace Chubbyphp\ApiSkeleton\Provider;
6
7
use Pimple\Container;
8
use Pimple\ServiceProviderInterface;
9
10
final class ConsoleProvider implements ServiceProviderInterface
11
{
12
    /**
13
     * @param Container $container
14
     */
15 1
    public function register(Container $container)
16
    {
17 1
        $container['console.name'] = 'chubbyphp-api-slim-skeleton';
18 1
        $container['console.version'] = '1.0';
19
20 1
        $container['console.helpers'] = function () {
21 1
            return [];
22
        };
23
24 1
        $container['console.commands'] = function () {
25 1
            return [];
26
        };
27 1
    }
28
}
29