Code Duplication    Length = 6-6 lines in 2 locations

lib/Api/v1/Circles.php 2 locations

@@ 207-212 (lines=6) @@
204
				):
205
					$type = $type - Circle::CIRCLES_CLOSED;
206
					break;
207
				case ($type > Circle::CIRCLES_PUBLIC &&
208
						$type < (Circle::CIRCLES_PUBLIC + Circle::CIRCLES_CLOSED) &&
209
						$circlesAllowed === Circle::CIRCLES_ALL
210
				):
211
					$type = $type - Circle::CIRCLES_PUBLIC;
212
					break;
213
				case ($type > (Circle::CIRCLES_PUBLIC + Circle::CIRCLES_CLOSED) &&
214
						$type < Circle::CIRCLES_ALL &&
215
						$circlesAllowed === Circle::CIRCLES_ALL
@@ 213-218 (lines=6) @@
210
				):
211
					$type = $type - Circle::CIRCLES_PUBLIC;
212
					break;
213
				case ($type > (Circle::CIRCLES_PUBLIC + Circle::CIRCLES_CLOSED) &&
214
						$type < Circle::CIRCLES_ALL &&
215
						$circlesAllowed === Circle::CIRCLES_ALL
216
				):
217
					$type = $type - Circle::CIRCLES_PUBLIC - Circle::CIRCLES_CLOSED;
218
					break;
219
			}
220
		}
221