|
19 | 19 | return $this; |
20 | 20 | }); |
21 | 21 |
|
22 | | -expect()->extend('toBeExactGuess', function (float $boost = null) { |
| 22 | +expect()->extend('toBeExactGuess', function (?float $boost = null) { |
23 | 23 | $expectedPoints = (float) (new DefaultCalculationModel())->getPointsForExactGuess(); |
24 | 24 | $expectedPoints = $boost ? $expectedPoints * $boost : $expectedPoints; |
25 | 25 |
|
|
33 | 33 | return $this; |
34 | 34 | }); |
35 | 35 |
|
36 | | -expect()->extend('toBeWrongGuess', function (float $boost = null) { |
| 36 | +expect()->extend('toBeWrongGuess', function (?float $boost = null) { |
37 | 37 | $expectedPoints = (float) (new DefaultCalculationModel())->getPointsForWrongGuess(); |
38 | 38 | $expectedPoints = $boost ? $expectedPoints * $boost : $expectedPoints; |
39 | 39 |
|
|
47 | 47 | return $this; |
48 | 48 | }); |
49 | 49 |
|
50 | | -expect()->extend('toBeExactGapGuess', function (float $boost = null) { |
| 50 | +expect()->extend('toBeExactGapGuess', function (?float $boost = null) { |
51 | 51 | $expectedPoints = (float) (new DefaultCalculationModel())->getPointsForExactGap(); |
52 | 52 | $expectedPoints = $boost ? $expectedPoints * $boost : $expectedPoints; |
53 | 53 |
|
|
61 | 61 | return $this; |
62 | 62 | }); |
63 | 63 |
|
64 | | -expect()->extend('toBeCorrectTendencyGuess', function (float $boost = null) { |
| 64 | +expect()->extend('toBeCorrectTendencyGuess', function (?float $boost = null) { |
65 | 65 | $expectedPoints = (float) (new DefaultCalculationModel())->getPointsForTendency(); |
66 | 66 | $expectedPoints = $boost ? $expectedPoints * $boost : $expectedPoints; |
67 | 67 |
|
|
75 | 75 | return $this; |
76 | 76 | }); |
77 | 77 |
|
78 | | -expect()->extend('toBeDrawGapGuess', function (float $boost = null) { |
| 78 | +expect()->extend('toBeDrawGapGuess', function (?float $boost = null) { |
79 | 79 | $expectedPoints = (float) (new DefaultCalculationModel())->getPointsForDrawGap(); |
80 | 80 | $expectedPoints = $boost ? $expectedPoints * $boost : $expectedPoints; |
81 | 81 |
|
|
0 commit comments