Code Duplication    Length = 17-17 lines in 2 locations

src/QRCode.php 2 locations

@@ 291-307 (lines=17) @@
288
	 */
289
	protected function testLevel3(array $range1, array $range2){
290
291
		foreach($range1 as $row){
292
			foreach($range2 as $col){
293
294
				if(
295
					    $this->matrix[$row][$col    ]
296
					&& !$this->matrix[$row][$col + 1]
297
					&&  $this->matrix[$row][$col + 2]
298
					&&  $this->matrix[$row][$col + 3]
299
					&&  $this->matrix[$row][$col + 4]
300
					&& !$this->matrix[$row][$col + 5]
301
					&&  $this->matrix[$row][$col + 6]
302
				){
303
					$this->lostPoint += 40;
304
				}
305
306
			}
307
		}
308
309
		foreach($range1 as $col){
310
			foreach($range2 as $row){
@@ 309-325 (lines=17) @@
306
			}
307
		}
308
309
		foreach($range1 as $col){
310
			foreach($range2 as $row){
311
312
				if(
313
					    $this->matrix[$row    ][$col]
314
					&& !$this->matrix[$row + 1][$col]
315
					&&  $this->matrix[$row + 2][$col]
316
					&&  $this->matrix[$row + 3][$col]
317
					&&  $this->matrix[$row + 4][$col]
318
					&& !$this->matrix[$row + 5][$col]
319
					&&  $this->matrix[$row + 6][$col]
320
				){
321
					$this->lostPoint += 40;
322
				}
323
324
			}
325
		}
326
327
	}
328