nextcloud/coding-standard
Nextcloud coding standards for the php cs fixer
v1.5.0
4.1M downloads/mo
#1357 most downloaded on Packagist
nextcloud/coding-standard
What this package is like to depend on
Last release 3 months ago
19 May 2026
Release timing varies
gaps range from 4 weeks to 1.4 years
Most releases are documented
notes for 14 of 19 stable releases
Nothing withdrawn
no release was ever pulled
6 years old
19 releases · first in 2020
1 release in the last 12 months
see the full history below
Release timeline
19 releases · Mar 2020 to May 2026Releases
latest 19-
v1.5.019 May 2026Release notes
Open source →What's Changed
- chore: Move from deprecated visibility_required to modifier_keywords by @come-nc in #51
- feat: Set precise rules for blank lines by @come-nc in #52
Full Changelog: v1.4.0...v1.5.0
Release notes
Open source →Added
blank_lines_before_namespace: Make sure a blank line precedes the namespace declarationno_extra_blank_lines: Remove extra blank lines where they are not needed to improve readability
-
v1.4.019 Jun 2025Release notes
Open source →What's Changed
- style: add operator_linebreak by @blizzz in #40
- build(deps): drop PHP 7.x for incompatiblity by @blizzz in #43
- chore: suggest package as dev dependency by @kesselb in #44
- style: enforce no_whitespace_in_blank_line by @kesselb in #45
- chore: update changelog by @kesselb in #46
New Contributors
Full Changelog: v1.3.2...v1.4.0
Release notes
Open source →Added
no_whitespace_in_blank_line: Remove trailing whitespace at the end of blank linesoperator_linebreak: Split conditional statements into multiple lines and place operator at the beginning
-
v1.3.214 Oct 2024Release notes
Open source →Added
type_declaration_spaces: A single space between typehint and variable name
-
v1.3.119 Sep 2024Release notes
Open source →Fixed
- Removed misbehaving
ErickSkrauch/blank_line_before_returnandErickSkrauch/line_break_after_statementsrules
Release notes
Open source →Fixed
- Removed misbehaving
ErickSkrauch/blank_line_before_returnandErickSkrauch/line_break_after_statementsrules
- Removed misbehaving
-
v1.3.018 Sep 2024Release notes
Open source →Changed
trailing_comma_in_multiline: Add a trailing comma to multline function parametersMultilinePromotedPropertiesFixer: Break promoted properties on multiple linesErickSkrauch/blank_line_before_return: Add a blank line before each returnErickSkrauch/line_break_after_statements: Add a blank line after all control statementsconcat_space: Concatenation should be spacednullable_type_declaration: ChangesDateTimeInterface|nullto?DateTimeInterface
Release notes
Open source →Changed
trailing_comma_in_multiline: Add a trailing comma to multline function parametersMultilinePromotedPropertiesFixer: Break promoted properties on multiple linesErickSkrauch/blank_line_before_return: Add a blank line before each returnErickSkrauch/line_break_after_statements: Add a blank line after all control statementsconcat_space: Concatenation should be spacednullable_type_declaration: ChangesDateTimeInterface|nullto?DateTimeInterface
-
v1.2.323 Aug 2024 -
v1.2.223 Aug 2024Release notes
Open source →Added
cast_spaces: A single space between cast and variablelowercase_cast: Cast should be written in lower casemethod_chaining_indentation: Use the same indentation when changing methodsno_short_bool_cast: Short cast bool using double exclamation mark should not be usedphpdoc_align: All items of the given PHPDoc tags must be left-alignedphpdoc_single_line_var_spacing: Single line@varPHPDoc should have proper spacingphpdoc_var_annotation_correct_order: Enforce the correct order for phpdoc annotationsshort_scalar_cast: (boolean) => (bool), (integer) => (int), ...single_quote: Use single quotes for simple stringstypes_spaces: No spaces around union and intersection type operators
Release notes
Open source →Added
cast_spaces: A single space between cast and variablelowercase_cast: Cast should be written in lower casemethod_chaining_indentation: Use the same indentation when changing methodsno_short_bool_cast: Short cast bool using double exclamation mark should not be usedphpdoc_align: All items of the given PHPDoc tags must be left-alignedphpdoc_single_line_var_spacing: Single line @var PHPDoc should have proper spacingphpdoc_var_annotation_correct_order: Enforce the correct order for phpdoc annotationsshort_scalar_cast: (boolean) => (bool), (integer) => (int), ...single_quote: Use single quotes for simple stringstypes_spaces: No spaces around union and intersection type operators
-
v1.2.101 Feb 2024Release notes
Open source →1.2.1 - 2024-02-01
Fix
- fix: Remove
fully_qualified_strict_typesagain by @nickvergessen in #16
Full Changelog: v1.2.0...v1.2.1
Release notes
Open source →Fix
- fix: Remove
fully_qualified_strict_typesagain by @nickvergessen in https://github.com/nextcloud/coding-standard/pull/16
- fix: Remove
-
v1.2.001 Feb 2024Release notes
Open source →1.2.0 - 2024-02-01
Added
array_syntax: Force short syntax for arraylist_syntax: Same for listfully_qualified_strict_types: Remove namespace from classname when there is ausestatement, and add missing backslash for global namespaceno_leading_import_slash: Remove leading slash fromusestatementnullable_type_declaration_for_default_null_value: Add missing?on type declaration for parameters defaulting tonull. This will most likely be needed to avoid warnings in PHP 8.4.yoda_style: forbid yoda style comparision. This replacesnull === $aby$a === null.
What's Changed
Full Changelog: v1.1.1...v1.2.0
Release notes
Open source →Added
array_syntax: Force short syntax for arraylist_syntax: Same for list- Removed in 1.2.1 due to issuesfully_qualified_strict_types: Remove namespace from classname when there is ausestatement, and add missing backslash for global namespaceno_leading_import_slash: Remove leading slash fromusestatementnullable_type_declaration_for_default_null_value: Add missing?on type declaration for parameters defaulting tonull. This will most likely be needed to avoid warnings in PHP 8.4.yoda_style: forbid yoda style comparision. This replacesnull === $aby$a === null.
-
v1.1.101 Jun 2023Release notes
Open source →Changed
- feat: use php-cs-fixer/shim by @kesselb in https://github.com/nextcloud/coding-standard/pull/13
-
v1.1.013 Apr 2023Release notes
Open source →Changed
- Order imports alphabetically by @come-nc in https://github.com/nextcloud/coding-standard/pull/10
- fix(rules): Replace deprecated braces rules by @nickvergessen in https://github.com/nextcloud/coding-standard/pull/12
-
v1.0.010 Nov 2021Release notes
Open source →Breaking change
- Update php-cs-fixer to 3.x
- See https://github.com/nextcloud/coding-standard#upgrade-from-v0x-to-v10 for instructions.
-
v0.5.011 Jan 2021Release notes
Open source →Added
- New rule: short list syntax
- php7.2 support (back, for apps that support Nextclod 20 - 21)
-
v0.4.014 Dec 2020Release notes
Open source →Added
- php8 support
- New rule: binary operators should be surrounded by a single space
Changed
- php-cs-fixer updated to the latest version
-
v0.3.010 Apr 2020Nothing published for this version
-
v0.2.009 Apr 2020Nothing published for this version
-
v0.1.031 Mar 2020Nothing published for this version
-
v0.0.231 Mar 2020Nothing published for this version
-
v0.0.127 Mar 2020Nothing published for this version