Code Duplication    Length = 15-15 lines in 2 locations

src/LAG/AdminBundle/Field/Configuration/ActionCollectionConfiguration.php 2 locations

@@ 34-48 (lines=15) @@
31
        ;
32
    }
33
    
34
    protected function normalizeIcon(array &$options, $action)
35
    {
36
        $iconMapping = [
37
            'delete' => 'fa fa-times',
38
            'edit' => 'fa fa-pencil',
39
        ];
40
    
41
        if (!array_key_exists('icon', $options)) {
42
            $options['icon'] = '';
43
        
44
            if (array_key_exists($action, $iconMapping)) {
45
                $options['icon'] = $iconMapping[$action];
46
            }
47
        }
48
    }
49
    
50
    protected function normalizeClass(array &$options, $action)
51
    {
@@ 50-64 (lines=15) @@
47
        }
48
    }
49
    
50
    protected function normalizeClass(array &$options, $action)
51
    {
52
        $classMapping = [
53
            'delete' => 'btn btn-danger',
54
            'edit' => 'btn btn-default',
55
        ];
56
    
57
        if (!array_key_exists('class', $options)) {
58
            $options['class'] = '';
59
        
60
            if (array_key_exists($action, $classMapping)) {
61
                $options['class'] = $classMapping[$action];
62
            }
63
        }
64
    }
65
    
66
    protected function normalizeRoute(array &$options, $action)
67
    {