Skip to content

Commit

Permalink
Merge pull request #33 from nextcloud/feat/concat_space_nullable_returns
Browse files Browse the repository at this point in the history
Add contact_space and nullable_type_declaration
  • Loading branch information
come-nc authored Sep 18, 2024
2 parents 67da46e + d150d95 commit 56441b3
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,8 @@ All notable changes to this project will be documented in this file.
* `MultilinePromotedPropertiesFixer`: Break promoted properties on multiple lines
* `ErickSkrauch/blank_line_before_return`: Add a blank line before each return
* `ErickSkrauch/line_break_after_statements`: Add a blank line after all control statements
* `concat_space`: Concatenation should be spaced
* `nullable_type_declaration`: Changes `DateTimeInterface|null` to `?DateTimeInterface`

## 1.2.3 - 2024-08-23
### Changed
Expand Down
2 changes: 2 additions & 0 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ public function getRules() : array {
'blank_line_after_namespace' => true,
'blank_line_after_opening_tag' => true,
'cast_spaces' => ['space' => 'none'],
'concat_space' => ['spacing' => 'one'],
'curly_braces_position' => [
'classes_opening_brace' => 'same_line',
'functions_opening_brace' => 'same_line',
Expand Down Expand Up @@ -56,6 +57,7 @@ public function getRules() : array {
'no_trailing_whitespace_in_comment' => true,
'no_unused_imports' => true,
'nullable_type_declaration_for_default_null_value' => true,
'nullable_type_declaration' => ['syntax' => 'question_mark'],
'ordered_imports' => [
'imports_order' => ['class', 'function', 'const'],
'sort_algorithm' => 'alpha'
Expand Down

0 comments on commit 56441b3

Please sign in to comment.