Skip to content

Commit 7c62963

Browse files
committed
short variable name
1 parent c8ec74b commit 7c62963

File tree

1 file changed

+14
-14
lines changed

1 file changed

+14
-14
lines changed

lib/jblond/Diff/SequenceMatcher.php

+14-14
Original file line numberDiff line numberDiff line change
@@ -140,41 +140,41 @@ public function setSequences($partA, $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)