Code Duplication    Length = 3-3 lines in 2 locations

src/Field/ActionCollectionField.php 2 locations

@@ 73-75 (lines=3) @@
70
    {
71
        $accessor = PropertyAccess::createPropertyAccessor();
72
73
        if (key_exists('edit', $this->options['actions'])) {
74
            $this->options['actions']['edit']['parameters']['id'] = $accessor->getValue($this->entity, 'id');
75
        }
76
77
        if (key_exists('delete', $this->options['actions'])) {
78
            $this->options['actions']['delete']['parameters']['id'] = $accessor->getValue($this->entity, 'id');
@@ 77-79 (lines=3) @@
74
            $this->options['actions']['edit']['parameters']['id'] = $accessor->getValue($this->entity, 'id');
75
        }
76
77
        if (key_exists('delete', $this->options['actions'])) {
78
            $this->options['actions']['delete']['parameters']['id'] = $accessor->getValue($this->entity, 'id');
79
        }
80
81
        return $this->twig->render($this->options['template'], [
82
            'actions' => $this->options['actions'],