Code Duplication    Length = 8-10 lines in 2 locations

Zewa/Controller.php 1 location

@@ 51-60 (lines=10) @@
48
    /**
49
     * Load up some basic configuration settings.
50
     */
51
    public function __construct()
52
    {
53
        static::$instance = $this;
54
55
        $app = App::getInstance();
56
        $this->configuration = $app->getConfiguration();
57
        
58
        $this->request = App::getService('request');
59
        $this->router = App::getService('router');
60
    }
61
62
    /**
63
     * Returns a reference of object once instantiated

Zewa/View.php 1 location

@@ 63-70 (lines=8) @@
60
    /**
61
     * Load up some basic configuration settings.
62
     */
63
    public function __construct()
64
    {
65
        // This abstract is strictly to establish inheritance from a global registery.
66
        $app = App::getInstance();
67
        $this->configuration = $app->getConfiguration();
68
        $this->request = App::getService('request');
69
        $this->router = App::getService('router');
70
    }
71
72
    private function baseURL($path = '')
73
    {