| @@ 91-97 (lines=7) @@ | ||
| 88 | ); |
|
| 89 | ||
| 90 | $result = []; |
|
| 91 | while (true) { |
|
| 92 | $row = $statement->fetch(FetchMode::NUMERIC); |
|
| 93 | if ($row === false) { |
|
| 94 | break; |
|
| 95 | } |
|
| 96 | $result[$row[0]] = (int)$row[1]; |
|
| 97 | } |
|
| 98 | ||
| 99 | return $result; |
|
| 100 | } |
|
| @@ 131-137 (lines=7) @@ | ||
| 128 | ':idUntil' => $interval->getUntil(), |
|
| 129 | ] |
|
| 130 | ); |
|
| 131 | while (true) { |
|
| 132 | $id = $statement->fetch(FetchMode::COLUMN); |
|
| 133 | if ($id === false) { |
|
| 134 | break; |
|
| 135 | } |
|
| 136 | $result[$id] = ($result[$id] ?? 0) + 1; |
|
| 137 | } |
|
| 138 | } |
|
| 139 | } |
|
| 140 | ||