Skip to content

Commit bf30ec0

Browse files
committed
Refactor names
1 parent d9fd105 commit bf30ec0

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/CodeConverter.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -99,11 +99,11 @@ public function __construct(
9999
* Convert the given source code.
100100
*
101101
* @param string $code The source code.
102-
* @param array $functionCallMappings The function call mappings.
102+
* @param array $functionCallMap The function call map.
103103
*
104104
* @return string
105105
*/
106-
public function convert(string $code, array $functionCallMappings): string
106+
public function convert(string $code, array $functionCallMap): string
107107
{
108108
$oldStmts = $this->parser->parse($code);
109109
$oldTokens = $this->lexer->getTokens();
@@ -122,9 +122,9 @@ public function convert(string $code, array $functionCallMappings): string
122122
$resolvedName = $funcCall->name->getAttribute(self::ATTR_RESOLVED_NAME);
123123

124124
$resolvedNameCode = $resolvedName->toCodeString();
125-
if (isset($functionCallMappings[$resolvedNameCode])) {
125+
if (isset($functionCallMap[$resolvedNameCode])) {
126126
$k = uniqid(md5($resolvedNameCode), true);
127-
$overridePlaceholders[$k] = $functionCallMappings[$resolvedNameCode];
127+
$overridePlaceholders[$k] = $functionCallMap[$resolvedNameCode];
128128

129129
$funcCall->name = new FullyQualified($k);
130130
}

src/Override.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ public static function apply(
9595
$classLoader->loadClass(FileStreamWrapper::class);
9696
}
9797

98-
// Reset the function call mappings.
98+
// Reset the function call maps.
9999
self::$fileFunctionCallMap = [];
100100
self::$dirFunctionCallMap = [];
101101

0 commit comments

Comments
 (0)