Code Duplication    Length = 8-8 lines in 2 locations

src/tree/RootUnit.php 2 locations

@@ 148-155 (lines=8) @@
145
        throw new NotConvertibleException('not yet implemented: ' . $this->getName() . ' -> ' . $other->getName());
146
    }
147
148
    public function multiplyByFactor($quantity)
149
    {
150
        if (empty($this->factor)) {
151
            throw new NotConvertibleException('method not yet implement: ' . $this->getName());
152
        }
153
154
        return $this->getCalculator()->multiply($quantity, $this->factor);
155
    }
156
157
    public function divideByFactor($quantity)
158
    {
@@ 157-164 (lines=8) @@
154
        return $this->getCalculator()->multiply($quantity, $this->factor);
155
    }
156
157
    public function divideByFactor($quantity)
158
    {
159
        if (empty($this->factor)) {
160
            throw new NotConvertibleException('method not yet implement: ' . $this->getName());
161
        }
162
163
        return $this->getCalculator()->divide($quantity, $this->factor);
164
    }
165
166
    public function getNode(UnitInterface $unit)
167
    {