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