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

CollisionServiceProvider::register()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 3
CRAP Score 2

Importance

Changes 0
Metric Value
eloc 2
dl 0
loc 4
ccs 3
cts 3
cp 1
rs 10
c 0
b 0
f 0
cc 2
nc 2
nop 0
crap 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