From 43e2cc54543d9f79c9805f752e78e25c351646ff Mon Sep 17 00:00:00 2001 From: Greg Roach Date: Sat, 7 Sep 2019 08:17:24 +0100 Subject: Update vendor dependencies --- vendor/symfony/http-kernel/Bundle/Bundle.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) (limited to 'vendor/symfony/http-kernel/Bundle') diff --git a/vendor/symfony/http-kernel/Bundle/Bundle.php b/vendor/symfony/http-kernel/Bundle/Bundle.php index 26dea9b205..a769e96034 100644 --- a/vendor/symfony/http-kernel/Bundle/Bundle.php +++ b/vendor/symfony/http-kernel/Bundle/Bundle.php @@ -18,8 +18,7 @@ use Symfony\Component\DependencyInjection\ContainerBuilder; use Symfony\Component\DependencyInjection\Extension\ExtensionInterface; /** - * An implementation of BundleInterface that adds a few conventions - * for DependencyInjection extensions and Console commands. + * An implementation of BundleInterface that adds a few conventions for DependencyInjection extensions. * * @author Fabien Potencier */ @@ -87,9 +86,7 @@ abstract class Bundle implements BundleInterface } } - if ($this->extension) { - return $this->extension; - } + return $this->extension ?: null; } /** @@ -154,9 +151,7 @@ abstract class Bundle implements BundleInterface */ protected function createContainerExtension() { - if (class_exists($class = $this->getContainerExtensionClass())) { - return new $class(); - } + return class_exists($class = $this->getContainerExtensionClass()) ? new $class() : null; } private function parseClassName() -- cgit v1.3