1
0
mirror of https://github.com/Intervention/image.git synced 2025-08-19 12:11:26 +02:00

chore: Added PHPCS and config

This commit is contained in:
Sibin Grasic
2024-01-17 22:33:40 +01:00
parent 5f7b98772a
commit 487b176201
3 changed files with 33 additions and 1 deletions

14
.editorconfig Normal file
View File

@@ -0,0 +1,14 @@
# editorconfig.org
root = true
[*]
indent_style = space
indent_size = 2
end_of_line = lf
charset = utf-8
trim_trailing_whitespace = true
insert_final_newline = true
[*.php]
indent_size = 4

View File

@@ -19,7 +19,9 @@
"require-dev": {
"phpunit/phpunit": "^9",
"mockery/mockery": "^1.6",
"phpstan/phpstan": "^1"
"phpstan/phpstan": "^1",
"dealerdirect/phpcodesniffer-composer-installer": "^1.0",
"squizlabs/php_codesniffer": "^3.8"
},
"suggest": {
"ext-exif": "Recommended to be able to read EXIF data properly."
@@ -34,5 +36,10 @@
"psr-4": {
"Intervention\\Image\\Tests\\": "tests"
}
},
"config": {
"allow-plugins": {
"dealerdirect/phpcodesniffer-composer-installer": true
}
}
}

11
phpcs.xml Normal file
View File

@@ -0,0 +1,11 @@
<?xml version="1.0"?>
<ruleset name="Intervention/image">
<rule ref="PSR12"/>
<rule ref="Generic.Files.LineLength">
<severity>0</severity>
</rule>
<file>src/</file>
</ruleset>