chore(core): app/Support Pint 사전 드리프트 정리
이번 이슈에서 손대지 않은 파일인데 Pint 실행 시 워킹트리에 떠올라, HEAD 사본을 꺼내 pint --test 로 대조했다. 5개 파일 모두 fail 이며 fixer 목록이 워킹트리 diff 와 일치 — 이전부터 누적된 미적용분이다. 기능 커밋에 섞으면 diff 의 의미가 흐려지므로 분리했다. FakerShim 의 16진 표기 변경은 UUID v4 비트 마스킹 결과에 영향이 없고, bootstrap.php 의 use 임포트 추출은 ::class 가 완전한 FQN 으로 해석되므로 class_alias 대상이 달라지지 않는다. 이 파일은 autoload.files 진입점이라 전역 fake 에 닿는 자리여서 따로 확인했다.
This commit is contained in:
1 parent
327c433250
commit
3044119b37
5 files changed
+25
-25
No files matched your search
@@ -64,7 +64,7 @@ class PhpBinaryResolver
|
||||
$checkedPaths = [];
|
||||
|
||||
// PHP_BINARY 상수 (현재 웹 서버가 사용하는 PHP)
|
||||
if (defined('PHP_BINARY') && PHP_BINARY !== '' && !in_array(PHP_BINARY, $checkedPaths, true)) {
|
||||
if (defined('PHP_BINARY') && PHP_BINARY !== '' && ! in_array(PHP_BINARY, $checkedPaths, true)) {
|
||||
$checkedPaths[] = PHP_BINARY;
|
||||
$result = self::validate(PHP_BINARY);
|
||||
if ($result['valid']) {
|
||||
@@ -79,7 +79,7 @@ class PhpBinaryResolver
|
||||
}
|
||||
$checkedPaths[] = $path;
|
||||
|
||||
if (!file_exists($path)) {
|
||||
if (! file_exists($path)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
@@ -90,7 +90,7 @@ class PhpBinaryResolver
|
||||
}
|
||||
|
||||
// 시스템 PATH의 'php'
|
||||
if (!in_array('php', $checkedPaths, true)) {
|
||||
if (! in_array('php', $checkedPaths, true)) {
|
||||
$checkedPaths[] = 'php';
|
||||
$result = self::validate('php');
|
||||
if ($result['valid']) {
|
||||
@@ -104,7 +104,7 @@ class PhpBinaryResolver
|
||||
/**
|
||||
* 지정된 PHP 바이너리 경로의 유효성을 검증합니다.
|
||||
*
|
||||
* @param string $path PHP 바이너리 경로
|
||||
* @param string $path PHP 바이너리 경로
|
||||
* @return array{valid: bool, version: string|null, message: string} 검증 결과
|
||||
*/
|
||||
public static function validate(string $path): array
|
||||
@@ -118,7 +118,7 @@ class PhpBinaryResolver
|
||||
}
|
||||
|
||||
// 절대 경로인 경우 파일 존재 여부 확인
|
||||
if ($path !== 'php' && !file_exists($path)) {
|
||||
if ($path !== 'php' && ! file_exists($path)) {
|
||||
return [
|
||||
'valid' => false,
|
||||
'version' => null,
|
||||
@@ -127,7 +127,7 @@ class PhpBinaryResolver
|
||||
}
|
||||
|
||||
// 명령어 실행하여 버전 확인
|
||||
$command = escapeshellarg($path) . ' --version 2>&1';
|
||||
$command = escapeshellarg($path).' --version 2>&1';
|
||||
$output = [];
|
||||
$returnCode = -1;
|
||||
|
||||
@@ -150,14 +150,14 @@ class PhpBinaryResolver
|
||||
return [
|
||||
'valid' => true,
|
||||
'version' => $version,
|
||||
'message' => "PHP {$version} (최소 요구 버전 " . self::MIN_PHP_VERSION . ' 충족)',
|
||||
'message' => "PHP {$version} (최소 요구 버전 ".self::MIN_PHP_VERSION.' 충족)',
|
||||
];
|
||||
}
|
||||
|
||||
return [
|
||||
'valid' => false,
|
||||
'version' => $version,
|
||||
'message' => "PHP {$version}은 최소 요구 버전 " . self::MIN_PHP_VERSION . '을 충족하지 않습니다.',
|
||||
'message' => "PHP {$version}은 최소 요구 버전 ".self::MIN_PHP_VERSION.'을 충족하지 않습니다.',
|
||||
];
|
||||
}
|
||||
|
||||
@@ -171,8 +171,8 @@ class PhpBinaryResolver
|
||||
/**
|
||||
* Composer 실행 명령어를 생성합니다.
|
||||
*
|
||||
* @param string $phpBinary PHP 바이너리 경로
|
||||
* @param string $composerBinary Composer 바이너리 경로 (빈 문자열이면 시스템 PATH 사용)
|
||||
* @param string $phpBinary PHP 바이너리 경로
|
||||
* @param string $composerBinary Composer 바이너리 경로 (빈 문자열이면 시스템 PATH 사용)
|
||||
* @return string 실행 가능한 Composer 명령어
|
||||
*/
|
||||
public static function buildComposerCommand(string $phpBinary = 'php', string $composerBinary = ''): string
|
||||
@@ -184,7 +184,7 @@ class PhpBinaryResolver
|
||||
}
|
||||
|
||||
return str_ends_with($composerBinary, '.phar')
|
||||
? escapeshellarg($phpBinary) . ' ' . escapeshellarg($composerBinary)
|
||||
? escapeshellarg($phpBinary).' '.escapeshellarg($composerBinary)
|
||||
: escapeshellarg($composerBinary);
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user