Code Duplication    Length = 20-22 lines in 3 locations

view/SSTemplateParser.php 3 locations

@@ 1340-1359 (lines=20) @@
1337
							$result = $res_173;
1338
							$this->pos = $pos_173;
1339
							$_178 = NULL;
1340
							do {
1341
								$res_175 = $result;
1342
								$pos_175 = $this->pos;
1343
								if (substr($this->string,$this->pos,1) == '<') {
1344
									$this->pos += 1;
1345
									$result["text"] .= '<';
1346
									$_178 = TRUE; break;
1347
								}
1348
								$result = $res_175;
1349
								$this->pos = $pos_175;
1350
								if (substr($this->string,$this->pos,1) == '=') {
1351
									$this->pos += 1;
1352
									$result["text"] .= '=';
1353
									$_178 = TRUE; break;
1354
								}
1355
								$result = $res_175;
1356
								$this->pos = $pos_175;
1357
								$_178 = FALSE; break;
1358
							}
1359
							while(0);
1360
							if( $_178 === TRUE ) { $_180 = TRUE; break; }
1361
							$result = $res_173;
1362
							$this->pos = $pos_173;
@@ 4510-4531 (lines=22) @@
4507
							$res_754 = $result;
4508
							$pos_754 = $this->pos;
4509
							$_757 = NULL;
4510
							do {
4511
								if (substr($this->string,$this->pos,1) == '<') {
4512
									$this->pos += 1;
4513
									$result["text"] .= '<';
4514
								}
4515
								else { $_757 = FALSE; break; }
4516
								$res_756 = $result;
4517
								$pos_756 = $this->pos;
4518
								if (substr($this->string,$this->pos,1) == '%') {
4519
									$this->pos += 1;
4520
									$result["text"] .= '%';
4521
									$result = $res_756;
4522
									$this->pos = $pos_756;
4523
									$_757 = FALSE; break;
4524
								}
4525
								else {
4526
									$result = $res_756;
4527
									$this->pos = $pos_756;
4528
								}
4529
								$_757 = TRUE; break;
4530
							}
4531
							while(0);
4532
							if( $_757 === TRUE ) { $_781 = TRUE; break; }
4533
							$result = $res_754;
4534
							$this->pos = $pos_754;
@@ 4575-4596 (lines=22) @@
4572
									$res_766 = $result;
4573
									$pos_766 = $this->pos;
4574
									$_769 = NULL;
4575
									do {
4576
										if (substr($this->string,$this->pos,1) == '{') {
4577
											$this->pos += 1;
4578
											$result["text"] .= '{';
4579
										}
4580
										else { $_769 = FALSE; break; }
4581
										$res_768 = $result;
4582
										$pos_768 = $this->pos;
4583
										if (substr($this->string,$this->pos,1) == '$') {
4584
											$this->pos += 1;
4585
											$result["text"] .= '$';
4586
											$result = $res_768;
4587
											$this->pos = $pos_768;
4588
											$_769 = FALSE; break;
4589
										}
4590
										else {
4591
											$result = $res_768;
4592
											$this->pos = $pos_768;
4593
										}
4594
										$_769 = TRUE; break;
4595
									}
4596
									while(0);
4597
									if( $_769 === TRUE ) { $_777 = TRUE; break; }
4598
									$result = $res_766;
4599
									$this->pos = $pos_766;