Download the PHP package janus-sicherheit/php-codestyle without Composer
On this page you can find all versions of the php package janus-sicherheit/php-codestyle. It is possible to download/install these versions without Composer. Possible dependencies are resolved automatically.
Table of contents
Download janus-sicherheit/php-codestyle
More information about janus-sicherheit/php-codestyle
Files in janus-sicherheit/php-codestyle
Download janus-sicherheit/php-codestyle
More information about janus-sicherheit/php-codestyle
Files in janus-sicherheit/php-codestyle
Vendor janus-sicherheit
Package php-codestyle
Short Description Custom code style standards, code inspections and PHP_CodeSniffer sniffs for JANUS projects
License MIT
Package php-codestyle
Short Description Custom code style standards, code inspections and PHP_CodeSniffer sniffs for JANUS projects
License MIT
Please rate this library. Is it a good library?
Informations about the package php-codestyle
janus-sicherheit/php-codestyle
Custom code style standards, code inspections and PHP_CodeSniffer sniffs for JANUS projects
Installation
On composer install and composer update, this package copies the following files into the consumer project root (overwriting existing files):
.editorconfigcode_inspection.xmlcode_style.xmlphpcs.xml
Usage
What the sniffs do
Arrays
NoInlineCommentedArrayItemSniff: Comments cannot be on the same line as an array item. The comment must be on its own line.
Classes
ClassMemberSpacingSniff: Enforces blank lines between class members. Same groups have no blank line, different groups have two blank lines, methods have one or two blank lines.
Commenting
SeeUsesTagSpacingSniff: Requires exactly one space after@seeand@uses.VariableCommentSniff: Validates property docblocks. Special case: missing@varis allowed when@inheritdocis present.
Functions
ArrowFunctionDeclarationSniff: Validates arrow function (fn) formatting. No space before(, exactly one space around=>, and clean indentation for wrapped lines.
Operators
MethodChainingSniff: Validates method chains. Long or multiline chains must be wrapped and indented consistently, including semicolon placement.
WhiteSpace
ArrayUnionIndentationSniff: Aligns the closing]correctly in specific multiline array union cases.ConstantDeclarationSpacingSniff: In typedconstdeclarations, requires exactly one space between the type and constant name.SemicolonSpacingSniff: Disallows whitespace before;. Also applies rules for method chains and multiline string concatenation.SingleArgumentNotMultilineSniff: Prevents simple single argument calls from being split across multiple lines without need.
All versions of php-codestyle with dependencies
PHP Build Version
Package Version
Requires
php Version
>=8.4
composer-plugin-api Version ^2.0
squizlabs/php_codesniffer Version ^4.0.4
composer-plugin-api Version ^2.0
squizlabs/php_codesniffer Version ^4.0.4
The package janus-sicherheit/php-codestyle contains the following files
Loading the files please wait ...