| Conditions | 1 |
| Paths | 1 |
| Total Lines | 19 |
| Code Lines | 12 |
| Lines | 0 |
| Ratio | 0 % |
| Tests | 12 |
| CRAP Score | 1 |
| Changes | 1 | ||
| Bugs | 0 | Features | 0 |
| 1 | <?php |
||
| 40 | 1 | public function newQueryResultFrom( $rawParameters ) { |
|
| 41 | |||
| 42 | 1 | list( $queryString, $parameters, $printouts ) = QueryProcessor::getComponentsFromFunctionParams( |
|
| 43 | 1 | $rawParameters, |
|
|
|
|||
| 44 | false |
||
| 45 | 1 | ); |
|
| 46 | |||
| 47 | 1 | QueryProcessor::addThisPrintout( $printouts, $parameters ); |
|
| 48 | |||
| 49 | 1 | $query = QueryProcessor::createQuery( |
|
| 50 | 1 | $queryString, |
|
| 51 | 1 | QueryProcessor::getProcessedParams( $parameters, $printouts ), |
|
| 52 | 1 | QueryProcessor::SPECIAL_PAGE, |
|
| 53 | 1 | '', |
|
| 54 | $printouts |
||
| 55 | 1 | ); |
|
| 56 | |||
| 57 | 1 | return $this->store->getQueryResult( $query ); |
|
| 58 | } |
||
| 59 | |||
| 94 |
If a method or function can return multiple different values and unless you are sure that you only can receive a single value in this context, we recommend to add an additional type check:
If this a common case that PHP Analyzer should handle natively, please let us know by opening an issue.