| Conditions | 2 |
| Paths | 2 |
| Total Lines | 13 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 7 |
| CRAP Score | 2 |
| Changes | 0 | ||
| 1 | <?php |
||
| 27 | 4 | public function addAssetEngine(AssetEngineInterface $assetEngine) |
|
| 28 | { |
||
| 29 | 4 | $extensions = $assetEngine->getExtensions(); |
|
| 30 | |||
| 31 | 4 | $e = $this->engines[] = $assetEngine; |
|
|
|
|||
| 32 | |||
| 33 | 4 | foreach ($extensions as $extension) |
|
| 34 | { |
||
| 35 | 4 | $this->enginesByExtension[$extension] = $e; |
|
| 36 | } |
||
| 37 | |||
| 38 | 4 | $this->foldersToWatch[$assetEngine->getFolder()] = $e; |
|
| 39 | 4 | } |
|
| 40 | |||
| 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.