Code Duplication    Length = 14-14 lines in 2 locations

core/domain/values/currency/Money.php 2 locations

@@ 288-301 (lines=14) @@
285
     * @return Money
286
     * @throws InvalidDataTypeException
287
     */
288
    public function multiply($multiplier, $rounding_mode = Calculator::ROUND_HALF_UP)
289
    {
290
        return new Money(
291
            $this->calculator()->multiply(
292
                $this->amount(),
293
                $multiplier,
294
                $this->precision(),
295
                $rounding_mode
296
            ),
297
            $this->currency(),
298
            $this->calculator(),
299
            $this->formatters()
300
        );
301
    }
302
303
304
@@ 314-327 (lines=14) @@
311
     * @return Money
312
     * @throws InvalidDataTypeException
313
     */
314
    public function divide($divisor, $rounding_mode = Calculator::ROUND_HALF_UP)
315
    {
316
        return new Money(
317
            $this->calculator()->divide(
318
                $this->amount(),
319
                $divisor,
320
                $this->precision(),
321
                $rounding_mode
322
            ),
323
            $this->currency(),
324
            $this->calculator(),
325
            $this->formatters()
326
        );
327
    }
328
329
330