Skip to content

Commit 448ead3

Browse files
authored
Merge pull request #1074 from cakephp/3.x-fix-cs
cleanup CS
2 parents 6033e97 + 5e72791 commit 448ead3

File tree

5 files changed

+12
-3
lines changed

5 files changed

+12
-3
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,11 @@
44
vendor/
55
/.idea/
66
/.phpunit.cache
7+
/.phpunit.result.cache
8+
.phpcs.cache
79
tests/test_app/App/Model/Table/CommentsTable.php
810
tests/test_app/App/Controller/ProductVersionsController.php
911
tests/test_app/App/Controller/ProductsController.php
1012
tests/test_app/Plugin/TestBake/
1113
tests/test_app/tests/
1214
clover.xml
13-
/.phpunit.result.cache

composer.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@
6565
"@test",
6666
"@cs-check"
6767
],
68-
"cs-check": "phpcs --parallel=16 -p src/ tests/",
69-
"cs-fix": "phpcbf --parallel=16 -p src/ tests/",
68+
"cs-check": "phpcs",
69+
"cs-fix": "phpcbf",
7070
"phpstan": "tools/phpstan analyse",
7171
"stan": "@phpstan",
7272
"stan-baseline": "tools/phpstan --generate-baseline",

phpcs.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
<file>tests/</file>
77

88
<rule ref="CakePHP" />
9+
<arg value="nps"/>
10+
<arg name="colors"/>
11+
<arg name="parallel" value="4"/>
12+
<arg name="cache" value=".phpcs.cache"/>
913

1014
<exclude-pattern>*/comparisons/*</exclude-pattern>
1115
<exclude-pattern>tests/test_app/*</exclude-pattern>

src/View/Helper/BakeHelper.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@
2121

2222
/**
2323
* Bake helper
24+
*
25+
* @extends \Cake\View\Helper<\Cake\View\View>
2426
*/
2527
class BakeHelper extends Helper
2628
{

src/View/Helper/DocBlockHelper.php

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@
1313

1414
/**
1515
* DocBlock helper
16+
*
17+
* @extends \Cake\View\Helper<\Cake\View\View>
1618
*/
1719
class DocBlockHelper extends Helper
1820
{

0 commit comments

Comments
 (0)