| Conditions | 2 |
| Paths | 2 |
| Total Lines | 9 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 3 |
| CRAP Score | 2.0625 |
| Changes | 0 | ||
| 1 | <?php |
||
| 45 | 6 | public function getEngineByExtension($extension) |
|
|
|
|||
| 46 | { |
||
| 47 | 6 | if (isset($this->enginesByExtension[$extension])) |
|
| 48 | { |
||
| 49 | 6 | return $this->enginesByExtension[$extension]; |
|
| 50 | } |
||
| 51 | |||
| 52 | throw new UnsupportedAssetEngineException($extension, "There is no support to handle the '${extension}' asset type."); |
||
| 53 | } |
||
| 54 | |||
| 60 |
Our type inference engine in quite powerful, but sometimes the code does not provide enough clues to go by. In these cases we request you to add a
@returnannotation as described here.