Skip to content

Commit

Permalink
Follow order of cases
Browse files Browse the repository at this point in the history
  • Loading branch information
Dhaiven committed Nov 21, 2023
1 parent d5e44f7 commit 19d771c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Facing.php
Original file line number Diff line number Diff line change
Expand Up @@ -109,10 +109,10 @@ public static function isPositive(Facing $direction) : bool{
public static function opposite(Facing $direction) : Facing{
return match ($direction) {
self::DOWN => self::UP,
self::NORTH => self::SOUTH,
self::WEST => self::EAST,
self::UP => self::DOWN,
self::NORTH => self::SOUTH,
self::SOUTH => self::NORTH,
self::WEST => self::EAST,
self::EAST => self::WEST,
};
}
Expand Down

0 comments on commit 19d771c

Please sign in to comment.