diff --git a/.gemini/GEMINI.md b/.gemini/GEMINI.md index 59a33e44..9161c9f4 100644 --- a/.gemini/GEMINI.md +++ b/.gemini/GEMINI.md @@ -16,7 +16,7 @@ This is the main FlightPHP core library for building fast, simple, and extensibl - Run tests: `composer test` (uses phpunit/phpunit and spatie/phpunit-watcher) - Run test server: `composer test-server` or `composer test-server-v2` - Lint code: `composer lint` (uses phpstan/phpstan, level 6) -- Beautify code: `composer beautify` (uses squizlabs/php_codesniffer, PSR1) +- Format code: `composer format` (uses squizlabs/php_codesniffer, PSR1) - Check code style: `composer phpcs` - Test coverage: `composer test-coverage` diff --git a/.github/copilot-instructions.md b/.github/copilot-instructions.md index 59a33e44..9161c9f4 100644 --- a/.github/copilot-instructions.md +++ b/.github/copilot-instructions.md @@ -16,7 +16,7 @@ This is the main FlightPHP core library for building fast, simple, and extensibl - Run tests: `composer test` (uses phpunit/phpunit and spatie/phpunit-watcher) - Run test server: `composer test-server` or `composer test-server-v2` - Lint code: `composer lint` (uses phpstan/phpstan, level 6) -- Beautify code: `composer beautify` (uses squizlabs/php_codesniffer, PSR1) +- Format code: `composer format` (uses squizlabs/php_codesniffer, PSR1) - Check code style: `composer phpcs` - Test coverage: `composer test-coverage` diff --git a/composer.json b/composer.json index 70a09ca5..f0e1da10 100644 --- a/composer.json +++ b/composer.json @@ -100,7 +100,7 @@ "echo \"Performance Tests Completed.\"" ], "lint": "phpstan --no-progress --memory-limit=256M", - "beautify": "phpcbf", + "format": "phpcbf -q", "phpcs": "phpcs", "post-install-cmd": [ "@php -r \"if (!file_exists('phpcs.xml')) copy('phpcs.xml.dist', 'phpcs.xml');\"", diff --git a/phpcs.xml.dist b/phpcs.xml.dist index 2c95c3e8..6694874d 100644 --- a/phpcs.xml.dist +++ b/phpcs.xml.dist @@ -2,26 +2,10 @@ - - - - - - - - - - - - - - - - - - - index.php flight tests + + + diff --git a/tests/SimplePdoTest.php b/tests/SimplePdoTest.php index 4e97dd78..08f8e164 100644 --- a/tests/SimplePdoTest.php +++ b/tests/SimplePdoTest.php @@ -88,7 +88,7 @@ public function testRunQueryWithParams(): void public function testRunQueryWithoutParamsWithMaxQueryMetrics(): void { - $db = new class( + $db = new class ( 'sqlite::memory:', null, null, diff --git a/tests/named-arguments/FlightTest.php b/tests/named-arguments/FlightTest.php index 6593450d..0d5abff1 100644 --- a/tests/named-arguments/FlightTest.php +++ b/tests/named-arguments/FlightTest.php @@ -75,7 +75,7 @@ public function testRegisterContainer(): void { $dateTime = new DateTimeImmutable(); - $controller = new class($dateTime) { + $controller = new class ($dateTime) { public function __construct(private DateTimeImmutable $dateTime) { //