Skip to content

Commit 84f798e

Browse files
committed
Doctrine3: Code-style fixes
1 parent ee6ea9d commit 84f798e

File tree

5 files changed

+15
-5
lines changed

5 files changed

+15
-5
lines changed

DEVELOP.rst

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -93,11 +93,17 @@ Running the Tests
9393
# Run test suite
9494
composer run test
9595

96-
# Run code style checks
97-
composer run style
96+
97+
Invoke code style checks
98+
========================
99+
100+
::
98101

99102
# Run code style checks
100-
./vendor/bin/phpcs ./src
103+
composer run check-style
104+
105+
# Some code style quirks can be automatically fixed
106+
composer run fix-style
101107

102108

103109
****************************

composer.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@
4343
},
4444
"scripts": {
4545
"test": "XDEBUG_MODE=coverage phpunit --coverage-clover build/logs/clover.xml",
46-
"check-style": "phpcs",
46+
"check-style": "phpcs -s",
4747
"fix-style": "phpcbf"
4848
}
4949
}

src/Crate/DBAL/Driver/PDOCrate/PDOConnection.php

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -88,5 +88,4 @@ public function exec($sql): int
8888
throw Exception::new($exception);
8989
}
9090
}
91-
9291
}

src/Crate/DBAL/Platforms/CratePlatform.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -433,6 +433,7 @@ public function getTimeTypeDeclarationSQL(array $fieldDeclaration)
433433
/**
434434
* {@inheritDoc}
435435
*/
436+
// phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore
436437
protected function _getCommonIntegerTypeDeclarationSQL(array $columnDef)
437438
{
438439
return '';
@@ -671,6 +672,7 @@ public function getCreateTableSQL(Table $table, $createFlags = self::CREATE_INDE
671672
/**
672673
* {@inheritDoc}
673674
*/
675+
// phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore
674676
protected function _getCreateTableSQL($name, array $columns, array $options = array())
675677
{
676678
$columnListSql = $this->getColumnDeclarationListSQL($columns);

src/Crate/DBAL/Schema/CrateSchemaManager.php

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,7 @@ class CrateSchemaManager extends AbstractSchemaManager
3232
* {@inheritdoc}
3333
*
3434
*/
35+
// phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore
3536
protected function _getPortableTableIndexesList($tableIndexes, $tableName = null)
3637
{
3738
$buffer = [];
@@ -51,6 +52,7 @@ protected function _getPortableTableIndexesList($tableIndexes, $tableName = null
5152
/**
5253
* {@inheritDoc}
5354
*/
55+
// phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore
5456
protected function _getPortableTableColumnDefinition($tableColumn)
5557
{
5658
$tableColumn = array_change_key_case($tableColumn, CASE_LOWER);
@@ -83,6 +85,7 @@ protected function _getPortableTableColumnDefinition($tableColumn)
8385
/**
8486
* {@inheritDoc}
8587
*/
88+
// phpcs:ignore PSR2.Methods.MethodDeclaration.Underscore
8689
protected function _getPortableTablesList($tables)
8790
{
8891
$tableNames = array();

0 commit comments

Comments
 (0)