Code Duplication    Length = 15-16 lines in 2 locations

lib/modules/mod_rss.php 2 locations

@@ 296-311 (lines=16) @@
293
			return $i;
294
		}
295
296
		public function ls($template, $args='', $limit=100, $offset=0) {
297
		global $ARBeenHere;
298
			$ARBeenHere = array();
299
			$this->reset();
300
			if ($offset) {
301
				while ($offset) {
302
					$this->next();
303
					$offset--;
304
				}
305
			}
306
			do {
307
				$ARBeenHere = array();
308
				$this->call($template, $args);
309
				$limit--;
310
			} while ($this->next() && $limit);
311
		}
312
313
		public function getArray($limit=100, $offset=0) {
314
			$result=array();
@@ 313-327 (lines=15) @@
310
			} while ($this->next() && $limit);
311
		}
312
313
		public function getArray($limit=100, $offset=0) {
314
			$result=array();
315
			$this->reset();
316
			if ($offset) {
317
				while ($offset) {
318
					$this->next();
319
					$offset--;
320
				}
321
			}
322
			do {
323
				$result[]=$this->current();
324
				$limit--;
325
			} while ($this->next() && $limit);
326
			return $result;
327
		}
328
329
	}
330