Conditions | 2 |
Paths | 2 |
Total Lines | 9 |
Lines | 0 |
Ratio | 0 % |
Tests | 3 |
CRAP Score | 2.0625 |
Changes | 0 |
1 | <?php |
||
46 | 4 | public function getEngineByExtension($extension) |
|
47 | { |
||
48 | 4 | if (isset($this->enginesByExtension[$extension])) |
|
49 | { |
||
50 | 4 | return $this->enginesByExtension[$extension]; |
|
51 | } |
||
52 | |||
53 | throw new UnsupportedAssetEngineException($extension, 'There is no support to handle this asset type.'); |
||
54 | } |
||
55 | |||
61 |
Short variable names may make your code harder to understand. Variable names should be self-descriptive. This check looks for variable names who are shorter than a configured minimum.