Code Duplication    Length = 8-8 lines in 2 locations

engine/classes/ElggObject.php 1 location

@@ 201-208 (lines=8) @@
198
	 *
199
	 * @return array
200
	 */
201
	public function getSites($options = "", $limit = 10, $offset = 0) {
202
		if (is_string($options)) {
203
			elgg_deprecated_notice('\ElggObject::getSites() takes an options array', 1.9);
204
			return get_site_objects($this->getGUID(), $options, $limit, $offset);
205
		}
206
207
		return parent::getSites();
208
	}
209
210
	/**
211
	 * Add this object to a site

engine/classes/ElggUser.php 1 location

@@ 362-369 (lines=8) @@
359
	 *
360
	 * @return array
361
	 */
362
	public function getSites($options = "", $limit = 10, $offset = 0) {
363
		if (is_string($options)) {
364
			elgg_deprecated_notice('\ElggUser::getSites() takes an options array', 1.9);
365
			return get_user_sites($this->getGUID(), $limit, $offset);
366
		}
367
368
		return parent::getSites($options);
369
	}
370
371
	/**
372
	 * Add this user to a particular site