Nextcloud coding standards for php cs fixer
MIT License
Bot releases are hidden (Show)
Published by provokateurin about 1 month ago
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
: Changes DateTimeInterface|null
to ?DateTimeInterface
cast_spaces
: No space between cast and variablePublished by nickvergessen about 2 months ago
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 operatorsPublished by nickvergessen 9 months ago
fully_qualified_strict_types
again by @nickvergessen in https://github.com/nextcloud/coding-standard/pull/16
Full Changelog: https://github.com/nextcloud/coding-standard/compare/v1.2.0...v1.2.1
Published by nickvergessen 9 months ago
array_syntax
: Force short syntax for arraylist_syntax
: Same for listfully_qualified_strict_types
: Remove namespace from classname when there is a use
statement, and add missing backslash for global namespaceno_leading_import_slash
: Remove leading slash from use
statementnullable_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
.Full Changelog: https://github.com/nextcloud/coding-standard/compare/v1.1.1...v1.2.0
Published by nickvergessen over 1 year ago
Full Changelog: https://github.com/nextcloud/coding-standard/compare/v1.1.0...v1.1.1
Published by nickvergessen over 1 year ago
Full Changelog: https://github.com/nextcloud/coding-standard/compare/v1.0.0...v1.1.0
Published by ChristophWurst almost 3 years ago
Major release because the old config needs to be adjusted.
See https://github.com/nextcloud/coding-standard#upgrade-from-v0x-to-v10 for instructions.