| Conditions | 3 | 
| Paths | 3 | 
| Total Lines | 12 | 
| Code Lines | 7 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 8 | 
| CRAP Score | 3 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 63 | 1 | 	public function getBindingForFile( $file ) { | 
            |
| 64 | 1 | $engine_key = $this->default;  | 
            |
| 65 | |||
| 66 | 1 | 		foreach ( $this->bindings as $suffix => $engine ) { | 
            |
| 67 | 1 | 			if ( substr( $file, -strlen( $suffix ) ) === $suffix ) { | 
            |
| 68 | 1 | $engine_key = $engine;  | 
            |
| 69 | 1 | break;  | 
            |
| 70 | }  | 
            ||
| 71 | 1 | }  | 
            |
| 72 | |||
| 73 | 1 | return $engine_key;  | 
            |
| 74 | }  | 
            ||
| 75 | |||
| 85 |