Skip to content

Commit 221c207

Browse files
committed
Adding PHPCS in require-dev, and a symlink under /bin. Plus, adding scaffolding code for having a DDD-ish project structure
1 parent 6c0117a commit 221c207

File tree

12 files changed

+69
-3
lines changed

12 files changed

+69
-3
lines changed

bin/phpcs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
../vendor/bin/phpcs

composer.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,8 @@
1515
"symfony/browser-kit": "^4.0",
1616
"symfony/css-selector": "^4.0",
1717
"symfony/dotenv": "^4.0",
18-
"symfony/phpunit-bridge": "^4.0"
18+
"symfony/phpunit-bridge": "^4.0",
19+
"squizlabs/php_codesniffer": "3.*"
1920
},
2021
"config": {
2122
"preferred-install": {

composer.lock

Lines changed: 53 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpcs.xml

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<?xml version="1.0"?>
2+
<ruleset name="PSR2_Standard">
3+
<description>A PSR2 coding standard.</description>
4+
5+
<file>src</file>
6+
7+
<rule ref="PSR2" />
8+
9+
<exclude-pattern>*/tests/*</exclude-pattern>
10+
</ruleset>

src/Entity/.gitignore

Whitespace-only changes.

src/Repository/.gitignore

Whitespace-only changes.

src/Service/Application/.gitignore

Whitespace-only changes.

src/Service/Domain/.gitignore

Whitespace-only changes.

src/Service/Infrastructure/.gitignore

Whitespace-only changes.

src/UseCase/.gitignore

Whitespace-only changes.

0 commit comments

Comments
 (0)