From 9746b21f9f170f5c34b31eccf44932fc7f9ca46c Mon Sep 17 00:00:00 2001 From: Zachary Tong Date: Sat, 16 Mar 2013 15:27:37 -0400 Subject: [PATCH] Style cleanup --- src/Sherlock/wrappers/FacetWrapper.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/Sherlock/wrappers/FacetWrapper.php b/src/Sherlock/wrappers/FacetWrapper.php index f4b21f4..c47ab1d 100644 --- a/src/Sherlock/wrappers/FacetWrapper.php +++ b/src/Sherlock/wrappers/FacetWrapper.php @@ -38,10 +38,12 @@ public function __call($name, $arguments) { $class = '\\Sherlock\\components\\facets\\'.$name; - if (count($arguments) > 0) + if (count($arguments) > 0) { $this->facet = new $class($arguments[0]); - else + } else { $this->facet = new $class(); + } + return $this->facet; }