@@ -53,8 +53,7 @@ discard block |
||
| 53 | 53 | ); |
| 54 | 54 | |
| 55 | 55 | yield $db->loadAssocList(); |
| 56 | - } |
|
| 57 | - else |
|
| 56 | + } else |
|
| 58 | 57 | { |
| 59 | 58 | // If fetching all data from the table, we need to break this down a fair bit otherwise we're going to run out of memory |
| 60 | 59 | $totalRecords = $db->setQuery( |
@@ -80,8 +79,7 @@ discard block |
||
| 80 | 79 | $query->setLimit($this->batchSize, $offset); |
| 81 | 80 | |
| 82 | 81 | $db->setQuery($query); |
| 83 | - } |
|
| 84 | - else |
|
| 82 | + } else |
|
| 85 | 83 | { |
| 86 | 84 | $db->setQuery($query, $offset, $this->batchSize); |
| 87 | 85 | } |
@@ -126,8 +124,7 @@ discard block |
||
| 126 | 124 | if ($recordExists) |
| 127 | 125 | { |
| 128 | 126 | $db->updateObject('#__jstats', $data, ['unique_id']); |
| 129 | - } |
|
| 130 | - else |
|
| 127 | + } else |
|
| 131 | 128 | { |
| 132 | 129 | $db->insertObject('#__jstats', $data, ['unique_id']); |
| 133 | 130 | } |