Code Duplication    Length = 9-9 lines in 2 locations

src/InputSources/Cookie.php 1 location

@@ 7-15 (lines=9) @@
4
5
use Psr\Http\Message\ServerRequestInterface;
6
7
class Cookie implements InputSourceInterface
8
{
9
    public function getValue(ServerRequestInterface $request, $argument = null)
10
    {
11
        $array = $request->getCookieParams();
12
13
        return isset($array[$argument]) ? $array[$argument] : null;
14
    }
15
}
16

src/InputSources/QueryStringParam.php 1 location

@@ 7-15 (lines=9) @@
4
5
use Psr\Http\Message\ServerRequestInterface;
6
7
class QueryStringParam implements InputSourceInterface
8
{
9
    public function getValue(ServerRequestInterface $request, $argument = null)
10
    {
11
        $array = $request->getQueryParams();
12
13
        return isset($array[$argument]) ? $array[$argument] : null;
14
    }
15
}
16