Completed
Push — master ( 2f25c9...4c0020 )
by
unknown
06:10
created

helpers.php ➔ notifynder_config()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
cc 2
eloc 5
nc 2
nop 2
dl 0
loc 9
rs 9.6666
c 0
b 0
f 0
1
<?php
2
3
if (! function_exists('notifynder_config')) {
4
    /**
5
     * @param null|string $key
6
     * @param null|mixed $default
7
     * @return mixed|\Fenos\Notifynder\Contracts\ConfigContract
8
     */
9
    function notifynder_config($key = null, $default = null)
10
    {
11
        $config = app('notifynder.config');
12
        if (is_null($key)) {
13
            return $config;
14
        }
15
16
        return $config->get($key, $default);
17
    }
18
}
19