Code Duplication    Length = 11-11 lines in 2 locations

lib/Model/Member.php 1 location

@@ 213-223 (lines=11) @@
210
		}
211
	}
212
213
	public function jsonSerialize() {
214
		return array(
215
			'circle_id'    => $this->getCircleId(),
216
			'user_id'      => $this->getUserId(),
217
			'level'        => $this->getLevel(),
218
			'level_string' => $this->getLevelString(),
219
			'status'       => $this->getStatus(),
220
			'note'         => $this->getNote(),
221
			'joined'       => $this->getJoined()
222
		);
223
	}
224
225
226
}

lib/Model/BaseMember.php 1 location

@@ 195-205 (lines=11) @@
192
		return self::fromArray2($l10n, json_decode($json, true));
193
	}
194
195
	public function jsonSerialize() {
196
		return array(
197
			'circle_id'    => $this->getCircleId(),
198
			'user_id'      => $this->getUserId(),
199
			'level'        => $this->getLevel(),
200
			'level_string' => $this->getLevelString(),
201
			'status'       => $this->getStatus(),
202
			'note'         => $this->getNote(),
203
			'joined'       => $this->getJoined()
204
		);
205
	}
206
207
	public function getLevelString() {
208
		switch ($this->getLevel()) {