Code Duplication    Length = 6-6 lines in 3 locations

src/mvc/views/View.php 3 locations

@@ 89-94 (lines=6) @@
86
            $result = $widget->run();
87
        }
88
89
        if ($result instanceof PhpView) {
90
            $result->asWidget = true;
91
            $result->path = get_class($widget);
92
93
            $result = $result->render();
94
        }
95
96
        unset($widget);
97
@@ 151-156 (lines=6) @@
148
            $widget = array_pop($GLOBALS['widgetStack']);
149
            $v = $widget->run();
150
151
            if ($v instanceof PhpView) {
152
                $v->asWidget = true;
153
                $v->path = get_class($widget);
154
155
                $v = $v->render();
156
            }
157
158
            unset($widget);
159
            echo $v;
@@ 172-177 (lines=6) @@
169
170
        $v = $widget->run();
171
172
        if ($v instanceof PhpView) {
173
            $v->asWidget = true;
174
            $v->path = get_class($widget);
175
176
            $v = $v->render();
177
        }
178
179
        unset($widget);
180
        echo $v;