@recaptime-dev's working patches + fork for Phorge, a community fork of Phabricator. (Upstream dev and stable branches are at upstream/main and upstream/stable respectively.) hq.recaptime.dev/wiki/Phorge
phorge phabricator
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Fix typos in detectCopiedCode()

Auditors: epriestley

vrana 6fd99e28 13a48a79

+3 -3
+2 -2
src/applications/differential/storage/diff/DifferentialDiff.php
··· 187 187 // Search also backwards for short lines. 188 188 foreach (array(-1, 1) as $direction) { 189 189 $offset = $direction; 190 - $orig_code = idx($files[$file], $orig_line + $offset); 191 190 while (!isset($copies[$line + $offset]) && 192 191 isset($added[$line + $offset]) && 193 - $orig_code === $added[$line + $offset]) { 192 + idx($files[$file], $orig_line + $offset) === 193 + $added[$line + $offset]) { 194 194 $lengths["$orig_line:$file"]++; 195 195 $offset += $direction; 196 196 }
+1 -1
src/applications/differential/storage/hunk/DifferentialHunk.php
··· 33 33 continue; 34 34 } 35 35 if ($diff_line[0] == '+') { 36 - $lines[$n] = substr($diff_line, 1); 36 + $lines[$n] = (string)substr($diff_line, 1); // substr('+', 1) === false 37 37 } 38 38 if ($diff_line[0] != '-') { 39 39 $n++;