Code Duplication    Length = 7-7 lines in 2 locations

src/grid/IpGridView.php 2 locations

@@ 84-90 (lines=7) @@
81
                            throw new InvalidParamException('The object type is not supported', $model);
82
                        }
83
84
                        if ($count['ok']) {
85
                            $html .= Html::a(
86
                                (int) $count['ok'] . ' ' . FontIcon::i('fa-check') . ' ' . $type($count['ok']),
87
                                $url['ok'],
88
                                ['class' => 'btn btn-success btn-xs']
89
                            );
90
                        }
91
                        $html .= ' ';
92
                        if ($count['deleted'] > 0) {
93
                            $html .= Html::a(
@@ 92-98 (lines=7) @@
89
                            );
90
                        }
91
                        $html .= ' ';
92
                        if ($count['deleted'] > 0) {
93
                            $html .= Html::a(
94
                                (int) $count['deleted'] . ' ' . FontIcon::i('fa-trash') . ' ' . $type($count['deleted']),
95
                                $url['deleted'],
96
                                ['class' => 'btn btn-xs btn-warning']
97
                            );
98
                        }
99
                    }
100
101
                    return $html;