From c183d8aad43ef8fd26e7ee5a2702bd7020e8a7ec Mon Sep 17 00:00:00 2001 From: Kirill Nesmeyanov Date: Sat, 12 Aug 2023 23:16:56 +0300 Subject: [PATCH] Apply PER codestyle for closures --- src/Header.php | 12 ++++-------- 1 file changed, 4 insertions(+), 8 deletions(-) diff --git a/src/Header.php b/src/Header.php index c69a1a2..03c21ea 100644 --- a/src/Header.php +++ b/src/Header.php @@ -84,14 +84,10 @@ public static function create( $version = Version::create($version->toString()); } - // phpcs:disable - $pre->define('_SDL_VERSION_GTE', static fn (string $expected): bool => - \version_compare($version->toString(), $expected, '>=') - ); - $pre->define('SDL_VERSION_ATLEAST', static fn (string $a, string $b, string $c): bool => - \version_compare($version->toString(), \sprintf('%d.%d.%d', $a, $b, $c), '>=') - ); - // phpcs:enable + $pre->define('_SDL_VERSION_GTE', static fn (string $expected): bool + => \version_compare($version->toString(), $expected, '>=')); + $pre->define('SDL_VERSION_ATLEAST', static fn (string $a, string $b, string $c): bool + => \version_compare($version->toString(), \sprintf('%d.%d.%d', $a, $b, $c), '>=')); $pre->define('WINAPI_FAMILY_PARTITION', static fn (string $type) => 0); $pre->define('DECLSPEC', '');