opt
/
cpanel
/
ea-wappspector
/
vendor
/
squizlabs
/
php_codesniffer
/
src
/
Standards
/
Squiz
/
Tests
/
PHP
➕ New
📤 Upload
✎ Editing:
LowercasePHPFunctionsUnitTest.inc
← Back
<?php if (Function_Exists('myFunction') === TRUE) { $retval = MyFunction(true); $keys = Array_Keys($array); } function getType() {} $obj = new Date(); $count = $object->Count(); $count = $object::Count(); $count = $object->count(); $count = $object::count(); class MyClass { public function Count() {} } function &Sort() { } $connection = new Db\Adapter\Pdo\Mysql($config); namespace Strtolower\Silly; use function strToUpper as somethingElse; use function MyClass\WordsToUpper as UCWords; // Intentional redeclared function error. use function strToUpper\NotTheFunction; class ArrayUnique {} $sillyComments = strToLower /*comment*/ ($string); $callToGlobalFunction = \STR_REPEAT($a, 2); $callToGlobalFunction = \ /*comment*/ str_Repeat($a, 2); $callToNamespacedFunction = MyNamespace /* phpcs:ignore Standard */ \STR_REPEAT($a, 2); $callToNamespacedFunction = namespace\STR_REPEAT($a, 2); // Could potentially be false negative. $filePath = new \File($path); $count = $object?->Count(); class AttributesShouldBeIgnored { #[Putenv('FOO', 'foo')] public function foo(): void {} }
💾 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