Code Duplication    Length = 6-6 lines in 2 locations

examples/Cafe/lib/model/Barista.php 2 locations

@@ 21-26 (lines=6) @@
18
        $this->coldDrinkDelay = (int) $coldDrinkDelay;
19
    }
20
21
    public function prepareHotDrink(array $orderItem)
22
    {
23
        sleep($this->hotDrinkDelay);
24
        $this->hotDrinkCounter++;
25
        $this->printAction(false, $orderItem['order']);
26
27
        return $this->prepareDrink($orderItem['order'], $orderItem['type'], false);
28
    }
29
@@ 30-35 (lines=6) @@
27
        return $this->prepareDrink($orderItem['order'], $orderItem['type'], false);
28
    }
29
30
    public function prepareColdDrink(array $orderItem)
31
    {
32
        sleep($this->coldDrinkDelay);
33
        $this->coldDrinkCounter++;
34
        $this->printAction(true, $orderItem['order']);
35
36
        return $this->prepareDrink($orderItem['order'], $orderItem['type'], true);
37
    }
38