Code Duplication    Length = 9-9 lines in 2 locations

lib/Db/CirclesMapper.php 2 locations

@@ 155-163 (lines=9) @@
152
								  )
153
			);
154
		}
155
		if (Circle::CIRCLES_PRIVATE & (int)$type) {
156
			array_push(
157
				$orTypesArray, $qb->expr()
158
								  ->eq(
159
									  'c.type',
160
									  $qb->createNamedParameter(Circle::CIRCLES_PRIVATE)
161
								  )
162
			);
163
		}
164
		if (Circle::CIRCLES_PUBLIC & (int)$type) {
165
			array_push(
166
				$orTypesArray, $qb->expr()
@@ 164-172 (lines=9) @@
161
								  )
162
			);
163
		}
164
		if (Circle::CIRCLES_PUBLIC & (int)$type) {
165
			array_push(
166
				$orTypesArray, $qb->expr()
167
								  ->eq(
168
									  'c.type',
169
									  $qb->createNamedParameter(Circle::CIRCLES_PUBLIC)
170
								  )
171
			);
172
		}
173
174
		if (sizeof($orTypesArray) === 0) {
175
			throw new ConfigNoCircleAvailable();