Code Duplication    Length = 8-8 lines in 2 locations

Apps/View/Admin/default/application/index.php 1 location

@@ 32-39 (lines=8) @@
29
    $route = $app->sys_name . '/index';
30
    $icoStatus = null;
31
    $actions = \App::$View->render('macro/app_actions', ['controller' => $app->sys_name]);
32
    if ((int)$app->disabled !== 0) {
33
        $icoStatus = ' <i class="fa fa-pause" style="color: #ff0000;"></i>';
34
    } elseif ($app->checkVersion() !== true) {
35
        $icoStatus = ' <i class="fa fa-exclamation" style="color: #ffbd26;"></i>';
36
        $actions = Url::link(['application/update', $app->sys_name], '<i class="fa fa-wrench"></i>');
37
    } else {
38
        $icoStatus = ' <i class="fa fa-check" style="color: #008000;"></i>';
39
    }
40
41
    $appTableItems[] = [
42
        ['text' => $app->id . $icoStatus, 'html' => true, '!secure' => true],

Apps/View/Admin/default/widget/index.php 1 location

@@ 29-36 (lines=8) @@
26
    $route = $widget->sys_name . '/index';
27
    $icoStatus = null;
28
    $actions = $this->render('macro/widget_actions', ['controller' => $widget->sys_name]);
29
    if ((int)$widget->disabled !== 0) {
30
        $icoStatus = ' <i class="fa fa-pause" style="color: #ff0000;"></i>';
31
    } elseif ($widget->checkVersion() !== true) {
32
        $icoStatus = ' <i class="fa fa-exclamation" style="color: #ffbd26;"></i>';
33
        $actions = Url::link(['widget/update', $widget->sys_name], '<i class="fa fa-wrench"></i>');
34
    } else {
35
        $icoStatus = ' <i class="fa fa-check" style="color: #008000;"></i>';
36
    }
37
38
    $widgetTableItems[] = [
39
        ['text' => $widget->id . $icoStatus, 'html' => true, '!secure' => true],