Skip to content
Browse files

Merge pull request #9 from benoitpointet/master

linted the sso code
  • Loading branch information...
2 parents a6058fe + f0a0042 commit 5f3dbf24f4de0a8e44f7d22e3655f24172871577 @mbontemps mbontemps committed Mar 6, 2012
View
6 DependencyInjection/Configuration.php
@@ -34,8 +34,7 @@ public function getConfigTreeBuilder()
->scalarNode('api_key')->isRequired()->cannotBeEmpty()->end()
->scalarNode('secret_key')->defaultValue('')->end()
->booleanNode('debug')->defaultValue($this->debug)->end()
- ->end()
- ;
+ ->end();
$this->addForumsSection($rootNode);
@@ -55,7 +54,6 @@ private function addForumsSection(ArrayNodeDefinition $node)
->scalarNode('cache')->defaultNull()->end()
->end()
->end()
- ->end()
- ;
+ ->end();
}
}
View
2 DependencyInjection/KnpDisqusExtension.php
@@ -39,7 +39,7 @@ public function load(array $configs, ContainerBuilder $container)
if (isset($config['secret_key'])) {
$container->setParameter('knp_disqus.secret_key', $config['secret_key']);
}
- $container->setParameter('knp_disqus.debug', (int)$config['debug']);
+ $container->setParameter('knp_disqus.debug', (int) $config['debug']);
$loader = new XmlFileLoader($container, new FileLocator(__DIR__.'/../Resources/config'));
$loader->load('services.xml');
View
1 Disqus.php
@@ -134,6 +134,7 @@ public function getSsoParameters($parameters)
);
}
}
+
return $sso;
}
View
1 Templating/Helper/DisqusHelper.php
@@ -41,6 +41,7 @@ public function render($name, array $parameters = array(), $template = 'KnpDisqu
$parameters['content'] = $content;
$parameters = $parameters + $this->disqus->getParameters();
$parameters['sso'] = $sso;
+
return $this->templating->render($template, $parameters);
}

0 comments on commit 5f3dbf2

Please sign in to comment.
Something went wrong with that request. Please try again.