Conditions | 2 |
Paths | 2 |
Total Lines | 11 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 5 |
CRAP Score | 2 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
41 | public function __construct($config) |
||
42 | 3 | { |
|
43 | if (is_string($config)) { |
||
44 | 3 | $config = config($config, config(self::CONF_DIR . $config, [])); |
|
45 | 2 | } |
|
46 | 2 | ||
47 | $this->configurable = new Collection($config); |
||
48 | |||
49 | 1 | $this->configs = $this->excludeBodyConfig(); |
|
50 | |||
51 | $this->hooks = $this->configurable->get(self::REQUEST_URI, []); |
||
52 | 2 | } |
|
79 |