Skip to content

Commit

Permalink
Apply PER codestyle for closures
Browse files Browse the repository at this point in the history
  • Loading branch information
SerafimArts committed Aug 12, 2023
1 parent 829c3b1 commit c183d8a
Showing 1 changed file with 4 additions and 8 deletions.
12 changes: 4 additions & 8 deletions src/Header.php
Original file line number Diff line number Diff line change
Expand Up @@ -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', '');
Expand Down

0 comments on commit c183d8a

Please sign in to comment.