Code Duplication    Length = 7-7 lines in 2 locations

src/ApplicationPackage.php 2 locations

@@ 87-93 (lines=7) @@
84
    /**
85
     * @param Container $c
86
     */
87
    private function setupViewEngine(Container $c)
88
    {
89
        $package = new ViewPackage();
90
        $package->addToContainer($c);
91
        $this->addMiddlewaresToContainer($package, $c);
92
        $this->addMiddlewaresToStack($package, $c);
93
    }
94
95
    /**
96
     * @param Container $c
@@ 290-296 (lines=7) @@
287
     * @param Container $c
288
     * @throws \Bone\Exception
289
     */
290
    private function setupTranslator(Container $c)
291
    {
292
        $package = new I18nPackage();
293
        $package->addToContainer($c);
294
        $this->addMiddlewaresToContainer($package, $c);
295
        $this->addMiddlewaresToStack($package, $c);
296
    }
297
298
299
    /**