Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Batch of changes for package; Add Laravel 11 support #395

Merged
merged 16 commits into from
Apr 17, 2024
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Switch php_cs to laravel/pint
Oleksandr-Moik committed Mar 17, 2024
commit 836278b9244a61b4cf3e14bf80fa093eb6dfe50f
2 changes: 1 addition & 1 deletion .gitattributes
Original file line number Diff line number Diff line change
@@ -5,6 +5,6 @@
/.gitattributes export-ignore
/.gitignore export-ignore
/.gitbook.yaml export-ignore
/.php_cs export-ignore
/.styleci.yml export-ignore
/.phpunit.xml.dist export-ignore
/pint.json export-ignore
35 changes: 0 additions & 35 deletions .php_cs

This file was deleted.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@
}
},
"scripts": {
"csfix": "php-cs-fixer fix --using-cache=no",
"lint": "pint src/Translatable",
"test": "vendor/bin/phpunit",
"test-coverage": "vendor/bin/phpunit --coverage-html=build"
}
29 changes: 29 additions & 0 deletions pint.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,29 @@
{
"rules": {
"ordered_class_elements": {
"order": [
"use_trait",
"constant_public",
"constant_protected",
"constant_private",
"property_public",
"property_protected",
"property_private",
"construct",
"method_public_static",
"method_public",
"method_protected_static",
"method_protected",
"method_private_static",
"method_private",
"destruct",
"magic"
]
},
"yoda_style": {
"equal": false,
"identical": false,
"less_and_greater": null
}
}
}