Code Duplication    Length = 6-6 lines in 3 locations

mvc/views/View.php 3 locations

@@ 76-81 (lines=6) @@
73
            $result = $widget->run();
74
        }
75
76
        if ($result instanceof PhpView) {
77
            $result->asWidget = true;
78
            $result->path = get_class($widget);
79
80
            $result = $result->render();
81
        }
82
83
        unset($widget);
84
@@ 125-130 (lines=6) @@
122
            $widget = array_pop($GLOBALS['widgetStack']);
123
            $v = $widget->run();
124
125
            if ($v instanceof PhpView) {
126
                $v->asWidget = true;
127
                $v->path = get_class($widget);
128
129
                $v = $v->render();
130
            }
131
132
            unset($widget);
133
            echo $v;
@@ 146-151 (lines=6) @@
143
144
        $v = $widget->run();
145
146
        if ($v instanceof PhpView) {
147
            $v->asWidget = true;
148
            $v->path = get_class($widget);
149
150
            $v = $v->render();
151
        }
152
153
        unset($widget);
154
        echo $v;