Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Code Lines | 6 |
Lines | 0 |
Ratio | 0 % |
Changes | 3 | ||
Bugs | 3 | Features | 1 |
1 | <?php |
||
26 | public function __construct(?array $config = null) |
||
27 | { |
||
28 | $this->config = $config ?? Arr::wrap(config('pinyin')); |
||
29 | $path = $loader = null; |
||
30 | if (is_array($this->config)) { |
||
|
|||
31 | $path = Arr::get($this->config, 'data'); |
||
32 | $loader = Arr::get($this->config, 'default'); |
||
33 | } |
||
34 | parent::__construct($loader, $path); |
||
35 | } |
||
48 | } |