Code Duplication    Length = 15-15 lines in 2 locations

src/QRCode.php 2 locations

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