Code Duplication    Length = 7-7 lines in 2 locations

src/grid/IpGridView.php 2 locations

@@ 75-81 (lines=7) @@
72
                            throw new InvalidParamException('The object type is not supported', $model);
73
                        }
74
75
                        if ($count['ok']) {
76
                            $html .= Html::a(
77
                                (int)$count['ok'] . ' ' . FontIcon::i('fa-check') . ' ' . $type($count['ok']),
78
                                $url['ok'],
79
                                ['class' => 'btn btn-success btn-xs']
80
                            );
81
                        }
82
                        $html .= ' ';
83
                        if ($count['deleted'] > 0) {
84
                            $html .= Html::a(
@@ 83-89 (lines=7) @@
80
                            );
81
                        }
82
                        $html .= ' ';
83
                        if ($count['deleted'] > 0) {
84
                            $html .= Html::a(
85
                                (int)$count['deleted'] . ' ' . FontIcon::i('fa-trash') . ' ' . $type($count['deleted']),
86
                                $url['deleted'],
87
                                ['class' => 'btn btn-xs btn-warning']
88
                            );
89
                        }
90
                    }
91
92
                    return $html;