/var/www/vhosts/ihelp.ro/httpdocs/vendor/slevomat/coding-standard/doc
NameSizeModeActions
arrays.md16160644editdlrm
attributes.md17990644editdlrm
classes.md128040644editdlrm
commenting.md58600644editdlrm
complexity.md2890644editdlrm
control-structures.md94920644editdlrm
exceptions.md11710644editdlrm
files.md26190644editdlrm
functions.md49040644editdlrm
namespaces.md76730644editdlrm
numbers.md6250644editdlrm
operators.md11370644editdlrm
php.md31690644editdlrm
strings.md3920644editdlrm
type-hints.md96530644editdlrm
variables.md7520644editdlrm
whitespaces.md6230644editdlrm
Edit: /var/www/vhosts/ihelp.ro/httpdocs/vendor/slevomat/coding-standard/doc/files.md (2619B)
## Files #### SlevomatCodingStandard.Files.FileLength Disallows long files. This sniff provides the following settings: * `includeComments`: should comments be included in the count (default value is false). * `includeWhitespace`: should empty lines be included in the count (default value is false). * `maxLinesLength`: specifies max allowed function lines length (default value is 250). #### SlevomatCodingStandard.Files.LineLength Enforces maximum length of a single line of code. Sniff provides the following settings: * `lineLengthLimit`: actual limit of the line length * `ignoreComments`: whether to ignore line length of comments * `ignoreImports`: whether to ignore line length of import (use) statements #### SlevomatCodingStandard.Files.TypeNameMatchesFileName For projects not following the [PSR-0](http://www.php-fig.org/psr/psr-0/) or [PSR-4](http://www.php-fig.org/psr/psr-4/) autoloading standards, this sniff checks whether a namespace and a name of a class/interface/trait follows agreed-on way to organize code into directories and files. Other than enforcing that the type name must match the name of the file it's contained in, this sniff is very configurable. Consider the following sample configuration: ```xml ``` Sniff provides the following settings: * `rootNamespaces` property expects configuration similar to PSR-4 - project directories mapped to certain namespaces. * `skipDirs` are not taken into consideration when comparing a path to a namespace. For example, with the above settings, file at path `app/services/Product/Product.php` is expected to contain `Slevomat\Product\Product`, not `Slevomat\services\Product\Product`. * `extensions`: allow different file extensions. Default is `php`. * `ignoredNamespaces`: sniff is not performed on these namespaces.