From f6a0dc34d96cd54707367ff0154a1b96331878b6 Mon Sep 17 00:00:00 2001 From: Fibinger Ádám <adam.fibinger@wup.hu> Date: Fri, 21 Feb 2020 14:34:16 +0100 Subject: [PATCH] Nagy és káoszos form szétrobbantása plusz primitív navigáció --- EOG/Models/Stripe.php | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-) diff --git a/EOG/Models/Stripe.php b/EOG/Models/Stripe.php index 2a84d3a..f5734fb 100644 --- a/EOG/Models/Stripe.php +++ b/EOG/Models/Stripe.php @@ -75,17 +75,17 @@ { if (!in_array($color, $this->allowedColors)) { - throw new \InvalidArgumentException("Given colour " . $team_color . " not allowed. Allowed colours: " . implode(', ', $this->allowedColors)); + throw new \InvalidArgumentException("Given colour " . $color . " not allowed. Allowed colours: " . implode(', ', $this->allowedColors)); } } - public function setTeamName(string $team_color = self::TEAM_BLUE, $name) + public function setTeamName(string $team_color = self::TEAM_BLUE, $name= '') { $this->testColor($team_color); $this->state['team'][$team_color]['name'] = $name; } - public function addTeamBan(string $team_color = self::TEAM_BLUE, $operator) + public function addTeamBan(string $team_color = self::TEAM_BLUE, $operator = '') { $this->testColor($team_color); if (!in_array($operator, $this->allowedOperators)) -- Gitblit v1.8.0