Code Duplication    Length = 10-12 lines in 2 locations

lib/Model/Circle.php 1 location

@@ 42-53 (lines=12) @@
39
40
41
	public function getTypeString() {
42
		switch ($this->getType()) {
43
			case self::CIRCLES_PERSONAL:
44
				return 'Personal';
45
			case self::CIRCLES_SECRET:
46
				return 'Secret';
47
			case self::CIRCLES_CLOSED:
48
				return 'Closed';
49
			case self::CIRCLES_PUBLIC:
50
				return 'Public';
51
			case self::CIRCLES_ALL:
52
				return 'All';
53
		}
54
55
		return 'none';
56
	}

lib/Model/BaseCircle.php 1 location

@@ 395-404 (lines=10) @@
392
			return (int)$type;
393
		}
394
395
		switch ($type) {
396
			case 'Personal':
397
				return self::CIRCLES_PERSONAL;
398
			case 'Closed':
399
				return self::CIRCLES_CLOSED;
400
			case 'Secret':
401
				return self::CIRCLES_SECRET;
402
			case 'Public':
403
				return self::CIRCLES_PUBLIC;
404
		}
405
406
		return 0;
407
	}