Code Duplication    Length = 18-18 lines in 2 locations

ClashAPI/LogEntry.class.php 2 locations

@@ 47-64 (lines=18) @@
44
		return $this->getLogEntry()->clan->name;
45
	}
46
	
47
	public function getClanBadeUrl($size = "")
48
	{
49
		switch ($size)
50
		{
51
			case "small":
52
				return $this->getLogEntry()->clan->badgeUrls->small; 
53
				break;
54
			case "medium":
55
				return $this->getLogEntry()->clan->badgeUrls->medium;
56
				break;
57
			case "large":
58
				return $this->getLogEntry()->clan->badgeUrls->large;
59
				break;
60
			default:
61
				return $this->getLogEntry()->clan->badgeUrls->large; //return the largest because it can be resized using HTML
62
				break;
63
		}
64
	}
65
	
66
	public function getClanLevel()
67
	{
@@ 101-118 (lines=18) @@
98
		return $this->getLogEntry()->opponent->name;
99
	}
100
	
101
	public function getOpponentBadgeUrls($size = "")
102
	{
103
		switch ($size)
104
		{
105
			case "small":
106
				return $this->getLogEntry()->opponent->badgeUrls->small; 
107
				break;
108
			case "medium":
109
				return $this->getLogEntry()->opponent->badgeUrls->medium;
110
				break;
111
			case "large":
112
				return $this->getLogEntry()->opponent->badgeUrls->large;
113
				break;
114
			default:
115
				return $this->getLogEntry()->opponent->badgeUrls->large; //return the largest because it can be resized using HTML
116
				break;
117
		}
118
	}
119
	
120
	public function getOpponentLevel()
121
	{