Code Duplication    Length = 7-9 lines in 2 locations

api/Lib/DsManager/Models/Coach.php 1 location

@@ 22-28 (lines=7) @@
19
	/**
20
	 * @return array
21
	 */
22
	public function toArray()
23
	{
24
		$result = parent::toArray();
25
		$result["favouriteModule"] = $this->favouriteModule;
26
		$result["wageReq"] = $this->getWage();
27
		return $result;
28
	}
29
30
	/**
31
	 * @return float

api/Lib/DsManager/Models/Player.php 1 location

@@ 26-34 (lines=9) @@
23
	/**
24
	 * @return array
25
	 */
26
	public function toArray()
27
	{
28
		$result = parent::toArray();
29
		$result["role"] = $this->role;
30
		$result['val'] = $this->getVal();
31
		$result['wageReq'] = $this->getWage();
32
33
		return $result;
34
	}
35
36
	/**
37
	 * @return float|int