@@ 47-57 (lines=11) @@ | ||
44 | * @param $matchId |
|
45 | * @return mixed |
|
46 | */ |
|
47 | public static function simulateCompleteResult($matchId) |
|
48 | { |
|
49 | $result = self::getCompleteResult($matchId); |
|
50 | if (!empty($result) |
|
51 | && !$result->simulated |
|
52 | && self::simulate($matchId) === 1 |
|
53 | ) { |
|
54 | $result = self::getCompleteResult($matchId); |
|
55 | } |
|
56 | return $result; |
|
57 | } |
|
58 | ||
59 | /** |
|
60 | * @param $matchId |
|
@@ 63-73 (lines=11) @@ | ||
60 | * @param $matchId |
|
61 | * @return mixed |
|
62 | */ |
|
63 | public static function simulateSimpleResult($matchId) |
|
64 | { |
|
65 | $result = self::getSimpleResult($matchId); |
|
66 | if (!empty($result) |
|
67 | && !$result->simulated |
|
68 | && self::simulate($matchId) === 1 |
|
69 | ) { |
|
70 | $result = self::getSimpleResult($matchId); |
|
71 | } |
|
72 | return $result; |
|
73 | } |
|
74 | ||
75 | /** |
|
76 | * @param $matchId |