Skip to content

Commit 45f257e

Browse files
committed
Change variable name for placeholder
1 parent 0d0c789 commit 45f257e

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/SPC/builder/LibraryBase.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -321,18 +321,18 @@ protected function install(): void
321321
if (!file_exists($placeholder_file)) {
322322
return;
323323
}
324-
$placeholder = json_decode(file_get_contents($placeholder_file), true);
325-
if (!is_array($placeholder)) {
324+
$placeholders = json_decode(file_get_contents($placeholder_file), true);
325+
if (!is_array($placeholders)) {
326326
throw new RuntimeException('Invalid placeholder file: ' . $placeholder_file);
327327
}
328-
$placeholder = get_pack_placehoder();
328+
$placeholder_mark = get_pack_placehoder();
329329
// replace placeholders in BUILD_ROOT_PATH
330-
foreach ($placeholder as $item) {
330+
foreach ($placeholders as $item) {
331331
$filepath = BUILD_ROOT_PATH . "/{$item}";
332332
FileSystem::replaceFileStr(
333333
$filepath,
334-
array_values($placeholder),
335-
array_keys($placeholder),
334+
array_values($placeholder_mark),
335+
array_keys($placeholder_mark),
336336
);
337337
}
338338
// remove placeholder file

0 commit comments

Comments
 (0)