diff --git a/app/Support/ConfigCacheHelper.php b/app/Support/ConfigCacheHelper.php index b0d27889..4a4af013 100644 --- a/app/Support/ConfigCacheHelper.php +++ b/app/Support/ConfigCacheHelper.php @@ -33,8 +33,6 @@ class ConfigCacheHelper * * 재생성 실패(권한/디스크 등)는 치명적이지 않다 — config:clear 로 stale 캐시는 * 이미 제거되어 다음 요청이 fresh config 로 안전하게 부팅되므로, 경고만 남기고 넘어간다. - * - * @return void */ public static function rebuild(): void { @@ -62,8 +60,6 @@ class ConfigCacheHelper * config 캐시만 제거합니다 (재생성 없음). * * 재생성이 부적절한 특수 경로(예: 설치 직전 초기화)를 위한 보조 진입점. - * - * @return void */ public static function clear(): void { diff --git a/app/Support/PhpBinaryResolver.php b/app/Support/PhpBinaryResolver.php index 952676a5..4d101e86 100644 --- a/app/Support/PhpBinaryResolver.php +++ b/app/Support/PhpBinaryResolver.php @@ -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); } diff --git a/app/Support/SampleData/FakerShim.php b/app/Support/SampleData/FakerShim.php index aff3c2e4..b1760677 100644 --- a/app/Support/SampleData/FakerShim.php +++ b/app/Support/SampleData/FakerShim.php @@ -236,8 +236,8 @@ class FakerShim public function uuid(): string { $data = random_bytes(16); - $data[6] = chr(ord($data[6]) & 0x0f | 0x40); - $data[8] = chr(ord($data[8]) & 0x3f | 0x80); + $data[6] = chr(ord($data[6]) & 0x0F | 0x40); + $data[8] = chr(ord($data[8]) & 0x3F | 0x80); return vsprintf('%s%s-%s-%s-%s-%s%s%s', str_split(bin2hex($data), 4)); } diff --git a/app/Support/SampleData/bootstrap.php b/app/Support/SampleData/bootstrap.php index 0c8790cc..ef91f415 100644 --- a/app/Support/SampleData/bootstrap.php +++ b/app/Support/SampleData/bootstrap.php @@ -1,5 +1,10 @@ get('app.faker_locale', 'ko_KR'); } - return \Faker\Factory::create($locale ?? 'ko_KR'); + return Factory::create($locale ?? 'ko_KR'); } } diff --git a/app/Support/UmaskHelper.php b/app/Support/UmaskHelper.php index 2a1e937a..8a533362 100644 --- a/app/Support/UmaskHelper.php +++ b/app/Support/UmaskHelper.php @@ -37,7 +37,7 @@ class UmaskHelper * 그룹 공유 친화 umask(0002) 로 조정한다. 조건이 맞지 않으면 no-op. * * @param string $storagePath 판정 기준 디렉토리 (일반적으로 `base_path('storage')`) - * @return int|null 새 umask 로 전환한 경우 이전 umask 값. 조건 불충족 시 null. + * @return int|null 새 umask 로 전환한 경우 이전 umask 값. 조건 불충족 시 null. */ public static function configureForGroupSharing(string $storagePath): ?int {