| Conditions | 4 | 
| Paths | 4 | 
| Total Lines | 21 | 
| Code Lines | 10 | 
| Lines | 0 | 
| Ratio | 0 % | 
| Tests | 10 | 
| CRAP Score | 4 | 
| Changes | 0 | ||
| 1 | <?php  | 
            ||
| 19 | * @param Request $request  | 
            ||
| 20 | */  | 
            ||
| 21 | 16 | public function __construct(Request $request)  | 
            |
| 
                                                                                                    
                         1 ignored issue 
                            –
                            show
                         | 
                |||
| 22 |     { | 
            ||
| 23 | 16 | $this->_request = $request;  | 
            |
| 24 | 16 | }  | 
            |
| 25 | |||
| 26 | /**  | 
            ||
| 27 | * Array of all the query parameters for the current request.  | 
            ||
| 28 | *  | 
            ||
| 29 | * @return array  | 
            ||
| 30 | * @throws \RuntimeException  | 
            ||
| 31 | */  | 
            ||
| 32 | 11 | public function queryParameters() : array  | 
            |
| 33 |     { | 
            ||
| 34 | 11 | $queryString = $this->_request->getQueryString();  | 
            |
| 35 | |||
| 36 | 11 | if (empty($queryString))  | 
            |
| 37 |         { | 
            ||
| 38 | 9 | return [];  | 
            |
| 39 | }  | 
            ||
| 40 | |||
| 55 | }  |