File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -321,18 +321,18 @@ protected function install(): void
321
321
if (!file_exists ($ placeholder_file )) {
322
322
return ;
323
323
}
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 )) {
326
326
throw new RuntimeException ('Invalid placeholder file: ' . $ placeholder_file );
327
327
}
328
- $ placeholder = get_pack_placehoder ();
328
+ $ placeholder_mark = get_pack_placehoder ();
329
329
// replace placeholders in BUILD_ROOT_PATH
330
- foreach ($ placeholder as $ item ) {
330
+ foreach ($ placeholders as $ item ) {
331
331
$ filepath = BUILD_ROOT_PATH . "/ {$ item }" ;
332
332
FileSystem::replaceFileStr (
333
333
$ filepath ,
334
- array_values ($ placeholder ),
335
- array_keys ($ placeholder ),
334
+ array_values ($ placeholder_mark ),
335
+ array_keys ($ placeholder_mark ),
336
336
);
337
337
}
338
338
// remove placeholder file
You can’t perform that action at this time.
0 commit comments