Skip to content

Commit

Permalink
Merge pull request #37 from nextcloud/feat/type_declaration_spaces
Browse files Browse the repository at this point in the history
style: add type_declaration_spaces
  • Loading branch information
ChristophWurst authored Oct 14, 2024
2 parents e88acb0 + a5b23c5 commit 9c719c4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 0 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
# Changelog
All notable changes to this project will be documented in this file.

## 1.3.2 - 2024-10-14
### Added
* `type_declaration_spaces`: A single space between typehint and variable name

## 1.3.1 - 2024-09-19
### Fixed
* Removed misbehaving `ErickSkrauch/blank_line_before_return` and `ErickSkrauch/line_break_after_statements` rules
Expand Down
1 change: 1 addition & 0 deletions src/Config.php
Original file line number Diff line number Diff line change
Expand Up @@ -73,6 +73,7 @@ public function getRules() : array {
'switch_case_space' => true,
'trailing_comma_in_multiline' => ['elements' => ['parameters']],
'types_spaces' => ['space' => 'none', 'space_multiple_catch' => 'none'],
'type_declaration_spaces' => ['elements' => ['function', 'property']],
'visibility_required' => [
'elements' => ['property', 'method', 'const']
],
Expand Down

0 comments on commit 9c719c4

Please sign in to comment.