Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Yanoox/ScoreBoardAPI.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,7 +115,7 @@ public static function getLineScore(Player $player, int $line) : string{
if (!self::hasScore($player)){
throw new \BadFunctionCallException("Cannot get the line : the player's scoreboard has not been found");
}
if(self::isLineValid(($line)){
if(self::isLineValid(($line))){
throw new \OutOfBoundsException("$line isn't between 1 and 15");
}

Expand All @@ -133,7 +133,7 @@ public static function editLineScore(Player $player, int $line, string $replace,
if (!isset(self::$lineScore[strtolower($player->getName())[$line]]) or !self::hasScore($player)){
throw new \BadFunctionCallException("Cannot edit the line : the player's scoreboard has not been found");
}
if(self::isLineCorrect($line)){
if(self::isLineValid($line)){
throw new \OutOfBoundsException("$line isn't between 1 and 15");
}

Expand Down