From 62c012ba96cade37fd5e209e7dcb93e1ed085ae1 Mon Sep 17 00:00:00 2001 From: Korben Date: Thu, 2 May 2024 19:20:14 +0200 Subject: [PATCH] update dependencies --- composer.json | 3 ++- src/Compilers/CreateCompiler.php | 3 +++ src/Helpers/IndexAssertions.php | 3 +++ src/Helpers/TableAssertions.php | 3 +++ src/Helpers/ViewAssertions.php | 3 +++ src/Schema/Blueprint.php | 15 +++++++++++++++ 6 files changed, 29 insertions(+), 1 deletion(-) diff --git a/composer.json b/composer.json index 709aa8d..e71da3a 100644 --- a/composer.json +++ b/composer.json @@ -43,7 +43,8 @@ "orchestra/testbench": "^9.0", "php-coveralls/php-coveralls": "^2.7", "codeception/codeception": "^5.0", - "phpunit/phpunit": "^11.0" + "phpunit/phpunit": "^11.0", + "squizlabs/php_codesniffer": "4.0.x-dev" }, "scripts": { "lint": [ diff --git a/src/Compilers/CreateCompiler.php b/src/Compilers/CreateCompiler.php index 1e6c3dc..3bd655a 100644 --- a/src/Compilers/CreateCompiler.php +++ b/src/Compilers/CreateCompiler.php @@ -10,6 +10,9 @@ class CreateCompiler { + /** + * @codeCoverageIgnore + */ public static function compile(Grammar $grammar, Blueprint $blueprint, array $columns, array $commands = []): string { $compiledCommand = sprintf( diff --git a/src/Helpers/IndexAssertions.php b/src/Helpers/IndexAssertions.php index 5ceb153..a89922c 100644 --- a/src/Helpers/IndexAssertions.php +++ b/src/Helpers/IndexAssertions.php @@ -6,6 +6,9 @@ use Illuminate\Support\Facades\DB; +/** + * @codeCoverageIgnore + */ trait IndexAssertions { abstract public static function assertNotNull($actual, string $message = ''): void; diff --git a/src/Helpers/TableAssertions.php b/src/Helpers/TableAssertions.php index 2438bab..6b4b81b 100644 --- a/src/Helpers/TableAssertions.php +++ b/src/Helpers/TableAssertions.php @@ -6,6 +6,9 @@ use Illuminate\Support\Facades\Schema; +/** + * @codeCoverageIgnore + */ trait TableAssertions { abstract public static function assertSame($expected, $actual, string $message = ''): void; diff --git a/src/Helpers/ViewAssertions.php b/src/Helpers/ViewAssertions.php index 6b4f1ed..9873f74 100644 --- a/src/Helpers/ViewAssertions.php +++ b/src/Helpers/ViewAssertions.php @@ -6,6 +6,9 @@ use Illuminate\Support\Facades\Schema; +/** + * @codeCoverageIgnore + */ trait ViewAssertions { abstract public static function assertSame($expected, $actual, string $message = ''): void; diff --git a/src/Schema/Blueprint.php b/src/Schema/Blueprint.php index 2fc5a88..712ae25 100644 --- a/src/Schema/Blueprint.php +++ b/src/Schema/Blueprint.php @@ -40,6 +40,7 @@ public function detachPartition(string $partition): void } /** + * @codeCoverageIgnore * @return LikeDefinition|Fluent */ public function like(string $table): Fluent @@ -47,6 +48,10 @@ public function like(string $table): Fluent return $this->addCommand('like', compact('table')); } + /** + * @codeCoverageIgnore + * @return Fluent + */ public function ifNotExists(): Fluent { return $this->addCommand('ifNotExists'); @@ -110,6 +115,9 @@ public function dropCheck($index): Fluent return $this->dropIndexCommand('dropUnique', 'chk', $index); } + /** + * @codeCoverageIgnore + */ public function hasIndex($index, bool $unique = false): bool { if (is_array($index)) { @@ -120,6 +128,7 @@ public function hasIndex($index, bool $unique = false): bool } /** + * @codeCoverageIgnore * @return ViewDefinition|Fluent */ public function createView(string $view, string $select, bool $materialize = false): Fluent @@ -127,6 +136,9 @@ public function createView(string $view, string $select, bool $materialize = fal return $this->addCommand('createView', compact('view', 'select', 'materialize')); } + /** + * @codeCoverageIgnore + */ public function dropView(string $view): Fluent { return $this->addCommand('dropView', compact('view')); @@ -166,6 +178,9 @@ public function daterange(string $column): Fluent return $this->addColumn(DateRangeType::TYPE_NAME, $column); } + /** + * @codeCoverageIgnore + */ protected function getSchemaManager() { $connection = Schema::getConnection();