Code Duplication    Length = 7-7 lines in 2 locations

src/system/ExtensionsModule/Menu/ActionsMenu.php 2 locations

@@ 78-84 (lines=7) @@
75
            case ExtensionApi::STATE_MISSING:
76
                // Nothing to do.
77
                break;
78
            case ExtensionApi::STATE_UPGRADED:
79
                $menu->addChild($this->__f('Upgrade %s', ['%s' => $extension->getDisplayname()]), [
80
                    'route' => 'zikulaextensionsmodule_module_upgrade',
81
                    'routeParameters' => ['id' => $extension->getId(), 'csrftoken' => $csrfToken],
82
                ])->setAttribute('icon', 'fa fa-refresh')
83
                    ->setLinkAttribute('style', 'color:#00c');
84
                break;
85
            case ExtensionApi::STATE_INVALID:
86
                // nothing to do.
87
                // do not allow deletion of invalid modules if previously installed (#1278)
@@ 89-95 (lines=7) @@
86
                // nothing to do.
87
                // do not allow deletion of invalid modules if previously installed (#1278)
88
                break;
89
            case ExtensionApi::STATE_NOTALLOWED:
90
                $menu->addChild($this->__f('Remove %s', ['%s' => $extension->getDisplayname()]), [
91
                    'route' => 'zikulaextensionsmodule_module_uninstall',
92
                    'routeParameters' => ['id' => $extension->getId()],
93
                ])->setAttribute('icon', 'fa fa-trash-o')
94
                    ->setLinkAttribute('style', 'color:#c00');
95
                break;
96
            case ExtensionApi::STATE_UNINITIALISED:
97
            default:
98
                if ($extension->getState() < 10) {