REDROOM
PHP 8.2.31
Path:
Logout
Edit File
Size: 3.09 KB
Close
//opt/cpanel/ea-wappspector/vendor/slevomat/coding-standard/doc/php.md
Text
Base64
## PHP #### SlevomatCodingStandard.PHP.DisallowDirectMagicInvokeCall 🔧 Disallows direct call of `__invoke()`. #### SlevomatCodingStandard.PHP.DisallowReference Sniff disallows usage of references. #### SlevomatCodingStandard.PHP.ForbiddenClasses 🔧 Reports usage of forbidden classes, interfaces, parent classes and traits. And provide the following settings: * `forbiddenClasses`: forbids creating instances with `new` keyword or accessing with `::` operator * `forbiddenExtends`: forbids extending with `extends` keyword * `forbiddenInterfaces`: forbids usage in `implements` section * `forbiddenTraits`: forbids imports with `use` keyword Optionally can be passed as an alternative for auto fixes. See `phpcs.xml` file example: ```xml <rule ref="SlevomatCodingStandard.PHP.ForbiddenClasses"> <properties> <property name="forbiddenClasses" type="array"> <element key="Validator" value="Illuminate\Support\Facades\Validator"/> </property> <property name="forbiddenTraits" type="array"> <element key="\AuthTrait" value="null"/> </property> </properties> </rule> ``` #### SlevomatCodingStandard.PHP.ReferenceSpacing 🔧 Enforces configurable number of spaces after reference. Sniff provides the following settings: * `spacesCountAfterReference`: the number of spaces after `&`. #### SlevomatCodingStandard.PHP.RequireExplicitAssertion 🔧 Requires assertion via `assert` instead of inline documentation comments. Sniff provides the following settings: * `enableIntegerRanges` (default: `false`): enables support for `positive-int`, `negative-int` and `int<0, 100>`. * `enableAdvancedStringTypes` (default: `false`): enables support for `callable-string`, `numeric-string` and `non-empty-string`. #### SlevomatCodingStandard.PHP.RequireNowdoc 🔧 Requires nowdoc syntax instead of heredoc when possible. #### SlevomatCodingStandard.PHP.OptimizedFunctionsWithoutUnpacking PHP optimizes some internal functions into special opcodes on VM level. Such optimization results in much faster execution compared to calling standard functions. This only works when these functions are not invoked with argument unpacking (`...`). The list of these functions varies across PHP versions, but is the same as functions that must be referenced by their global name (either by `\ ` prefix or using `use function`), not a fallback name inside namespaced code. #### SlevomatCodingStandard.PHP.ShortList 🔧 Enforces using short form of list syntax, `[...]` instead of `list(...)`. #### SlevomatCodingStandard.PHP.TypeCast 🔧 Enforces using shorthand cast operators, forbids use of unset and binary cast operators: `(bool)` instead of `(boolean)`, `(int)` instead of `(integer)`, `(float)` instead of `(double)` or `(real)`. `(binary)` and `(unset)` are forbidden. #### SlevomatCodingStandard.PHP.UselessParentheses 🔧 Looks for useless parentheses. Sniff provides the following settings: * `ignoreComplexTernaryConditions` (default: `false`): ignores complex ternary conditions - condition must contain `&&`, `||` etc. or end of line. #### SlevomatCodingStandard.PHP.UselessSemicolon 🔧 Looks for useless semicolons.
Save
Close
Exit & Reset
Text mode: syntax highlighting auto-detects file type.
Directory Contents
Dirs: 0 × Files: 17
Delete Selected
Select All
Select None
Sort:
Name
Size
Modified
Enable drag-to-move
Name
Size
Perms
Modified
Actions
arrays.md
1.58 KB
lrw-r--r--
2025-09-13 08:53:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
attributes.md
1.75 KB
lrw-r--r--
2025-09-13 08:53:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
classes.md
13.82 KB
lrw-r--r--
2025-09-13 08:53:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
commenting.md
5.72 KB
lrw-r--r--
2025-09-13 08:53:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
complexity.md
288 B
lrw-r--r--
2025-09-13 08:53:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
control-structures.md
9.32 KB
lrw-r--r--
2025-09-13 08:53:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
exceptions.md
1.14 KB
lrw-r--r--
2025-09-13 08:53:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
files.md
2.54 KB
lrw-r--r--
2025-09-13 08:53:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
functions.md
5.21 KB
lrw-r--r--
2025-09-13 08:53:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
namespaces.md
7.76 KB
lrw-r--r--
2025-09-13 08:53:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
numbers.md
625 B
lrw-r--r--
2025-09-13 08:53:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
operators.md
1.11 KB
lrw-r--r--
2025-09-13 08:53:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
php.md
3.09 KB
lrw-r--r--
2025-09-13 08:53:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
strings.md
392 B
lrw-r--r--
2025-09-13 08:53:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
type-hints.md
10.71 KB
lrw-r--r--
2025-09-13 08:53:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
variables.md
749 B
lrw-r--r--
2025-09-13 08:53:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
whitespaces.md
623 B
lrw-r--r--
2025-09-13 08:53:30
Edit
Download
Rename
Chmod
Change Date
Delete
OK
Cancel
recursive
OK
Cancel
recursive
OK
Cancel
Zip Selected
If ZipArchive is unavailable, a
.tar
will be created (no compression).