Decrease indentation in HelperCollection constructor
This commit is contained in:
@@ -27,7 +27,10 @@ class Mustache_HelperCollection
|
||||
*/
|
||||
public function __construct($helpers = null)
|
||||
{
|
||||
if ($helpers !== null) {
|
||||
if ($helpers === null) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!is_array($helpers) && !$helpers instanceof Traversable) {
|
||||
throw new Mustache_Exception_InvalidArgumentException('HelperCollection constructor expects an array of helpers');
|
||||
}
|
||||
@@ -36,7 +39,6 @@ class Mustache_HelperCollection
|
||||
$this->add($name, $helper);
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Magic mutator.
|
||||
|
||||
Reference in New Issue
Block a user