Code Duplication    Length = 7-7 lines in 2 locations

src/grid/ServiceGridView.php 2 locations

@@ 63-69 (lines=7) @@
60
                        return $html;
61
                    }
62
63
                    if ($count = $model->objects_count['ok']) {
64
                        $html .= Html::a(
65
                            (int) $count . ' ' . FontIcon::i('fa-check') . ' ' . $type($count),
66
                            $url['ok'],
67
                            ['class' => 'btn btn-success btn-xs']
68
                        );
69
                    }
70
                    $html .= ' ';
71
                    if (($count = $model->objects_count['deleted']) > 0) {
72
                        $html .= Html::a(
@@ 71-77 (lines=7) @@
68
                        );
69
                    }
70
                    $html .= ' ';
71
                    if (($count = $model->objects_count['deleted']) > 0) {
72
                        $html .= Html::a(
73
                            (int) $count . ' ' . FontIcon::i('fa-trash') . ' ' . $type($count),
74
                            $url['deleted'],
75
                            ['class' => 'btn btn-xs btn-warning']
76
                        );
77
                    }
78
79
                    return $html;
80
                },