From 7dfe286897ae77317fa9a0858a45782feb097fba Mon Sep 17 00:00:00 2001 From: Kris Wallsmith Date: Tue, 26 Apr 2011 00:18:22 -0700 Subject: [PATCH] [AsseticBundle] coding standard and comment tweaks --- src/Symfony/Component/HttpKernel/Bundle/Bundle.php | 4 +++- src/Symfony/Component/HttpKernel/Bundle/BundleInterface.php | 2 +- 2 files changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Symfony/Component/HttpKernel/Bundle/Bundle.php b/src/Symfony/Component/HttpKernel/Bundle/Bundle.php index fd80e1ca87..546398525b 100644 --- a/src/Symfony/Component/HttpKernel/Bundle/Bundle.php +++ b/src/Symfony/Component/HttpKernel/Bundle/Bundle.php @@ -69,7 +69,9 @@ abstract class Bundle extends ContainerAware implements BundleInterface $this->extension = class_exists($class) ? new $class() : false; } - return $this->extension ?: null; + if ($this->extension) { + return $this->extension; + } } /** diff --git a/src/Symfony/Component/HttpKernel/Bundle/BundleInterface.php b/src/Symfony/Component/HttpKernel/Bundle/BundleInterface.php index c76619cafa..a930a1729e 100644 --- a/src/Symfony/Component/HttpKernel/Bundle/BundleInterface.php +++ b/src/Symfony/Component/HttpKernel/Bundle/BundleInterface.php @@ -42,7 +42,7 @@ interface BundleInterface /** * Returns the container extension that should be implicitly loaded. * - * @return ExtensionInterface|null The default extension + * @return ExtensionInterface|null The default extension or null if there is none */ function getContainerExtension();