Permalink
Browse files

Simplify code

  • Loading branch information...
1 parent 3945121 commit 430ed76b934024478e9a10854e14eb5dc72919bc @lanthaler committed Dec 30, 2015
Showing with 4 additions and 7 deletions.
  1. +4 −7 Node.php
View
@@ -461,13 +461,10 @@ protected function removeReverseProperty($property, NodeInterface $node)
*/
protected function isValidPropertyValue($value)
{
- if (is_scalar($value) || (is_object($value) &&
- ((($value instanceof NodeInterface) && ($value->getGraph() === $this->graph)) ||
- ($value instanceof Value)))) {
- return true;
- }
-
- return false;
+ return (is_scalar($value) ||
+ (is_object($value) &&
+ ((($value instanceof NodeInterface) && ($value->getGraph() === $this->graph)) ||
+ ($value instanceof Value))));
}
/**

0 comments on commit 430ed76

Please sign in to comment.