Permalink
Browse files

Remove untested logic.

  • Loading branch information...
1 parent 9e9c97d commit 26a3f81f9a817b12093e2107edfaea81652865a7 @lukemorton lukemorton committed May 2, 2012
Showing with 1 addition and 6 deletions.
  1. +1 −6 classes/Gignite/TheCure/Models/Magic.php
@@ -95,7 +95,6 @@ private function relationship(array $attributes, $method, array $args)
$interface = "Gignite\\TheCure\\Relation\\{$interface}";
if (interface_exists($interface)
- AND $relationship
AND $relationship instanceOf $interface)
{
return $relationship->{$verb}($this->__container(), $this, $arg);
@@ -133,13 +132,9 @@ public function __call($method, $args)
{
$value = $object->{$field->name()};
}
- elseif ($field instanceOf Field)
- {
- $value = $field->value();
- }
else
{
- $value = NULL;
+ $value = $field->value();
}
return $value;

0 comments on commit 26a3f81

Please sign in to comment.