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

@@ 521-530 (lines=10) @@
518
			return (int)$type;
519
		}
520
521
		switch ($type) {
522
			case 'Personal':
523
				return self::CIRCLES_PERSONAL;
524
			case 'Closed':
525
				return self::CIRCLES_CLOSED;
526
			case 'Secret':
527
				return self::CIRCLES_SECRET;
528
			case 'Public':
529
				return self::CIRCLES_PUBLIC;
530
		}
531
532
		return 0;
533
	}