opt
/
cpanel
/
ea-wappspector
/
vendor
/
slevomat
/
coding-standard
/
SlevomatCodingStandard
/
Sniffs
/
Namespaces
➕ New
📤 Upload
✎ Editing:
FullyQualifiedGlobalFunctionsSniff.php
← Back
<?php declare(strict_types = 1); namespace SlevomatCodingStandard\Sniffs\Namespaces; use SlevomatCodingStandard\Helpers\FunctionHelper; use SlevomatCodingStandard\Helpers\ReferencedName; use function array_push; class FullyQualifiedGlobalFunctionsSniff extends AbstractFullyQualifiedGlobalReference { public bool $includeSpecialFunctions = false; /** * @return list<string> */ protected function getNormalizedInclude(): array { $include = parent::getNormalizedInclude(); if ($this->includeSpecialFunctions) { array_push($include, ...FunctionHelper::SPECIAL_FUNCTIONS); } return $include; } protected function getNotFullyQualifiedMessage(): string { return 'Function %s() should be referenced via a fully qualified name.'; } protected function isCaseSensitive(): bool { return false; } protected function isValidType(ReferencedName $name): bool { return $name->isFunction(); } }
💾 Save Changes
Cancel
📤 Upload File
×
Select File
Upload
Cancel
➕ Create New
×
Type
📄 File
📁 Folder
Name
Create
Cancel
✎ Rename Item
×
Current Name
New Name
Rename
Cancel
🔐 Change Permissions
×
Target File
Permission (e.g., 0755, 0644)
0755
0644
0777
Apply
Cancel