Skip to content

Commit 50c946b

Browse files
committed
Update php-cs-fixer to v3.52
1 parent 0bd9d59 commit 50c946b

File tree

3 files changed

+21
-11
lines changed

3 files changed

+21
-11
lines changed

.github/workflows/lint.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
uses: shivammathur/setup-php@v2
2929
with:
3030
php-version: 7.4
31-
tools: php-cs-fixer:3.51, cs2pr
31+
tools: php-cs-fixer:3.52, cs2pr
3232

3333
- uses: actions/cache@v4
3434
with:

.php-cs-fixer.dist.php

+9
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,15 @@
99
// Exclude PHP classes templates/generators, which are not valid PHP files
1010
->exclude('task/generator/skeleton/')
1111
->exclude('plugins/sfDoctrinePlugin/data/generator/')
12+
->exclude('plugins/sfDoctrinePlugin/test/functional/fixtures/')
13+
14+
// Exclude sub-modules folders
15+
->exclude('plugins/sfDoctrinePlugin/lib/vendor/doctrine')
16+
17+
// Exclude generated files (whole directories)
18+
->exclude('functional/fixtures/cache')
19+
->exclude('functional/fixtures/log')
20+
1221
// Exclude generated files (single files)
1322
->notPath('unit/config/fixtures/sfDefineEnvironmentConfigHandler/prefix_result.php')
1423
->notPath('unit/config/fixtures/sfFilterConfigHandler/result.php')

lib/plugins/sfDoctrinePlugin/lib/task/sfDoctrineBuildTask.class.php

+11-10
Original file line numberDiff line numberDiff line change
@@ -23,18 +23,19 @@ class sfDoctrineBuildTask extends sfDoctrineBaseTask
2323
public const BUILD_FILTERS = 4;
2424
public const BUILD_SQL = 8;
2525
public const BUILD_DB = 16;
26+
// model, forms
2627
public const OPTION_MODEL = 1;
2728
public const OPTION_FORMS = 3;
28-
public const // model, forms
29-
OPTION_FILTERS = 5;
30-
public const // model, filters
31-
OPTION_SQL = 9;
32-
public const // model, sql
33-
OPTION_DB = 25;
34-
public const // model, sql, db
35-
OPTION_ALL_CLASSES = 7;
36-
public const // model, forms, filters
37-
OPTION_ALL = 31; // model, forms, filters, sql, db
29+
// model, filters
30+
public const OPTION_FILTERS = 5;
31+
// model, sql
32+
public const OPTION_SQL = 9;
33+
// model, sql, db
34+
public const OPTION_DB = 25;
35+
// model, forms, filters
36+
public const OPTION_ALL_CLASSES = 7;
37+
// model, forms, filters, sql, db
38+
public const OPTION_ALL = 31;
3839

3940
/**
4041
* @see sfTask

0 commit comments

Comments
 (0)