@PSR2_whitespaces.test-out.php 558 B

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