From 7c62963a58a9c55b5219642e97c25fe74a8aa3e4 Mon Sep 17 00:00:00 2001 From: JBlond Date: Wed, 13 Feb 2019 17:31:14 +0100 Subject: [PATCH] short variable name --- lib/jblond/Diff/SequenceMatcher.php | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/lib/jblond/Diff/SequenceMatcher.php b/lib/jblond/Diff/SequenceMatcher.php index aa1cc73f..9a2944a9 100644 --- a/lib/jblond/Diff/SequenceMatcher.php +++ b/lib/jblond/Diff/SequenceMatcher.php @@ -140,41 +140,41 @@ public function setSequences($partA, $partB) } /** - * Set the first sequence ($a) and reset any internal caches to indicate that + * Set the first sequence ($partA) and reset any internal caches to indicate that * when calling the calculation methods, we need to recalculate them. * - * @param string|array $a The sequence to set as the first sequence. + * @param string|array $partA The sequence to set as the first sequence. */ - public function setSeq1($a) + public function setSeq1($partA) { - if (!is_array($a)) { - $a = str_split($a); + if (!is_array($partA)) { + $partA = str_split($partA); } - if ($a == $this->a) { + if ($partA == $this->a) { return; } - $this->a = $a; + $this->a = $partA; $this->matchingBlocks = null; $this->opCodes = null; } /** - * Set the second sequence ($b) and reset any internal caches to indicate that + * Set the second sequence ($partB) and reset any internal caches to indicate that * when calling the calculation methods, we need to recalculate them. * - * @param string|array $b The sequence to set as the second sequence. + * @param string|array $partB The sequence to set as the second sequence. */ - public function setSeq2($b) + public function setSeq2($partB) { - if (!is_array($b)) { - $b = str_split($b); + if (!is_array($partB)) { + $partB = str_split($partB); } - if ($b == $this->b) { + if ($partB == $this->b) { return; } - $this->b = $b; + $this->b = $partB; $this->matchingBlocks = null; $this->opCodes = null; $this->fullBCount = null;