| @@ 489-494 (lines=6) @@ | ||
| 486 | }  | 
                                |
| 487 | $matches = $ymatches[$line];  | 
                                |
| 488 |                 foreach ($matches as $y) { | 
                                |
| 489 |                     if (empty($this->in_seq[$y])) { | 
                                |
| 490 | $k = $this->_lcsPos($y);  | 
                                |
| 491 | assert($k > 0);  | 
                                |
| 492 | $ymids[$k] = $ymids[$k - 1];  | 
                                |
| 493 | break;  | 
                                |
| 494 | }  | 
                                |
| 495 | }  | 
                                |
| 496 | ||
| 497 |                 while (list($junk, $y) = each($matches)) { | 
                                |
| @@ 505-509 (lines=5) @@ | ||
| 502 | $this->in_seq[$this->seq[$k]] = false;  | 
                                |
| 503 | $this->seq[$k] = $y;  | 
                                |
| 504 | $this->in_seq[$y] = 1;  | 
                                |
| 505 |                     } elseif (empty($this->in_seq[$y])) { | 
                                |
| 506 | $k = $this->_lcsPos($y);  | 
                                |
| 507 | assert($k > 0);  | 
                                |
| 508 | $ymids[$k] = $ymids[$k - 1];  | 
                                |
| 509 | }  | 
                                |
| 510 | }  | 
                                |
| 511 | }  | 
                                |
| 512 | }  | 
                                |