Code Duplication    Length = 10-12 lines in 2 locations

lib/Model/BaseCircle.php 1 location

@@ 560-569 (lines=10) @@
557
			return (int)$type;
558
		}
559
560
		switch ($type) {
561
			case 'Personal':
562
				return self::CIRCLES_PERSONAL;
563
			case 'Closed':
564
				return self::CIRCLES_CLOSED;
565
			case 'Secret':
566
				return self::CIRCLES_SECRET;
567
			case 'Public':
568
				return self::CIRCLES_PUBLIC;
569
		}
570
571
		return 0;
572
	}

lib/Model/Circle.php 1 location

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