Changeset View
Changeset View
Standalone View
Standalone View
src/utils/__tests__/PhutilEditDistanceMatrixTestCase.php
Context not available. | |||||
} | } | ||||
private function buildMatrix($x, $y, $ins, $del, $rep, $trn, $alt) { | private function buildMatrix($x, $y, $ins, $del, $rep, $trn, $alt) { | ||||
if (!strlen($x)) { | if (!@strlen($x)) { | ||||
$xv = array(); | $xv = array(); | ||||
} else { | } else { | ||||
$xv = str_split($x); | $xv = str_split($x); | ||||
} | } | ||||
if (!strlen($y)) { | if (!@strlen($y)) { | ||||
$yv = array(); | $yv = array(); | ||||
} else { | } else { | ||||
$yv = str_split($y); | $yv = str_split($y); | ||||
Context not available. |
Content licensed under Creative Commons Attribution-ShareAlike 4.0 (CC-BY-SA) unless otherwise noted; code licensed under Apache 2.0 or other open source licenses. · CC BY-SA 4.0 · Apache 2.0