Code Duplication    Length = 11-11 lines in 2 locations

api/Lib/DsManager/Helpers/MatchSimulator.php 2 locations

@@ 39-49 (lines=11) @@
36
     * @param $matchId
37
     * @return mixed
38
     */
39
    public static function simulateCompleteResult($matchId)
40
    {
41
        $result = self::getCompleteResult($matchId);
42
        if (!empty($result)
43
            && !$result->simulated
44
            && self::simulate($matchId) === 1
45
        ) {
46
            $result = self::getCompleteResult($matchId);
47
        }
48
        return $result;
49
    }
50
51
    /**
52
     * @param $matchId
@@ 55-65 (lines=11) @@
52
     * @param $matchId
53
     * @return mixed
54
     */
55
    public static function simulateSimpleResult($matchId)
56
    {
57
        $result = self::getSimpleResult($matchId);
58
        if (!empty($result)
59
            && !$result->simulated
60
            && self::simulate($matchId) === 1
61
        ) {
62
            $result = self::getSimpleResult($matchId);
63
        }
64
        return $result;
65
    }
66
67
    /**
68
     * @param $matchId