Code Duplication    Length = 9-9 lines in 2 locations

src/Sylius/Component/Order/Model/OrderItem.php 1 location

@@ 277-285 (lines=9) @@
274
    /**
275
     * {@inheritdoc}
276
     */
277
    public function getAdjustmentsRecursively($type = null)
278
    {
279
        $adjustments = $this->getAdjustments($type)->toArray();
280
        foreach ($this->units as $unit) {
281
            $adjustments = array_merge($adjustments, $unit->getAdjustments($type)->toArray());
282
        }
283
284
        return $adjustments;
285
    }
286
287
    /**
288
     * {@inheritdoc}

src/Sylius/Component/Order/Model/Order.php 1 location

@@ 393-401 (lines=9) @@
390
    /**
391
     * {@inheritdoc}
392
     */
393
    public function getAdjustmentsRecursively($type = null)
394
    {
395
        $adjustments = $this->getAdjustments($type)->toArray();
396
        foreach ($this->items as $item) {
397
            $adjustments = array_merge($adjustments, $item->getAdjustmentsRecursively($type));
398
        }
399
400
        return $adjustments;
401
    }
402
403
    /**
404
     * {@inheritdoc}