Skip to content

Commit dc26604

Browse files
committed
Rename Differ::groupedCodes to Differ::groupedOpcodes
Signed-off-by: Jack Cherng <jfcherng@gmail.com>
1 parent ba570f8 commit dc26604

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

src/Differ.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ final class Differ
2121
* @var array cached properties and their default values
2222
*/
2323
private const CACHED_PROPERTIES = [
24-
'groupedCodes' => [],
24+
'groupedOpcodes' => [],
2525
'oldNewComparison' => 0,
2626
];
2727

@@ -59,7 +59,7 @@ final class Differ
5959
/**
6060
* @var array array containing the generated opcodes for the differences between the two items
6161
*/
62-
private $groupedCodes = [];
62+
private $groupedOpcodes = [];
6363

6464
/**
6565
* @var array associative array of the default options available for the Differ class and their default value
@@ -225,11 +225,11 @@ public static function getInstance(): self
225225
*/
226226
public function getGroupedOpcodes(): array
227227
{
228-
if (!empty($this->groupedCodes)) {
229-
return $this->groupedCodes;
228+
if (!empty($this->groupedOpcodes)) {
229+
return $this->groupedOpcodes;
230230
}
231231

232-
return $this->groupedCodes = $this->sequenceMatcher
232+
return $this->groupedOpcodes = $this->sequenceMatcher
233233
->getGroupedOpcodes($this->options['context']);
234234
}
235235

0 commit comments

Comments
 (0)