Skip to content

Commit

Permalink
Merge pull request #123 from carusogabriel/simplify-return
Browse files Browse the repository at this point in the history
Simplify return
  • Loading branch information
diegofelix committed Jan 15, 2018
2 parents cc087a1 + 59a96c2 commit f5539e9
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 f5539e9

Please sign in to comment.