Conditions | 3 |
Paths | 3 |
Total Lines | 19 |
Code Lines | 7 |
Lines | 0 |
Ratio | 0 % |
Tests | 0 |
CRAP Score | 12 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
35 | public function yieldAssocList($key = null, $column = null) |
||
36 | { |
||
37 | $this->connect(); |
||
38 | |||
39 | // Execute the query and get the result set cursor. |
||
40 | if (!($cursor = $this->execute())) |
||
41 | { |
||
42 | return null; |
||
43 | } |
||
44 | |||
45 | // Get all of the rows from the result set. |
||
46 | while ($row = $this->fetchAssoc($cursor)) |
||
47 | { |
||
48 | yield $row; |
||
49 | } |
||
50 | |||
51 | // Free up system resources and return. |
||
52 | $this->freeResult($cursor); |
||
53 | } |
||
54 | } |
||
55 |
This check looks from parameters that have been defined for a function or method, but which are not used in the method body.