Helpers   A
last analyzed

Complexity

Total Complexity 4

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Test Coverage

Coverage 71.43%

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 4
eloc 7
c 1
b 0
f 0
dl 0
loc 16
ccs 5
cts 7
cp 0.7143
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A author() 0 11 4
1
<?php
2
3
namespace ByTIC\DocumentGenerator;
4
5
/**
6
 * Class Helpers
7
 * @package ByTIC\DocumentGenerator
8
 */
9
class Helpers
10
{
11
    /**
12
     * @return string
13
     */
14 3
    public static function author()
15
    {
16 3
        if (!function_exists('app')) {
17
            return 'bytic';
18
        }
19 3
        $app = app();
20 3
        if (!$app || !app()->has('config')) {
21
            return 'bytic';
22
        }
23
24 3
        return app('config')->get('SITE.name');
25
    }
26
}
27