From dc594ef1e5b59a31b4e68ce59611d19a34b8697d Mon Sep 17 00:00:00 2001 From: Loz Calver Date: Wed, 8 Jul 2015 15:34:21 +0100 Subject: [PATCH] Tidy up whitespace in DataList.php --- model/DataList.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/model/DataList.php b/model/DataList.php index 5699730e8..c306c5f08 100644 --- a/model/DataList.php +++ b/model/DataList.php @@ -419,9 +419,9 @@ class DataList extends ViewableData implements SS_List, SS_Filterable, SS_Sortab $whereArguments = func_get_arg(0); } elseif($numberFuncArgs == 2) { $whereArguments[func_get_arg(0)] = func_get_arg(1); - } else { + } else { throw new InvalidArgumentException('Incorrect number of arguments passed to exclude()'); - } + } return $this->alterDataQuery(function($query, $list) use ($whereArguments) { $subquery = $query->disjunctiveGroup(); @@ -436,16 +436,16 @@ class DataList extends ViewableData implements SS_List, SS_Filterable, SS_Sortab $t = singleton($list->dataClass())->dbObject($field); if($filterType) { $className = "{$filterType}Filter"; - } else { + } else { $className = 'ExactMatchFilter'; } if(!class_exists($className)){ $className = 'ExactMatchFilter'; array_unshift($modifiers, $filterType); - } + } $t = new $className($field, $value, $modifiers); $t->apply($subquery); - } + } }); }