Lines Matching refs:y
38 list($trace, $x, $y) = $this->calculateTrace($old, $new);
39 return $this->extractDiff($trace, $x, $y, $old, $new);
77 $y = $x - $k;
78 while ($x < $n && $y < $m && ($this->isEqual)($old[$x], $new[$y])) {
80 $y++;
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]);
116 $y--;
128 while ($y > $prevY) {
129 $result[] = new DiffElem(DiffElem::TYPE_ADD, null, $new[$y - 1]);
130 $y--;