TokenParserBroker.php - CS fix

This commit is contained in:
Joseph Bielawski
2011-04-29 02:57:54 -07:00
parent fa93043bf3
commit a0709beee6
+2 -2
View File
@@ -30,13 +30,13 @@ class Twig_TokenParserBroker implements Twig_TokenParserBrokerInterface
*/
public function __construct($parsers = array(), $brokers = array())
{
foreach($parsers as $parser) {
foreach ($parsers as $parser) {
if (!$parser instanceof Twig_TokenParserInterface) {
throw new Twig_Error('$parsers must a an array of Twig_TokenParserInterface');
}
$this->parsers[$parser->getTag()] = $parser;
}
foreach($brokers as $broker) {
foreach ($brokers as $broker) {
if (!$broker instanceof Twig_TokenParserBrokerInterface) {
throw new Twig_Error('$brokers must a an array of Twig_TokenParserBrokerInterface');
}