From 3cf4efbd591f0fae0cd5a4a3d64c422fb864f744 Mon Sep 17 00:00:00 2001 From: Brian French Date: Fri, 4 May 2018 19:11:56 -0400 Subject: [PATCH] Derp. forgot to close function. --- src/Routing/RouteBuilder.php | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/Routing/RouteBuilder.php b/src/Routing/RouteBuilder.php index 37d9384b426..169cfa1b7e8 100644 --- a/src/Routing/RouteBuilder.php +++ b/src/Routing/RouteBuilder.php @@ -753,21 +753,21 @@ protected static function parseDefaults($defaults) switch (count($matches)) { case 2: return [ - 'controller' => (isset($matches[3] ? $matches[3] : null), - 'action' => (isset($matches[4] ? $matches[4] : null) + 'controller' => (isset($matches[3]) ? $matches[3] : null), + 'action' => (isset($matches[4]) ? $matches[4] : null) ]; case 3: return [ 'prefix' => (isset($matches[2]) ? strtolower($matches[2]) : null), - 'controller' => (isset($matches[3] ? $matches[3] : null), - 'action' => (isset($matches[4] ? $matches[4] : null) + 'controller' => (isset($matches[3]) ? $matches[3] : null), + 'action' => (isset($matches[4]) ? $matches[4] : null) ]; case 4: return [ - 'plugin' => (isset($matches[1] ? $matches[1] : null), + 'plugin' => (isset($matches[1]) ? $matches[1] : null), 'prefix' => (isset($matches[2]) ? strtolower($matches[2]) : null), - 'controller' => (isset($matches[3] ? $matches[3] : null), - 'action' => (isset($matches[4] ? $matches[4] : null) + 'controller' => (isset($matches[3]) ? $matches[3] : null), + 'action' => (isset($matches[4]) ? $matches[4] : null) ]; } }