Completed
Push — master ( 00a938...bb8f6f )
by Milan
15s
created
src/Exceptions/InvalidArgument.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -15,7 +15,7 @@  discard block
 block discarded – undo
15 15
 	}
16 16
 
17 17
 
18
-	public static function checkRange(int|string $number, int $limit): void
18
+	public static function checkRange(int | string $number, int $limit): void
19 19
 	{
20 20
 		$check = intval($number);
21 21
 		if ($check < 0 || $check > $limit) {
@@ -30,7 +30,7 @@  discard block
 block discarded – undo
30 30
 	 * @param array<T> $list
31 31
 	 * @return T
32 32
 	 */
33
-	public static function checkIsInList(string|int $value, array $list): string|int
33
+	public static function checkIsInList(string | int $value, array $list): string | int
34 34
 	{
35 35
 		if (!in_array($value, $list, true)) {
36 36
 			throw new InvalidArgument(sprintf('Value "%s" is not contained in list: [%s].', $value, implode(', ', $list)));
Please login to merge, or discard this patch.