Lines Matching refs:x
38 list($trace, $x, $y) = $this->calculateTrace($old, $new);
39 return $this->extractDiff($trace, $x, $y, $old, $new);
72 $x = $v[$k + 1];
74 $x = $v[$k - 1] + 1;
77 $y = $x - $k;
78 while ($x < $n && $y < $m && ($this->isEqual)($old[$x], $new[$y])) {
79 $x++;
83 $v[$k] = $x;
84 if ($x >= $n && $y >= $m) {
85 return [$trace, $x, $y];
98 private function extractDiff(array $trace, int $x, int $y, array $old, array $new): array { argument
102 $k = $x - $y;
113 while ($x > $prevX && $y > $prevY) {
114 $result[] = new DiffElem(DiffElem::TYPE_KEEP, $old[$x - 1], $new[$y - 1]);
115 $x--;
123 while ($x > $prevX) {
124 $result[] = new DiffElem(DiffElem::TYPE_REMOVE, $old[$x - 1], null);
125 $x--;