Code Duplication    Length = 12-12 lines in 2 locations

src/Betfair/Model/PlaceOrders/PlaceInstruction.php 2 locations

@@ 51-62 (lines=12) @@
48
        $this->side = $side;
49
    }
50
51
    private function validateOrderTypeOrThrowException($orderType)
52
    {
53
        if(!in_array($orderType, OrderType::toArray())) {
54
            throw new ModelException(
55
                sprintf(
56
                    "Invalid Order Type %s. Valid ones are %s",
57
                    $orderType,
58
                    implode(",", OrderType::toArray())
59
                )
60
            );
61
        }
62
    }
63
    private function validateSideOrThrowException($side)
64
    {
65
        if(!in_array($side, Side::toArray())) {
@@ 63-74 (lines=12) @@
60
            );
61
        }
62
    }
63
    private function validateSideOrThrowException($side)
64
    {
65
        if(!in_array($side, Side::toArray())) {
66
            throw new ModelException(
67
                sprintf(
68
                    "Invalid Side %s. Valid ones are %s",
69
                    $side,
70
                    implode(",", Side::toArray())
71
                )
72
            );
73
        }
74
    }
75
76
    /**
77
     * @param float $handicap