Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -33,8 +33,8 @@ composer global require dragon-code/codestyler
After installing the dependency, add a file copy command to the `scripts.post-update-cmd` section.
This will automatically copy the `pint.json` file to the project root.

When adding the command, replace `8.4` with the minimum PHP version your application works with.
Available presets: `8.2`, `8.3` and `8.4`.
When adding the command, replace `8.5` with the minimum PHP version your application works with.
Available presets: `8.2`, `8.3`, `8.4` and `8.5.

You can also add copying the `.editorconfig` file to help the IDE and calling normalize the `composer.json` file
and `biome.json` file for [Biome Linter](https://biomejs.dev):
Expand All @@ -43,7 +43,7 @@ and `biome.json` file for [Biome Linter](https://biomejs.dev):
{
"scripts": {
"post-update-cmd": [
"vendor/bin/codestyle pint 8.4",
"vendor/bin/codestyle pint 8.5",
"vendor/bin/codestyle rector laravel",
"vendor/bin/codestyle editorconfig",
"vendor/bin/codestyle npm",
Expand All @@ -59,7 +59,7 @@ When using a globally established dependence, the call must be replaced with the
{
"scripts": {
"post-update-cmd": [
"codestyle pint 8.4",
"codestyle pint 8.5",
"codestyle rector laravel",
"codestyle editorconfig",
"codestyle npm",
Expand Down Expand Up @@ -213,7 +213,7 @@ After completing all the steps, the `composer.json` file will have the following
},
"scripts": {
"post-update-cmd": [
"vendor/bin/codestyle pint 8.4",
"vendor/bin/codestyle pint 8.5",
"vendor/bin/codestyle rector laravel",
"vendor/bin/codestyle editorconfig",
"vendor/bin/codestyle npm",
Expand Down
10 changes: 5 additions & 5 deletions composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@
"require": {
"php": "^8.2",
"ext-json": "*",
"driftingly/rector-laravel": "^2.1",
"ergebnis/composer-normalize": "^2.48",
"laravel/pint": "^1.24",
"symfony/console": "^7.3"
"driftingly/rector-laravel": "^2.1.8",
"ergebnis/composer-normalize": "^2.48.2",
"laravel/pint": "^1.26",
"symfony/console": "^7.4.1"
},
"require-dev": {
"symfony/var-dumper": "^7.3"
"symfony/var-dumper": "^7.4"
},
"minimum-stability": "stable",
"prefer-stable": true,
Expand Down
89 changes: 89 additions & 0 deletions presets/pint/8.5.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,89 @@
{
"preset": "laravel",
"exclude": [
"tests/Fixtures"
],
"rules": {
"@PHP71Migration": true,
"@PHP73Migration": true,
"@PHP74Migration": true,
"@PHP80Migration": true,
"@PHP81Migration": true,
"@PHP82Migration": true,
"@PHP83Migration": true,
"@PHP84Migration": true,
"@PHP85Migration": true,
"concat_space": {
"spacing": "one"
},
"blank_line_before_statement": {
"statements": [
"declare",
"phpdoc",
"continue",
"return"
]
},
"class_attributes_separation": {
"elements": {
"case": "none",
"const": "none",
"method": "one",
"property": "one",
"trait_import": "none"
}
},
"class_definition": {
"multi_line_extends_each_single_line": true,
"single_item_single_line": true,
"single_line": true,
"space_before_parenthesis": true
},
"combine_consecutive_issets": true,
"combine_consecutive_unsets": true,
"braces_position": {
"allow_single_line_anonymous_functions": true,
"allow_single_line_empty_anonymous_classes": true,
"anonymous_classes_opening_brace": "same_line"
},
"escape_implicit_backslashes": {
"double_quoted": true,
"heredoc_syntax": true,
"single_quoted": false
},
"global_namespace_import": {
"import_classes": true,
"import_constants": true,
"import_functions": true
},
"multiline_comment_opening_closing": true,
"no_superfluous_elseif": true,
"no_useless_else": true,
"operator_linebreak": {
"only_booleans": false
},
"ordered_types": {
"null_adjustment": "always_last",
"sort_algorithm": "alpha"
},
"phpdoc_line_span": {
"const": "single",
"method": "multi",
"property": "single"
},
"return_assignment": true,
"simplified_if_return": true,
"phpdoc_param_order": true,
"fully_qualified_strict_types": true,
"declare_strict_types": true,
"types_spaces": {
"space_multiple_catch": "none"
},
"binary_operator_spaces": {
"default": "align_single_space_minimal"
},
"php_unit_method_casing": {
"case": "camel_case"
}
}
}