HasConfiguration   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Test Coverage

Coverage 100%

Importance

Changes 1
Bugs 0 Features 1
Metric Value
eloc 2
c 1
b 0
f 1
dl 0
loc 12
rs 10
ccs 2
cts 2
cp 1
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A configurationFor() 0 3 1
1
<?php
2
3
namespace Nip\Logger\Manager;
4
5
/**
6
 * Trait HasConfiguration
7
 * @package Nip\Logger\Traits
8
 */
9
trait HasConfiguration
10
{
11
12
    /**
13
     * Get the log connection configuration.
14
     *
15
     * @param string $name
16
     * @return array
17
     */
18 4
    protected function configurationFor($name)
19
    {
20 4
        return static::getPackageConfig("channels.{$name}", ['driver' => 'single']);
21
    }
22
}
23