Completed
Push — master ( 3f99e9...d7ef32 )
by Melech
05:32
created

ServiceProvider::publish()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 2
Code Lines 0

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 1
eloc 0
c 1
b 0
f 0
nc 1
nop 1
dl 0
loc 2
rs 10
1
<?php
2
3
declare(strict_types=1);
4
5
/*
6
 * This file is part of the Valkyrja Framework package.
7
 *
8
 * (c) Melech Mizrachi <[email protected]>
9
 *
10
 * For the full copyright and license information, please view the LICENSE
11
 * file that was distributed with this source code.
12
 */
13
14
namespace Valkyrja\Asset\Providers;
15
16
use Valkyrja\Asset\Adapters\DefaultAdapter;
17
use Valkyrja\Asset\Asset;
18
use Valkyrja\Container\Container;
19
use Valkyrja\Container\Support\Provider;
20
21
/**
22
 * Class ServiceProvider.
23
 *
24
 * @author Melech Mizrachi
25
 */
26
class ServiceProvider extends Provider
27
{
28
    /**
29
     * The items provided by this provider.
30
     *
31
     * @return string[]
32
     */
33
    public static function publishers(): array
34
    {
35
        return [
36
            DefaultAdapter::class => 'publishDefaultAdapter',
37
            Asset::class          => 'publishAsset',
38
        ];
39
    }
40
41
    /**
42
     * The items provided by this provider.
43
     *
44
     * @return string[]
45
     */
46
    public static function provides(): array
47
    {
48
        return [
49
            DefaultAdapter::class,
50
            Asset::class,
51
        ];
52
    }
53
54
    /**
55
     * Publish the provider.
56
     *
57
     * @param Container $container The container
58
     *
59
     * @return void
60
     */
61
    public static function publish(Container $container): void
0 ignored issues
show
Unused Code introduced by
The parameter $container is not used and could be removed. ( Ignorable by Annotation )

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

61
    public static function publish(/** @scrutinizer ignore-unused */ Container $container): void

This check looks for parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
62
    {
63
    }
64
}
65