Merge pull request #12 from tkaw220/master

Convert indentation to tabs
This commit is contained in:
Rob Gloudemans
2013-07-04 21:50:14 -07:00

View File

@@ -4,31 +4,31 @@ use Illuminate\Support\Collection;
class CartRowOptionsCollection extends Collection {
public function __construct($items)
{
parent::__construct($items);
}
public function __construct($items)
{
parent::__construct($items);
}
public function __get($arg)
{
if($this->has($arg))
{
return $this->get($arg);
}
public function __get($arg)
{
if($this->has($arg))
{
return $this->get($arg);
}
return NULL;
}
return NULL;
}
public function search(Array $search)
{
foreach($search as $key => $value)
{
$found = ($this->{$key} === $value) ? true : false;
public function search(Array $search)
{
foreach($search as $key => $value)
{
$found = ($this->{$key} === $value) ? true : false;
if( ! $found) return false;
}
if( ! $found) return false;
}
return $found;
}
return $found;
}
}