Skip to content

Commit

Permalink
update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
pvsaintpe committed May 2, 2024
1 parent b3222a2 commit 62c012b
Show file tree
Hide file tree
Showing 6 changed files with 29 additions and 1 deletion.
3 changes: 2 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": [
Expand Down
3 changes: 3 additions & 0 deletions src/Compilers/CreateCompiler.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,9 @@

class CreateCompiler
{
/**
* @codeCoverageIgnore
*/
public static function compile(Grammar $grammar, Blueprint $blueprint, array $columns, array $commands = []): string
{
$compiledCommand = sprintf(
Expand Down
3 changes: 3 additions & 0 deletions src/Helpers/IndexAssertions.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use Illuminate\Support\Facades\DB;

/**
* @codeCoverageIgnore
*/
trait IndexAssertions
{
abstract public static function assertNotNull($actual, string $message = ''): void;
Expand Down
3 changes: 3 additions & 0 deletions src/Helpers/TableAssertions.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use Illuminate\Support\Facades\Schema;

/**
* @codeCoverageIgnore
*/
trait TableAssertions
{
abstract public static function assertSame($expected, $actual, string $message = ''): void;
Expand Down
3 changes: 3 additions & 0 deletions src/Helpers/ViewAssertions.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@

use Illuminate\Support\Facades\Schema;

/**
* @codeCoverageIgnore
*/
trait ViewAssertions
{
abstract public static function assertSame($expected, $actual, string $message = ''): void;
Expand Down
15 changes: 15 additions & 0 deletions src/Schema/Blueprint.php
Original file line number Diff line number Diff line change
Expand Up @@ -40,13 +40,18 @@ public function detachPartition(string $partition): void
}

/**
* @codeCoverageIgnore
* @return LikeDefinition|Fluent
*/
public function like(string $table): Fluent
{
return $this->addCommand('like', compact('table'));
}

/**
* @codeCoverageIgnore
* @return Fluent
*/
public function ifNotExists(): Fluent
{
return $this->addCommand('ifNotExists');
Expand Down Expand Up @@ -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)) {
Expand All @@ -120,13 +128,17 @@ public function hasIndex($index, bool $unique = false): bool
}

/**
* @codeCoverageIgnore
* @return ViewDefinition|Fluent
*/
public function createView(string $view, string $select, bool $materialize = false): Fluent
{
return $this->addCommand('createView', compact('view', 'select', 'materialize'));
}

/**
* @codeCoverageIgnore
*/
public function dropView(string $view): Fluent
{
return $this->addCommand('dropView', compact('view'));
Expand Down Expand Up @@ -166,6 +178,9 @@ public function daterange(string $column): Fluent
return $this->addColumn(DateRangeType::TYPE_NAME, $column);
}

/**
* @codeCoverageIgnore
*/
protected function getSchemaManager()
{
$connection = Schema::getConnection();

Check failure on line 186 in src/Schema/Blueprint.php

View check run for this annotation

Scrutinizer / Inspection

src/Schema/Blueprint.php#L186

The method ``getConnection()`` does not exist on ``Illuminate\Support\Facades\Schema``.
Expand Down

0 comments on commit 62c012b

Please sign in to comment.