Skip to content

Commit bd91091

Browse files
Add 8.5 preset for Laravel Pint and update dependencies in composer.json
1 parent 0c1814b commit bd91091

3 files changed

Lines changed: 99 additions & 10 deletions

File tree

README.md

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -33,8 +33,8 @@ composer global require dragon-code/codestyler
3333
After installing the dependency, add a file copy command to the `scripts.post-update-cmd` section.
3434
This will automatically copy the `pint.json` file to the project root.
3535

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

3939
You can also add copying the `.editorconfig` file to help the IDE and calling normalize the `composer.json` file
4040
and `biome.json` file for [Biome Linter](https://biomejs.dev):
@@ -43,7 +43,7 @@ and `biome.json` file for [Biome Linter](https://biomejs.dev):
4343
{
4444
"scripts": {
4545
"post-update-cmd": [
46-
"vendor/bin/codestyle pint 8.4",
46+
"vendor/bin/codestyle pint 8.5",
4747
"vendor/bin/codestyle rector laravel",
4848
"vendor/bin/codestyle editorconfig",
4949
"vendor/bin/codestyle npm",
@@ -59,7 +59,7 @@ When using a globally established dependence, the call must be replaced with the
5959
{
6060
"scripts": {
6161
"post-update-cmd": [
62-
"codestyle pint 8.4",
62+
"codestyle pint 8.5",
6363
"codestyle rector laravel",
6464
"codestyle editorconfig",
6565
"codestyle npm",
@@ -213,7 +213,7 @@ After completing all the steps, the `composer.json` file will have the following
213213
},
214214
"scripts": {
215215
"post-update-cmd": [
216-
"vendor/bin/codestyle pint 8.4",
216+
"vendor/bin/codestyle pint 8.5",
217217
"vendor/bin/codestyle rector laravel",
218218
"vendor/bin/codestyle editorconfig",
219219
"vendor/bin/codestyle npm",

composer.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -43,13 +43,13 @@
4343
"require": {
4444
"php": "^8.2",
4545
"ext-json": "*",
46-
"driftingly/rector-laravel": "^2.1",
47-
"ergebnis/composer-normalize": "^2.48",
48-
"laravel/pint": "^1.24",
49-
"symfony/console": "^7.3"
46+
"driftingly/rector-laravel": "^2.1.8",
47+
"ergebnis/composer-normalize": "^2.48.2",
48+
"laravel/pint": "^1.26",
49+
"symfony/console": "^7.4.1"
5050
},
5151
"require-dev": {
52-
"symfony/var-dumper": "^7.3"
52+
"symfony/var-dumper": "^7.4"
5353
},
5454
"minimum-stability": "stable",
5555
"prefer-stable": true,

presets/pint/8.5.json

Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
{
2+
"preset": "laravel",
3+
"exclude": [
4+
"tests/Fixtures"
5+
],
6+
"rules": {
7+
"@PHP71Migration": true,
8+
"@PHP73Migration": true,
9+
"@PHP74Migration": true,
10+
"@PHP80Migration": true,
11+
"@PHP81Migration": true,
12+
"@PHP82Migration": true,
13+
"@PHP83Migration": true,
14+
"@PHP84Migration": true,
15+
"@PHP85Migration": true,
16+
"concat_space": {
17+
"spacing": "one"
18+
},
19+
"blank_line_before_statement": {
20+
"statements": [
21+
"declare",
22+
"phpdoc",
23+
"continue",
24+
"return"
25+
]
26+
},
27+
"class_attributes_separation": {
28+
"elements": {
29+
"case": "none",
30+
"const": "none",
31+
"method": "one",
32+
"property": "one",
33+
"trait_import": "none"
34+
}
35+
},
36+
"class_definition": {
37+
"multi_line_extends_each_single_line": true,
38+
"single_item_single_line": true,
39+
"single_line": true,
40+
"space_before_parenthesis": true
41+
},
42+
"combine_consecutive_issets": true,
43+
"combine_consecutive_unsets": true,
44+
"braces_position": {
45+
"allow_single_line_anonymous_functions": true,
46+
"allow_single_line_empty_anonymous_classes": true,
47+
"anonymous_classes_opening_brace": "same_line"
48+
},
49+
"escape_implicit_backslashes": {
50+
"double_quoted": true,
51+
"heredoc_syntax": true,
52+
"single_quoted": false
53+
},
54+
"global_namespace_import": {
55+
"import_classes": true,
56+
"import_constants": true,
57+
"import_functions": true
58+
},
59+
"multiline_comment_opening_closing": true,
60+
"no_superfluous_elseif": true,
61+
"no_useless_else": true,
62+
"operator_linebreak": {
63+
"only_booleans": false
64+
},
65+
"ordered_types": {
66+
"null_adjustment": "always_last",
67+
"sort_algorithm": "alpha"
68+
},
69+
"phpdoc_line_span": {
70+
"const": "single",
71+
"method": "multi",
72+
"property": "single"
73+
},
74+
"return_assignment": true,
75+
"simplified_if_return": true,
76+
"phpdoc_param_order": true,
77+
"fully_qualified_strict_types": true,
78+
"declare_strict_types": true,
79+
"types_spaces": {
80+
"space_multiple_catch": "none"
81+
},
82+
"binary_operator_spaces": {
83+
"default": "align_single_space_minimal"
84+
},
85+
"php_unit_method_casing": {
86+
"case": "camel_case"
87+
}
88+
}
89+
}

0 commit comments

Comments
 (0)