Code Duplication    Length = 3-3 lines in 2 locations

src/widget/GridViewWidget.php 1 location

@@ 175-177 (lines=3) @@
172
     */
173
    public function run()
174
    {
175
        if (!$this->rows) {
176
            return Html::openTag('div', $this->attributesEmpty).$this->emptyText.Html::closeTag('div');
177
        }
178
179
        ob_start();
180
        echo str_replace(

src/widget/ListViewWidget.php 1 location

@@ 186-188 (lines=3) @@
183
     */
184
    protected function getElements()
185
    {
186
        if (!$this->rows) {
187
            return Html::openTag('div', $this->attributesEmpty).$this->emptyText.Html::closeTag('div');
188
        }
189
190
        ob_start();
191
        echo Html::openTag('ul', $this->attributes);