Code Duplication    Length = 3-3 lines in 2 locations

src/mvc/views/PhpView.php 1 location

@@ 159-161 (lines=3) @@
156
        /** @noinspection PhpIncludeInspection */
157
        include str_replace('\\', '/', $fileName);
158
159
        if (!empty($GLOBALS['widgetStack'])) {
160
            throw new Exception(count($GLOBALS['widgetStack']).' widgets not endings.');
161
        }
162
163
        return ob_get_clean();
164
    }

src/mvc/views/View.php 1 location

@@ 124-126 (lines=3) @@
121
            throw new Exception('Widget `'.$name.'` not found.');
122
        }
123
124
        if (!empty($GLOBALS['widgetStack'][$name])) {
125
            throw new Exception('This widget `'.$name.'` already started!');
126
        }
127
128
        $GLOBALS['widgetStack'][$name] = new $name($options);
129