| Conditions | 2 |
| Paths | 2 |
| Total Lines | 10 |
| Code Lines | 6 |
| Lines | 0 |
| Ratio | 0 % |
| Changes | 0 | ||
| 1 | <?php |
||
| 38 | public function make( $type ) { |
||
| 39 | $normalized_type = Helper::normalize_type( $type ); |
||
| 40 | |||
| 41 | if ( isset( $this->ioc[ $normalized_type ] ) ) { |
||
| 42 | return $this->ioc[ $normalized_type ]; |
||
| 43 | } |
||
| 44 | |||
| 45 | Incorrect_Syntax_Exception::raise( 'Unknown condition type "' . $type . '".' ); |
||
| 46 | return null; |
||
| 47 | } |
||
| 48 | } |