From 93d405c4a34291a07b6068232adf7be20f54088b Mon Sep 17 00:00:00 2001 From: Ingo Schommer Date: Tue, 25 May 2010 03:56:02 +0000 Subject: [PATCH] MINOR Fixed tabbing in DataObjectSet (from r100491) git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@105577 467b73ca-7a2a-4603-9d3b-597d59a354a9 --- core/model/DataObjectSet.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/core/model/DataObjectSet.php b/core/model/DataObjectSet.php index 1d5c93e99..287abdddb 100644 --- a/core/model/DataObjectSet.php +++ b/core/model/DataObjectSet.php @@ -650,17 +650,17 @@ class DataObjectSet extends ViewableData implements IteratorAggregate, Countable return $map; } - - /** - * Find an item in this list where the field $key is equal to $value - * Eg: $doSet->find('ID', 4); - * @return ViewableData The first matching item. - */ - public function find($key, $value) { - foreach($this->items as $item) { - if($item->$key == $value) return $item; - } - } + + /** + * Find an item in this list where the field $key is equal to $value + * Eg: $doSet->find('ID', 4); + * @return ViewableData The first matching item. + */ + public function find($key, $value) { + foreach($this->items as $item) { + if($item->$key == $value) return $item; + } + } /** * Return a column of the given field