Skip to content

Commit 2ff78e5

Browse files
committed
cs fix, where did that come from?
1 parent 03a33d8 commit 2ff78e5

File tree

1 file changed

+4
-7
lines changed

1 file changed

+4
-7
lines changed

src/SPC/builder/unix/UnixBuilderBase.php

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
use SPC\store\Downloader;
1717
use SPC\store\FileSystem;
1818
use SPC\store\pkg\GoXcaddy;
19-
use SPC\store\pkg\Zig;
2019
use SPC\util\DependencyUtil;
2120
use SPC\util\GlobalEnvManager;
2221
use SPC\util\SPCConfigUtil;
@@ -54,7 +53,7 @@ public function getAllStaticLibFiles(): array
5453
array_unshift($libFiles, ...$lib->getStaticLibs());
5554
}
5655
}
57-
return array_map(fn($x) => realpath(BUILD_LIB_PATH . "/{$x}"), $libFiles);
56+
return array_map(fn ($x) => realpath(BUILD_LIB_PATH . "/{$x}"), $libFiles);
5857
}
5958

6059
/**
@@ -100,8 +99,7 @@ public function makeAutoconfArgs(string $name, array $libSpecs): string
10099
if ($lib instanceof LinuxLibraryBase || $lib instanceof MacOSLibraryBase || $lib instanceof BSDLibraryBase) {
101100
logger()->info("{$name} \033[32;1mwith\033[0;1m {$libName} support");
102101
$ret .= "--with-{$libName}=yes " . $lib->makeAutoconfEnv($prefix) . ' ';
103-
}
104-
else {
102+
} else {
105103
logger()->info("{$name} \033[31;1mwithout\033[0;1m {$libName} support");
106104
$ret .= ($disableArgs ?? "--with-{$libName}=no") . ' ';
107105
}
@@ -215,8 +213,7 @@ protected function sanityCheck(int $build_target): void
215213
if (getenv('SPC_CMD_VAR_PHP_EMBED_TYPE') === 'shared') {
216214
$ext_path = 'LD_LIBRARY_PATH=' . BUILD_ROOT_PATH . '/lib:$LD_LIBRARY_PATH ';
217215
FileSystem::removeFileIfExists(BUILD_ROOT_PATH . '/lib/libphp.a');
218-
}
219-
else {
216+
} else {
220217
$ext_path = '';
221218
FileSystem::removeFileIfExists(BUILD_ROOT_PATH . '/lib/libphp.so');
222219
}
@@ -245,7 +242,7 @@ protected function sanityCheck(int $build_target): void
245242
/**
246243
* 将编译好的二进制文件发布到 buildroot
247244
*
248-
* @param int $type 发布类型
245+
* @param int $type 发布类型
249246
* @throws RuntimeException
250247
* @throws FileSystemException
251248
*/

0 commit comments

Comments
 (0)