@PSR2_whitespaces.test-in.php 593 B

123456789101112131415161718192021222324252627282930
  1. <?
  2. namespace Vendor\Package;
  3. use FooInterfaceA, FooInterfaceB;
  4. use BarClass as Bar;
  5. use OtherVendor\OtherPackage\BazClass;
  6. class Foo extends Bar implements FooInterface{
  7. var $aaa = 1, $bbb = 2;
  8. public function sampleFunction($a, $arg1, $arg2, $arg3, $foo, $b = null)
  9. {
  10. if ($a === $b) {
  11. bar();
  12. } else if ($a > $b) {
  13. $foo->bar($arg1);
  14. } else {
  15. BazClass::bar($arg2, $arg3);
  16. }
  17. }
  18. static public final function bar() {
  19. // method body
  20. }
  21. }
  22. class Aaa implements
  23. Bbb, Ccc,
  24. Ddd
  25. {
  26. }
  27. ?>