ConfigServiceProvider   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 18
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 100%

Importance

Changes 4
Bugs 0 Features 0
Metric Value
wmc 1
c 4
b 0
f 0
lcom 0
cbo 1
dl 0
loc 18
ccs 6
cts 6
cp 1
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A register() 0 8 1
1
<?php
2
3
/*
4
 * This file is part of the Tinyissue package.
5
 *
6
 * (c) Mohamed Alsharaf <[email protected]>
7
 *
8
 * For the full copyright and license information, please view the LICENSE
9
 * file that was distributed with this source code.
10
 */
11
12
namespace Tinyissue\Providers;
13
14
use Illuminate\Support\ServiceProvider;
15
16
/**
17
 * ConfigServiceProvider is for defining & overriding configurations.
18
 *
19
 * @author Mohamed Alsharaf <[email protected]>
20
 */
21
class ConfigServiceProvider extends ServiceProvider
22
{
23
    /**
24
     * Overwrite any vendor / package configuration.
25
     *
26
     * This service provider is intended to provide a convenient location for you
27
     * to overwrite any "vendor" or package configuration that you may want to
28
     * modify before the application handles the incoming request / command.
29
     */
30 63
    public function register()
31
    {
32 63
        config([
33 63
            'tinyissue.release_date' => '19-08-2016',
34 63
            'tinyissue.version'      => '2.9.0',
35 63
            'tinyissue.uploads_dir'  => env('APP_UPLOAD_DIR', 'uploads'),
36
        ]);
37 63
    }
38
}
39