Skip to content

Commit

Permalink
Simplify return
Browse files Browse the repository at this point in the history
  • Loading branch information
carusogabriel committed Jan 14, 2018
1 parent e894d23 commit 59a96c2
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions src/Mongolid/Util/ObjectIdUtils.php
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,6 @@ public static function isObjectId($value)
$value = (string) $value;
}

if (is_string($value) && 24 == strlen($value) && ctype_xdigit($value)) {
return true;
}

return false;
return is_string($value) && 24 == strlen($value) && ctype_xdigit($value);
}
}

0 comments on commit 59a96c2

Please sign in to comment.