Code Duplication    Length = 8-8 lines in 2 locations

src/OpenSkill/Datatable/Versions/DatatableVersion.php 2 locations

@@ 37-44 (lines=8) @@
34
     *
35
     * @return bool true if the parser is able to parse the query parameters and to return a DTQueryConfiguration
36
     */
37
    public function canParseRequest()
38
    {
39
        $request = $this->requestStack->getCurrentRequest();
40
        if (is_null($request)) {
41
            throw new \InvalidArgumentException("Can not determine a request that is null");
42
        }
43
        return $this->queryParser->canParse($request);
44
    }
45
46
    /**
47
     * Method that should parse the request and return a DTQueryConfiguration
@@ 52-59 (lines=8) @@
49
     * @param ColumnConfiguration[] $columnConfiguration The configuration of the columns
50
     * @return QueryConfiguration the configuration the provider can use to prepare the data
51
     */
52
    public function parseRequest(array $columnConfiguration)
53
    {
54
        $request = $this->requestStack->getCurrentRequest();
55
        if (is_null($request)) {
56
            throw new \InvalidArgumentException("Can not parse a request that is null");
57
        }
58
        return $this->queryParser->parse($request, $columnConfiguration);
59
    }
60
}