Skip to content

Commit e5df25f

Browse files
committed
Merge branch 'master' into development
2 parents 7d22093 + 7c62963 commit e5df25f

File tree

1 file changed

+19
-19
lines changed

1 file changed

+19
-19
lines changed

lib/jblond/Diff/SequenceMatcher.php

Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -130,51 +130,51 @@ public function setOptions($options)
130130
/**
131131
* Set the first and second sequences to use with the sequence matcher.
132132
*
133-
* @param string|array $a A string or array containing the lines to compare against.
134-
* @param string|array $b A string or array containing the lines to compare.
133+
* @param string|array $partA A string or array containing the lines to compare against.
134+
* @param string|array $partB A string or array containing the lines to compare.
135135
*/
136-
public function setSequences($a, $b)
136+
public function setSequences($partA, $partB)
137137
{
138-
$this->setSeq1($a);
139-
$this->setSeq2($b);
138+
$this->setSeq1($partA);
139+
$this->setSeq2($partB);
140140
}
141141

142142
/**
143-
* Set the first sequence ($a) and reset any internal caches to indicate that
143+
* Set the first sequence ($partA) and reset any internal caches to indicate that
144144
* when calling the calculation methods, we need to recalculate them.
145145
*
146-
* @param string|array $a The sequence to set as the first sequence.
146+
* @param string|array $partA The sequence to set as the first sequence.
147147
*/
148-
public function setSeq1($a)
148+
public function setSeq1($partA)
149149
{
150-
if (!is_array($a)) {
151-
$a = str_split($a);
150+
if (!is_array($partA)) {
151+
$partA = str_split($partA);
152152
}
153-
if ($a == $this->a) {
153+
if ($partA == $this->a) {
154154
return;
155155
}
156156

157-
$this->a = $a;
157+
$this->a = $partA;
158158
$this->matchingBlocks = null;
159159
$this->opCodes = null;
160160
}
161161

162162
/**
163-
* Set the second sequence ($b) and reset any internal caches to indicate that
163+
* Set the second sequence ($partB) and reset any internal caches to indicate that
164164
* when calling the calculation methods, we need to recalculate them.
165165
*
166-
* @param string|array $b The sequence to set as the second sequence.
166+
* @param string|array $partB The sequence to set as the second sequence.
167167
*/
168-
public function setSeq2($b)
168+
public function setSeq2($partB)
169169
{
170-
if (!is_array($b)) {
171-
$b = str_split($b);
170+
if (!is_array($partB)) {
171+
$partB = str_split($partB);
172172
}
173-
if ($b == $this->b) {
173+
if ($partB == $this->b) {
174174
return;
175175
}
176176

177-
$this->b = $b;
177+
$this->b = $partB;
178178
$this->matchingBlocks = null;
179179
$this->opCodes = null;
180180
$this->fullBCount = null;

0 commit comments

Comments
 (0)