Skip to content

Commit

Permalink
short variable name
Browse files Browse the repository at this point in the history
  • Loading branch information
JBlond committed Feb 13, 2019
1 parent c8ec74b commit 7c62963
Showing 1 changed file with 14 additions and 14 deletions.
28 changes: 14 additions & 14 deletions lib/jblond/Diff/SequenceMatcher.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 7c62963

Please sign in to comment.