| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 14 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Changes | 1 | ||
| Bugs | 0 | Features | 0 | 
| 1 | <?php | ||
| 43 | protected function config( string $key, $default = null ) | ||
| 44 | 	{ | ||
| 45 | $config = $this->config; | ||
| 46 | |||
| 47 | foreach( explode( '/', trim( $key, '/' ) ) as $part ) | ||
| 48 | 		{ | ||
| 49 | 			if( isset( $config[$part] ) ) { | ||
| 50 | $config = $config[$part]; | ||
| 51 | 			} else { | ||
| 52 | return $default; | ||
| 53 | } | ||
| 54 | } | ||
| 55 | |||
| 56 | return $config; | ||
| 57 | } | ||
| 59 |