Skip to content

Commit fa9e789

Browse files
minor styling changes
1 parent b972a92 commit fa9e789

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/ObjectId.php

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -96,11 +96,10 @@ public static function fromTime($time, bool $unique = true): ObjectId
9696
else
9797
throw new Invalid("The input must be a time.");
9898

99-
if ($unique) {
99+
if ($unique)
100100
$data = self::generator()->nextObjectId($timestamp);
101-
} else {
101+
else
102102
$data = pack('N', $timestamp) . "\x00\x00\x00\x00\x00\x00\x00\x00";
103-
}
104103

105104
return self::fromBinary($data);
106105
}
@@ -164,9 +163,8 @@ public function toTime(): DateTime
164163
*/
165164
public function equals($other): bool
166165
{
167-
if (!($other instanceof ObjectId)) {
166+
if (!($other instanceof ObjectId))
168167
return false;
169-
}
170168
return $this->rawData === $other->rawData;
171169
}
172170

0 commit comments

Comments
 (0)