Avoid variables with short names like $e. Configured minimum length is 3.
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.
The return type could not be reliably inferred; please add a @return annotation.
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 @return
annotation as described here.
Loading history...
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.');
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.