Code Duplication    Length = 10-10 lines in 2 locations

src/Middleware/GoogleAnalytics.php 1 location

@@ 54-63 (lines=10) @@
51
     *
52
     * @return ResponseInterface
53
     */
54
    public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next)
55
    {
56
        $response = $next($request, $response);
57
58
        if ($this->isInjectable($request)) {
59
            return $this->inject($response, $this->getCode());
60
        }
61
62
        return $response;
63
    }
64
65
    /**
66
     * Returns the google code.

src/Middleware/Piwik.php 1 location

@@ 98-107 (lines=10) @@
95
     *
96
     * @return ResponseInterface
97
     */
98
    public function __invoke(ServerRequestInterface $request, ResponseInterface $response, callable $next)
99
    {
100
        $response = $next($request, $response);
101
102
        if ($this->isInjectable($request)) {
103
            return $this->inject($response, $this->getCode());
104
        }
105
106
        return $response;
107
    }
108
109
    /**
110
     * Returns the piwik code.