Code Duplication    Length = 17-17 lines in 2 locations

src/QRCode.php 2 locations

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