|
@@ 369-373 (lines=5) @@
|
| 366 |
|
} |
| 367 |
|
|
| 368 |
|
$resultStatement = $query->execute(); |
| 369 |
|
while ($data = $resultStatement->fetch()) { |
| 370 |
|
$comment = new Comment($this->normalizeDatabaseData($data)); |
| 371 |
|
$this->cache($comment); |
| 372 |
|
$comments[] = $comment; |
| 373 |
|
} |
| 374 |
|
$resultStatement->closeCursor(); |
| 375 |
|
|
| 376 |
|
return $comments; |
|
@@ 457-461 (lines=5) @@
|
| 454 |
|
} |
| 455 |
|
|
| 456 |
|
$resultStatement = $query->execute(); |
| 457 |
|
while ($data = $resultStatement->fetch()) { |
| 458 |
|
$comment = new Comment($this->normalizeDatabaseData($data)); |
| 459 |
|
$this->cache($comment); |
| 460 |
|
$comments[] = $comment; |
| 461 |
|
} |
| 462 |
|
$resultStatement->closeCursor(); |
| 463 |
|
|
| 464 |
|
return $comments; |
|
@@ 534-538 (lines=5) @@
|
| 531 |
|
|
| 532 |
|
$comments = []; |
| 533 |
|
$result = $query->execute(); |
| 534 |
|
while ($data = $result->fetch()) { |
| 535 |
|
$comment = new Comment($this->normalizeDatabaseData($data)); |
| 536 |
|
$this->cache($comment); |
| 537 |
|
$comments[] = $comment; |
| 538 |
|
} |
| 539 |
|
$result->closeCursor(); |
| 540 |
|
|
| 541 |
|
return $comments; |