| @@ 419-426 (lines=8) @@ | ||
| 416 | return $data; |
|
| 417 | } |
|
| 418 | ||
| 419 | if ($class) { |
|
| 420 | /** @noinspection PhpAssignmentInConditionInspection */ |
|
| 421 | while ($row = \mysqli_fetch_object($this->_result, $class)) { |
|
| 422 | $data[] = $this->cast($row); |
|
| 423 | } |
|
| 424 | ||
| 425 | return $data; |
|
| 426 | } |
|
| 427 | ||
| 428 | /** @noinspection PhpAssignmentInConditionInspection */ |
|
| 429 | while ($row = \mysqli_fetch_object($this->_result)) { |
|
| @@ 476-483 (lines=8) @@ | ||
| 473 | return; |
|
| 474 | } |
|
| 475 | ||
| 476 | if ($class && $params) { |
|
| 477 | /** @noinspection PhpAssignmentInConditionInspection */ |
|
| 478 | while ($row = \mysqli_fetch_object($this->_result, $class, $params)) { |
|
| 479 | yield $this->cast($row); |
|
| 480 | } |
|
| 481 | ||
| 482 | return; |
|
| 483 | } |
|
| 484 | ||
| 485 | if ($class) { |
|
| 486 | /** @noinspection PhpAssignmentInConditionInspection */ |
|
| @@ 776-780 (lines=5) @@ | ||
| 773 | return $class; |
|
| 774 | } |
|
| 775 | ||
| 776 | if ($class && $params) { |
|
| 777 | $row = \mysqli_fetch_object($this->_result, $class, $params); |
|
| 778 | ||
| 779 | return $row ? $this->cast($row) : false; |
|
| 780 | } |
|
| 781 | ||
| 782 | if ($class) { |
|
| 783 | $row = \mysqli_fetch_object($this->_result, $class); |
|
| @@ 782-786 (lines=5) @@ | ||
| 779 | return $row ? $this->cast($row) : false; |
|
| 780 | } |
|
| 781 | ||
| 782 | if ($class) { |
|
| 783 | $row = \mysqli_fetch_object($this->_result, $class); |
|
| 784 | ||
| 785 | return $row ? $this->cast($row) : false; |
|
| 786 | } |
|
| 787 | ||
| 788 | $row = \mysqli_fetch_object($this->_result); |
|
| 789 | ||
| @@ 905-911 (lines=7) @@ | ||
| 902 | return; |
|
| 903 | } |
|
| 904 | ||
| 905 | if ($class && $params) { |
|
| 906 | $row = \mysqli_fetch_object($this->_result, $class, $params); |
|
| 907 | ||
| 908 | yield $row ? $this->cast($row) : false; |
|
| 909 | ||
| 910 | return; |
|
| 911 | } |
|
| 912 | ||
| 913 | if ($class) { |
|
| 914 | $row = \mysqli_fetch_object($this->_result, $class); |
|
| @@ 913-919 (lines=7) @@ | ||
| 910 | return; |
|
| 911 | } |
|
| 912 | ||
| 913 | if ($class) { |
|
| 914 | $row = \mysqli_fetch_object($this->_result, $class); |
|
| 915 | ||
| 916 | yield $row ? $this->cast($row) : false; |
|
| 917 | ||
| 918 | return; |
|
| 919 | } |
|
| 920 | ||
| 921 | $row = \mysqli_fetch_object($this->_result); |
|
| 922 | ||