Code Duplication    Length = 9-9 lines in 2 locations

lib/Db/CirclesMapper.php 2 locations

@@ 163-171 (lines=9) @@
160
								  )
161
			);
162
		}
163
		if (Circle::CIRCLES_PRIVATE & (int)$type) {
164
			array_push(
165
				$orTypesArray, $qb->expr()
166
								  ->eq(
167
									  'c.type',
168
									  $qb->createNamedParameter(Circle::CIRCLES_PRIVATE)
169
								  )
170
			);
171
		}
172
		if (Circle::CIRCLES_PUBLIC & (int)$type) {
173
			array_push(
174
				$orTypesArray, $qb->expr()
@@ 172-180 (lines=9) @@
169
								  )
170
			);
171
		}
172
		if (Circle::CIRCLES_PUBLIC & (int)$type) {
173
			array_push(
174
				$orTypesArray, $qb->expr()
175
								  ->eq(
176
									  'c.type',
177
									  $qb->createNamedParameter(Circle::CIRCLES_PUBLIC)
178
								  )
179
			);
180
		}
181
182
		if (sizeof($orTypesArray) === 0) {
183
			return null;