Code Duplication    Length = 3-3 lines in 2 locations

micro/widget/GridViewWidget.php 1 location

@@ 167-169 (lines=3) @@
164
     */
165
    public function run()
166
    {
167
        if (!$this->rows) {
168
            return Html::openTag('div', $this->attributesEmpty) . $this->emptyText . Html::closeTag('div');
169
        }
170
171
        ob_start();
172
        echo str_replace(

micro/widget/ListViewWidget.php 1 location

@@ 178-180 (lines=3) @@
175
     */
176
    protected function getElements()
177
    {
178
        if (!$this->rows) {
179
            return Html::openTag('div', $this->attributesEmpty) . $this->emptyText . Html::closeTag('div');
180
        }
181
182
        ob_start();
183
        echo Html::openTag('ul', $this->attributes);