Skip to content

Releases: nextcloud/coding-standard

v1.3.2

16 Oct 09:57
9c719c4
Compare
Choose a tag to compare

What's Changed

  • style: add type_declaration_spaces by @kesselb in #37

Full Changelog: v1.3.1...v1.3.2

v1.3.1

19 Sep 09:08
v1.3.1
e88acb0
Compare
Choose a tag to compare

Fixed

  • Removed misbehaving ErickSkrauch/blank_line_before_return and ErickSkrauch/line_break_after_statements rules

v1.3.0

18 Sep 15:54
v1.3.0
e2e6cb1
Compare
Choose a tag to compare

Changed

  • trailing_comma_in_multiline: Add a trailing comma to multline function parameters
  • 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

v1.2.3

23 Aug 14:33
bc9c53a
Compare
Choose a tag to compare

Changed

  • cast_spaces: No space between cast and variable

v1.2.2

23 Aug 12:04
81fec49
Compare
Choose a tag to compare

Added

  • cast_spaces: A single space between cast and variable
  • lowercase_cast: Cast should be written in lower case
  • method_chaining_indentation: Use the same indentation when changing methods
  • no_short_bool_cast: Short cast bool using double exclamation mark should not be used
  • phpdoc_align: All items of the given PHPDoc tags must be left-aligned
  • phpdoc_single_line_var_spacing: Single line @var PHPDoc should have proper spacing
  • phpdoc_var_annotation_correct_order: Enforce the correct order for phpdoc annotations
  • short_scalar_cast: (boolean) => (bool), (integer) => (int), ...
  • single_quote: Use single quotes for simple strings
  • types_spaces: No spaces around union and intersection type operators

v1.2.1

01 Feb 14:55
cf5f18d
Compare
Choose a tag to compare

1.2.1 - 2024-02-01

Fix

Full Changelog: v1.2.0...v1.2.1

v1.2.0

01 Feb 12:55
424cdd9
Compare
Choose a tag to compare

1.2.0 - 2024-02-01

Added

  • array_syntax: Force short syntax for array
  • list_syntax: Same for list
  • fully_qualified_strict_types: Remove namespace from classname when there is a use statement, and add missing backslash for global namespace
  • no_leading_import_slash: Remove leading slash from use statement
  • nullable_type_declaration_for_default_null_value: Add missing ? on type declaration for parameters defaulting to null. This will most likely be needed to avoid warnings in PHP 8.4.
  • yoda_style: forbid yoda style comparision. This replaces null === $a by $a === null.

What's Changed

  • Extend coding standard with new rules by @come-nc in #15

Full Changelog: v1.1.1...v1.2.0

v1.1.1

01 Jun 12:06
55def70
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.1.0...v1.1.1

v1.1.0

13 Apr 11:12
20efa30
Compare
Choose a tag to compare

What's Changed

New Contributors

Full Changelog: v1.0.0...v1.1.0

v1.0.0 – php-cs-fixer 3.x

10 Nov 08:46
f3d1f93
Compare
Choose a tag to compare

Major release because the old config needs to be adjusted.

See https://github.com/nextcloud/coding-standard#upgrade-from-v0x-to-v10 for instructions.