|
@@ -110,7 +110,7 @@ discard block |
|
|
block discarded – undo |
|
110
|
110
|
// Function defined by PHP should be called using the correct casing. |
|
111
|
111
|
'native_function_casing' => true, |
|
112
|
112
|
// Add leading `\` before function invocation to speed up resolving. |
|
113
|
|
- 'native_function_invocation' => ['include'=>['@all','trans']], |
|
|
113
|
+ 'native_function_invocation' => ['include'=>['@all', 'trans']], |
|
114
|
114
|
// Native type hints for functions should use the correct case. |
|
115
|
115
|
'native_type_declaration_casing' => true, |
|
116
|
116
|
// All instances created with new keyword must be followed by braces. |
|
@@ -190,7 +190,7 @@ discard block |
|
|
block discarded – undo |
|
190
|
190
|
// There should not be space before or after object operators `->` and `?->`. |
|
191
|
191
|
'object_operator_without_whitespace' => true, |
|
192
|
192
|
// Orders the elements of classes/interfaces/traits. |
|
193
|
|
- 'ordered_class_elements' => ['order'=>['use_trait','constant_public','constant_protected','constant_private','property_public','property_protected','property_private']], |
|
|
193
|
+ 'ordered_class_elements' => ['order'=>['use_trait', 'constant_public', 'constant_protected', 'constant_private', 'property_public', 'property_protected', 'property_private']], |
|
194
|
194
|
// Ordering `use` statements. |
|
195
|
195
|
'ordered_imports' => true, |
|
196
|
196
|
// Orders the interfaces in an `implements` or `interface extends` clause. |