Code Duplication    Length = 10-12 lines in 2 locations

lib/Model/BaseCircle.php 1 location

@@ 469-478 (lines=10) @@
466
			return (int)$type;
467
		}
468
469
		switch ($type) {
470
			case 'Personal':
471
				return self::CIRCLES_PERSONAL;
472
			case 'Closed':
473
				return self::CIRCLES_CLOSED;
474
			case 'Secret':
475
				return self::CIRCLES_SECRET;
476
			case 'Public':
477
				return self::CIRCLES_PUBLIC;
478
		}
479
480
		return 0;
481
	}

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
	}