From 6856f73b0f4390da03517f2bd4cf7807a4f2bbad Mon Sep 17 00:00:00 2001 From: Alex Pott <alex.a.pott@googlemail.com> Date: Sat, 7 Dec 2013 00:07:30 -0400 Subject: [PATCH] Issue #2031589 by Mark Carver: DrupalKernel.php coder review. --- core/lib/Drupal/Core/DrupalKernel.php | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/core/lib/Drupal/Core/DrupalKernel.php b/core/lib/Drupal/Core/DrupalKernel.php index 8d6e28c1cc4a..016011966d7a 100644 --- a/core/lib/Drupal/Core/DrupalKernel.php +++ b/core/lib/Drupal/Core/DrupalKernel.php @@ -162,7 +162,7 @@ class DrupalKernel implements DrupalKernelInterface, TerminableInterface { */ public function __construct($environment, ClassLoader $class_loader, $allow_dumping = TRUE) { $this->environment = $environment; - $this->booted = false; + $this->booted = FALSE; $this->classLoader = $class_loader; $this->allowDumping = $allow_dumping; } @@ -189,7 +189,7 @@ public function shutdown() { return; } $this->booted = FALSE; - $this->container = null; + $this->container = NULL; } /** @@ -274,7 +274,7 @@ public function terminate(Request $request, Response $response) { /** * {@inheritdoc} */ - public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = true) { + public function handle(Request $request, $type = HttpKernelInterface::MASTER_REQUEST, $catch = TRUE) { if (FALSE === $this->booted) { $this->boot(); } @@ -510,7 +510,7 @@ protected function buildContainer() { $path = DRUPAL_ROOT . '/core/lib/Drupal/' . $parent_directory; foreach (new \DirectoryIterator($path) as $component) { if (!$component->isDot() && is_dir($component->getPathname() . '/Plugin')) { - $namespaces['Drupal\\' . $parent_directory .'\\' . $component->getFilename()] = DRUPAL_ROOT . '/core/lib'; + $namespaces['Drupal\\' . $parent_directory . '\\' . $component->getFilename()] = DRUPAL_ROOT . '/core/lib'; } } } -- GitLab