Code Duplication    Length = 8-10 lines in 2 locations

src/WebHemi/Adapter/Http/GuzzleHttp/GuzzleHttpAdapter.php 1 location

@@ 53-62 (lines=10) @@
50
     * @param array $cookie
51
     * @param array $files
52
     */
53
    public function __construct(array $server, array $get, array $post, array $cookie, array $files)
54
    {
55
        $this->server = $server;
56
        $this->get = $get;
57
        $this->post = $post;
58
        $this->cookie = $cookie;
59
        $this->files = $files;
60
61
        $this->initialize();
62
    }
63
64
    /**
65
     * Initialize adapter: create the ServerRequest and Response instances.

src/WebHemi/Application/Web/WebApplication.php 1 location

@@ 87-94 (lines=8) @@
84
     *
85
     * @return ApplicationInterface
86
     */
87
    public function setEnvironmentFromGlobals(array $get, array $post, array $server, array $cookie, array $files)
88
    {
89
        $this->get = $get;
90
        $this->post = $post;
91
        $this->server = $server;
92
        $this->cookie = $cookie;
93
        $this->files = $files;
94
    }
95
96
    /**
97
     * Runs the application. This is where the magic happens.