Code Duplication    Length = 8-8 lines in 2 locations

tests/behat/bootstrap/FeatureContext.php 2 locations

@@ 76-83 (lines=8) @@
73
    /**
74
     * @Given /(\S+) (\S+) price is ([0-9.]+) (\w+) per (\w+)/
75
     */
76
    public function priceIs($target, $type, $sum, $currency, $unit)
77
    {
78
        $type = new Type(Type::ANY, $type);
79
        $target = new Target(Target::ANY, $target);
80
        $quantity = Quantity::create($unit, 0);
81
        $sum = $this->moneyParser->parse($sum, $currency);
82
        $this->price = new SinglePrice(null, $type, $target, null, $quantity, $sum);
83
    }
84
85
    /**
86
     * @Given /action is (\S+) (\w+) ([0-9.]+) (\S+)/
@@ 88-95 (lines=8) @@
85
    /**
86
     * @Given /action is (\S+) (\w+) ([0-9.]+) (\S+)/
87
     */
88
    public function actionIs($target, $type, $amount, $unit)
89
    {
90
        $type = new Type(Type::ANY, $type);
91
        $target = new Target(Target::ANY, $target);
92
        $quantity = Quantity::create($unit, $amount);
93
        $time = new DateTimeImmutable();
94
        $this->action = new Action(null, $type, $target, $quantity, $this->customer, $time);
95
    }
96
97
    /**
98
     * @Given /formula is (.+)/