Missing break & default

This commit is contained in:
Miguel Nogueira 2020-02-18 16:07:48 +00:00
parent ecc9ecbcce
commit 2ab84fafde

View File

@ -28,6 +28,11 @@ switch ($humanChoice)
case 'scissors':
$humanChoiceItem = new Scissors();
break;
default:
exit('Invalid choice!');
}
@ -44,6 +49,10 @@ switch ($computerChoice)
case 'scissors':
$computerChoiceItem = new Scissors();
break;
default:
exit('Internal error: Invalid computer choice.');
}