Code Duplication    Length = 16-16 lines in 4 locations

src/wp-includes/class-snoopy.php 4 locations

@@ 181-196 (lines=16) @@
178
						}
179
					}
180
181
					if($this->_framedepth < $this->maxframes && count($this->_frameurls) > 0)
182
					{
183
						$frameurls = $this->_frameurls;
184
						$this->_frameurls = array();
185
186
						while(list(,$frameurl) = each($frameurls))
187
						{
188
							if($this->_framedepth < $this->maxframes)
189
							{
190
								$this->fetch($frameurl);
191
								$this->_framedepth++;
192
							}
193
							else
194
								break;
195
						}
196
					}
197
				}
198
				else
199
				{
@@ 241-256 (lines=16) @@
238
					}
239
				}
240
241
				if($this->_framedepth < $this->maxframes && count($this->_frameurls) > 0)
242
				{
243
					$frameurls = $this->_frameurls;
244
					$this->_frameurls = array();
245
246
					while(list(,$frameurl) = each($frameurls))
247
					{
248
						if($this->_framedepth < $this->maxframes)
249
						{
250
							$this->fetch($frameurl);
251
							$this->_framedepth++;
252
						}
253
						else
254
							break;
255
					}
256
				}
257
				return true;
258
				break;
259
			default:
@@ 339-354 (lines=16) @@
336
						}
337
					}
338
339
					if($this->_framedepth < $this->maxframes && count($this->_frameurls) > 0)
340
					{
341
						$frameurls = $this->_frameurls;
342
						$this->_frameurls = array();
343
344
						while(list(,$frameurl) = each($frameurls))
345
						{
346
							if($this->_framedepth < $this->maxframes)
347
							{
348
								$this->fetch($frameurl);
349
								$this->_framedepth++;
350
							}
351
							else
352
								break;
353
						}
354
					}
355
356
				}
357
				else
@@ 406-421 (lines=16) @@
403
					}
404
				}
405
406
				if($this->_framedepth < $this->maxframes && count($this->_frameurls) > 0)
407
				{
408
					$frameurls = $this->_frameurls;
409
					$this->_frameurls = array();
410
411
					while(list(,$frameurl) = each($frameurls))
412
					{
413
						if($this->_framedepth < $this->maxframes)
414
						{
415
							$this->fetch($frameurl);
416
							$this->_framedepth++;
417
						}
418
						else
419
							break;
420
					}
421
				}
422
				return true;
423
				break;
424