Test Failed
Push — stable ( 994ca0...7d5c83 )
by Nuno
04:30
created

CollisionServiceProvider   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 9
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 0
Metric Value
wmc 2
eloc 3
dl 0
loc 9
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 4 2
1
<?php
2
3
declare(strict_types=1);
4
5
/**
6
 * This file is part of Laravel Zero.
7
 *
8
 * (c) Nuno Maduro <[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 LaravelZero\Framework\Providers\Collision;
15
16
use NunoMaduro\Collision\Adapters\Laravel\CollisionServiceProvider as BaseCollisionServiceProvider;
17
18
/**
19
 * @internal
20
 */
21
final class CollisionServiceProvider extends BaseCollisionServiceProvider
22
{
23
    /**
24
     * {@inheritdoc}
25
     */
26 29
    public function register(): void
27
    {
28 29
        if (! $this->app->environment('production')) {
29 28
            $this->app->register(BaseCollisionServiceProvider::class);
30
        }
31 29
    }
32
}
33