We could not synchronize checks via GitHub's checks API since Scrutinizer's GitHub App is not installed for this repository.
@@ -28,7 +28,7 @@ |
||
28 | 28 | } |
29 | 29 | |
30 | 30 | public function getBoolean(string $name): bool { |
31 | - return match ($this->dbRecord[$name]) { |
|
31 | + return match($this->dbRecord[$name]) { |
|
32 | 32 | 'TRUE' => true, |
33 | 33 | 'FALSE' => false, |
34 | 34 | }; |
@@ -35,13 +35,13 @@ |
||
35 | 35 | const USER_SCORE_NAME = 'User Score'; |
36 | 36 | $hofTypes = [DONATION_NAME => true, USER_SCORE_NAME => true]; |
37 | 37 | foreach ($dbResult->records() as $dbRecord) { |
38 | - $hof =& $hofTypes; |
|
38 | + $hof = & $hofTypes; |
|
39 | 39 | $typeList = explode(':', $dbRecord->getString('type')); |
40 | 40 | foreach ($typeList as $type) { |
41 | 41 | if (!isset($hof[$type])) { |
42 | 42 | $hof[$type] = []; |
43 | 43 | } |
44 | - $hof =& $hof[$type]; |
|
44 | + $hof = & $hof[$type]; |
|
45 | 45 | } |
46 | 46 | $hof = true; |
47 | 47 | } |
@@ -46,7 +46,7 @@ |
||
46 | 46 | |
47 | 47 | function check_for_win(Smr\Blackjack\Hand $dealerHand, Smr\Blackjack\Hand $playerHand): string { |
48 | 48 | //does the player win |
49 | - return match (true) { |
|
49 | + return match(true) { |
|
50 | 50 | $playerHand->hasBusted() => 'no', |
51 | 51 | $playerHand->hasBlackjack() => 'bj', |
52 | 52 | $playerHand->getValue() == $dealerHand->getValue() => 'tie', |