You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Mar 1, 2023. It is now read-only.
If you only want to run `php-cs-fixer` on one PHP version, update your build matrix and use a condition:
78
-
79
-
```yml
80
-
matrix:
81
-
include:
82
-
- php: 5.6
83
-
env: CHECK_CS=true
84
-
- php: 7.0
85
-
86
-
script:
87
-
- if [[ "$CHECK_CS" == "true" ]]; then vendor/bin/php-cs-fixer fix --config-file=.php_cs --verbose --diff --dry-run; fi
88
-
```
77
+
### StyleCi
78
+
If you using (StyleCi)[https://styleci.io] just copy (.styleci.yml)[.styleci.yml] to you repository and enable styleci. Or copy this setting to StyleCi
79
+
80
+
~~~yml
81
+
preset: psr2
82
+
83
+
risky: false
84
+
85
+
linting: true
86
+
87
+
enabled:
88
+
- concat_with_spaces
89
+
- function_typehint_space
90
+
- newline_after_open_tag
91
+
- no_blank_lines_before_namespace
92
+
- ordered_use
93
+
- phpdoc_order
94
+
- short_array_syntax
95
+
- alias_functions
96
+
- array_element_no_space_before_comma
97
+
- array_element_white_space_after_comma
98
+
- double_arrow_multiline_whitespaces
99
+
- duplicate_semicolon
100
+
- empty_return
101
+
- extra_empty_lines
102
+
- include
103
+
- list_commas
104
+
- method_separation
105
+
- multiline_array_trailing_comma
106
+
- namespace_no_leading_whitespace
107
+
- new_with_braces
108
+
- no_blank_lines_after_class_opening
109
+
- no_empty_lines_after_phpdocs
110
+
- object_operator
111
+
- operators_spaces
112
+
- phpdoc_align
113
+
- phpdoc_indent
114
+
- phpdoc_inline_tag
115
+
- phpdoc_no_access
116
+
- phpdoc_no_empty_return
117
+
- phpdoc_no_package
118
+
- phpdoc_scalar
119
+
- phpdoc_separation
120
+
- phpdoc_to_comment
121
+
- phpdoc_trim
122
+
- phpdoc_types
123
+
- phpdoc_type_to_var
124
+
- phpdoc_var_without_name
125
+
- remove_leading_slash_use
126
+
- remove_lines_between_uses
127
+
- return
128
+
- short_bool_cast
129
+
- single_array_no_trailing_comma
130
+
- single_quote
131
+
- spaces_after_semicolon
132
+
- spaces_before_semicolon
133
+
- spaces_cast
134
+
- standardize_not_equal
135
+
- ternary_spaces
136
+
- trim_array_spaces
137
+
- unneeded_control_parentheses
138
+
- whitespacy_lines
139
+
140
+
finder:
141
+
exclude:
142
+
- "build"
143
+
- "vendor"
144
+
- "tests"
145
+
name:
146
+
- "*.php"
147
+
~~~
89
148
90
149
## Change log
91
150
@@ -103,7 +162,7 @@ Please see [CONTRIBUTING](CONTRIBUTING.md) for details.
0 commit comments