golden hour
/opt/cpanel/ea-wappspector/vendor/squizlabs/php_codesniffer/src/Standards/Generic/Tests/Functions
⬆️ Go Up
Upload
File/Folder
Size
Actions
CallTimePassByReferenceUnitTest.1.inc
1.15 KB
Del
OK
CallTimePassByReferenceUnitTest.2.inc
200 B
Del
OK
CallTimePassByReferenceUnitTest.3.inc
163 B
Del
OK
CallTimePassByReferenceUnitTest.php
1.94 KB
Del
OK
FunctionCallArgumentSpacingUnitTest.1.inc
4.34 KB
Del
OK
FunctionCallArgumentSpacingUnitTest.1.inc.fixed
4.33 KB
Del
OK
FunctionCallArgumentSpacingUnitTest.2.inc
170 B
Del
OK
FunctionCallArgumentSpacingUnitTest.php
2.47 KB
Del
OK
OpeningFunctionBraceBsdAllmanUnitTest.inc
4.39 KB
Del
OK
OpeningFunctionBraceBsdAllmanUnitTest.inc.fixed
4.39 KB
Del
OK
OpeningFunctionBraceBsdAllmanUnitTest.php
2.17 KB
Del
OK
OpeningFunctionBraceKernighanRitchieUnitTest.1.inc
3.97 KB
Del
OK
OpeningFunctionBraceKernighanRitchieUnitTest.1.inc.fixed
3.96 KB
Del
OK
OpeningFunctionBraceKernighanRitchieUnitTest.2.inc
312 B
Del
OK
OpeningFunctionBraceKernighanRitchieUnitTest.2.inc.fixed
307 B
Del
OK
OpeningFunctionBraceKernighanRitchieUnitTest.3.inc
194 B
Del
OK
OpeningFunctionBraceKernighanRitchieUnitTest.php
3.12 KB
Del
OK
Edit: CallTimePassByReferenceUnitTest.1.inc
<?php class myclass extends yourclass implements someint { function myfunc($var) { echo $var; } } $myvar = true; myfunc(&$myvar); myfunc($myvar); $this->myfunc(&$myvar); $this->myfunc($myvar); myclass::myfunc(&$myvar); myclass::myfunc($myvar); while(testfunc($var1, &$var2, $var3, &$var4) === false) { } sprintf("0%o", 0777 & $p); $foo(&$myvar); if (is_array($foo = &$this->bar())) { } Hooks::run( 'SecondaryDataUpdates', [ $title, $old, $recursive, $parserOutput, &$updates ] ); $foo = Bar(&$fooBar); myfunc($myvar&$myvar); myfunc($myvar[0]&$myvar); myfunc(myclass::MY_CONST&$myvar); myfunc(MY_CONST&$myvar); efg( true == &$b ); efg( true === &$b ); foo($a, bar(&$b)); foo($a, array(&$b)); enum Foo {} interface Foo {} trait Foo {} $instance = new $var($a); $instance = new MyClass($a); $instance = new $var(&$a); $instance = new MyClass(&$a); $anon = new class($a) {}; $anon = new class(&$a) {}; class Foo extends Bar { function myMethod() { $a = new static($var); $b = new self($var); $c = new parent($var); $d = new static(&$var); $e = new self(&$var); $f = new parent(&$var); } }
Save