Skip to content

Commit ab6e5c2

Browse files
github-actionsgithub-actions[bot]
authored andcommitted
style(php-cs-fixer): fix coding standards
1 parent f4e17d3 commit ab6e5c2

File tree

3 files changed

+13
-14
lines changed

3 files changed

+13
-14
lines changed

src/Schema/AbstractColumn.php

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -623,6 +623,15 @@ public function isReadonlySchema(): bool
623623
return $this->getAttributes()['readonlySchema'] ?? false;
624624
}
625625

626+
/**
627+
* Get column comment.
628+
* An empty string will be returned if the feature is not supported by the driver.
629+
*/
630+
public function getComment(): string
631+
{
632+
return '';
633+
}
634+
626635
/**
627636
* Shortcut for AbstractColumn->type() method.
628637
*
@@ -785,13 +794,4 @@ protected function formatDatetime(
785794
default => $value,
786795
};
787796
}
788-
789-
/**
790-
* Get column comment.
791-
* An empty string will be returned if the feature is not supported by the driver.
792-
*/
793-
public function getComment(): string
794-
{
795-
return '';
796-
}
797797
}

tests/Database/Functional/Driver/Common/Schema/CommentTest.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
namespace Cycle\Database\Tests\Functional\Driver\Common\Schema;
66

77
// phpcs:ignore
8-
use Cycle\Database\ColumnInterface;
98
use Cycle\Database\Tests\Functional\Driver\Common\BaseTest;
109
use Cycle\Database\Tests\Utils\DontGenerateAttribute;
1110

tests/generate.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,11 +5,11 @@
55
use Cycle\Database\Tests\Utils\DontGenerateAttribute;
66
use Spiral\Tokenizer;
77

8-
error_reporting(E_ALL | E_STRICT);
9-
ini_set('display_errors', '1');
8+
\error_reporting(E_ALL | E_STRICT);
9+
\ini_set('display_errors', '1');
1010

1111
//Composer
12-
require_once dirname(__DIR__) . '/vendor/autoload.php';
12+
require_once \dirname(__DIR__) . '/vendor/autoload.php';
1313

1414
$tokenizer = new Tokenizer\Tokenizer(new Tokenizer\Config\TokenizerConfig([
1515
'directories' => [__DIR__ . '/Database/Functional/Driver/Common'],
@@ -67,7 +67,7 @@
6767
\str_replace('\\', '/', $class->getFileName()),
6868
);
6969

70-
$path = ltrim($path, '/');
70+
$path = \ltrim($path, '/');
7171

7272
foreach ($databases as $driver => $details) {
7373
$filename = $details['directory'] . $path;

0 commit comments

Comments
 (0)