Code Duplication    Length = 10-12 lines in 2 locations

lib/Model/Circle.php 1 location

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

lib/Model/BaseCircle.php 1 location

@@ 527-536 (lines=10) @@
524
			return (int)$type;
525
		}
526
527
		switch ($type) {
528
			case 'Personal':
529
				return self::CIRCLES_PERSONAL;
530
			case 'Closed':
531
				return self::CIRCLES_CLOSED;
532
			case 'Secret':
533
				return self::CIRCLES_SECRET;
534
			case 'Public':
535
				return self::CIRCLES_PUBLIC;
536
		}
537
538
		return 0;
539
	}