Code Duplication    Length = 6-6 lines in 2 locations

Admin/Traits/Mapper.php 2 locations

@@ 467-472 (lines=6) @@
464
            $options = [];
465
        }
466
467
        if (isset($options['only_new'])) {
468
            if ($options['only_new'] && $this->subject && !$this->subject->isNew()) {
469
                return $mapper;
470
            }
471
            unset($options['only_new']);
472
        }
473
474
        if (isset($options['only_not_new'])) {
475
            if ($options['only_not_new'] && (!$this->subject || $this->subject->isNew())) {
@@ 474-479 (lines=6) @@
471
            unset($options['only_new']);
472
        }
473
474
        if (isset($options['only_not_new'])) {
475
            if ($options['only_not_new'] && (!$this->subject || $this->subject->isNew())) {
476
                return $mapper;
477
            }
478
            unset($options['only_not_new']);
479
        }
480
481
        $type = null;
482
        if (isset($options['type'])) {