Code Duplication    Length = 15-15 lines in 2 locations

src/QRCode.php 2 locations

@@ 251-265 (lines=15) @@
248
			}
249
250
			// LEVEL3
251
			foreach($range1 as $row){
252
				foreach($range3 as $col){
253
					if(
254
						    $this->matrix[$row][$col    ]
255
						&& !$this->matrix[$row][$col + 1]
256
						&&  $this->matrix[$row][$col + 2]
257
						&&  $this->matrix[$row][$col + 3]
258
						&&  $this->matrix[$row][$col + 4]
259
						&& !$this->matrix[$row][$col + 5]
260
						&&  $this->matrix[$row][$col + 6]
261
					){
262
						$lostPoint += 40;
263
					}
264
				}
265
			}
266
267
			foreach($range1 as $col){
268
				foreach($range3 as $row){
@@ 267-281 (lines=15) @@
264
				}
265
			}
266
267
			foreach($range1 as $col){
268
				foreach($range3 as $row){
269
					if(
270
						    $this->matrix[$row    ][$col]
271
						&& !$this->matrix[$row + 1][$col]
272
						&&  $this->matrix[$row + 2][$col]
273
						&&  $this->matrix[$row + 3][$col]
274
						&&  $this->matrix[$row + 4][$col]
275
						&& !$this->matrix[$row + 5][$col]
276
						&&  $this->matrix[$row + 6][$col]
277
					){
278
						$lostPoint += 40;
279
					}
280
				}
281
			}
282
283
			// LEVEL4
284
			foreach($range1 as $col){