Skip to content

Commit cec5a76

Browse files
committed
Merge branch '6.2' into 6.2-form-builder
# Conflicts: # files/lib/data/conversation/ConversationAction.class.php # files/lib/form/ConversationAddForm.class.php # files/lib/form/ConversationDraftEditForm.class.php
2 parents c4f1409 + 51c6b74 commit cec5a76

File tree

74 files changed

+1945
-359
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+1945
-359
lines changed

.github/workflows/codestyle.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ on:
44
push:
55
branches:
66
- master
7-
pull_request:
87

98
permissions:
109
contents: read

.gitignore

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,4 +50,7 @@ nbactions.xml
5050
*.tar.gz
5151

5252
# Node.js
53-
node_modules/
53+
node_modules/
54+
55+
# Composer
56+
/vendor/

.php-cs-fixer.dist.php

Lines changed: 14 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,13 @@
11
<?php
22
$finder = PhpCsFixer\Finder::create()
33
->exclude('*/vendor/*')
4-
->in(__DIR__.'/files/');
4+
->in(__DIR__ . '/files/');
55

66
return (new PhpCsFixer\Config())
77
->setRiskyAllowed(true)
88
->setRules([
9-
'@PER-CS2.0' => true,
10-
'single_line_empty_body' => false,
9+
'@PSR1' => true,
10+
'@PSR2' => true,
1111

1212
'array_push' => true,
1313
'backtick_to_shell_exec' => true,
@@ -25,18 +25,23 @@
2525

2626
'non_printable_character' => ['use_escape_sequences_in_strings' => true],
2727

28+
'lowercase_static_reference' => true,
2829
'magic_constant_casing' => true,
2930
'magic_method_casing' => true,
3031
'native_function_casing' => true,
3132
'native_function_type_declaration_casing' => true,
3233

3334
'cast_spaces' => ['space' => 'none'],
35+
'lowercase_cast' => true,
3436
'no_unset_cast' => true,
37+
'short_scalar_cast' => true,
3538

3639
'class_attributes_separation' => true,
40+
'no_blank_lines_after_class_opening' => true,
3741
'no_null_property_initialization' => true,
3842
'self_accessor' => true,
3943
'single_class_element_per_statement' => true,
44+
'single_trait_insert_per_statement' => true,
4045

4146
'no_empty_comment' => true,
4247
'single_line_comment_style' => ['comment_types' => ['hash']],
@@ -55,12 +60,15 @@
5560
'native_function_invocation' => ['include' => ['@internal']],
5661
'no_unreachable_default_argument_value' => true,
5762
'nullable_type_declaration_for_default_null_value' => true,
63+
'return_type_declaration' => true,
5864
'static_lambda' => true,
5965

6066
'fully_qualified_strict_types' => ['leading_backslash_in_global_namespace' => true],
67+
'no_leading_import_slash' => true,
6168
'no_unused_imports' => true,
6269
'ordered_imports' => true,
6370

71+
'declare_equal_normalize' => true,
6472
'dir_constant' => true,
6573
'explicit_indirect_variable' => true,
6674
'function_to_constant' => true,
@@ -71,6 +79,7 @@
7179

7280
'clean_namespace' => true,
7381
'no_leading_namespace_whitespace' => true,
82+
'single_blank_line_before_namespace' => true,
7483

7584
'no_homoglyph_names' => true,
7685

@@ -82,6 +91,7 @@
8291
'operator_linebreak' => true,
8392
'standardize_increment' => true,
8493
'standardize_not_equals' => true,
94+
'ternary_operator_spaces' => true,
8595
'ternary_to_elvis_operator' => true,
8696
'ternary_to_null_coalescing' => true,
8797
'unary_operator_spaces' => true,
@@ -102,6 +112,7 @@
102112

103113
'array_indentation' => true,
104114
'blank_line_before_statement' => ['statements' => ['return', 'exit']],
115+
'compact_nullable_typehint' => true,
105116
'method_chaining_indentation' => true,
106117
'no_extra_blank_lines' => ['tokens' => ['case', 'continue', 'curly_brace_block', 'default', 'extra', 'parenthesis_brace_block', 'square_brace_block', 'switch', 'throw', 'use']],
107118
'no_spaces_around_offset' => true,

.phpcs.xml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,7 @@
99
<arg value="p"/>
1010
<arg name="basepath" value="."/>
1111

12-
<rule ref="PSR12"/>
12+
<rule ref="PSR12">
13+
<exclude name="PSR1.Classes.ClassDeclaration.MultipleClasses"/>
14+
</rule>
1315
</ruleset>

composer.json

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
{
2+
"name": "woltlab/com.woltlab.wcf.conversation",
3+
"type": "project",
4+
"require-dev": {
5+
"phpstan/phpstan": "^2.1"
6+
},
7+
"require": {}
8+
}

composer.lock

Lines changed: 77 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

files/js/WoltLabSuite.Core.Conversation.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

files/js/WoltLabSuite.Core.Conversation.tiny.min.js

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

files/js/WoltLabSuite/Core/Conversation/Component/Label/Editor.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

files/js/WoltLabSuite/Core/Conversation/Component/Label/Manager.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)