Code Duplication    Length = 17-17 lines in 2 locations

src/QRCode.php 2 locations

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