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

@@ 540-549 (lines=10) @@
537
			return (int)$type;
538
		}
539
540
		switch ($type) {
541
			case 'Personal':
542
				return self::CIRCLES_PERSONAL;
543
			case 'Closed':
544
				return self::CIRCLES_CLOSED;
545
			case 'Secret':
546
				return self::CIRCLES_SECRET;
547
			case 'Public':
548
				return self::CIRCLES_PUBLIC;
549
		}
550
551
		return 0;
552
	}