c2ec1c97c9
A poor man's formatter since I didn't like any of the other ones I found. The original C++ source sometimes put newlines and sometimes not.
Codemods:
codemod '([;{}])([^\n])' '\1\n\2'
codemod -m '\s*<\?php\s+' '<?php\n\n'
codemod '\t' ' '
I hand-fixed all the failing tests
39 linhas
511 B
PHP
39 linhas
511 B
PHP
<?php
|
|
|
|
interface I1 {
|
|
function ifoo2();
|
|
function ifoo1();
|
|
}
|
|
interface I2 {
|
|
function ifoo4();
|
|
function ifoo3();
|
|
}
|
|
class A {
|
|
function foo() {
|
|
}
|
|
function foo2() {
|
|
}
|
|
}
|
|
abstract class B extends A implements I1, I2 {
|
|
function bar() {
|
|
}
|
|
}
|
|
abstract class C extends A implements I2, I1 {
|
|
function bar() {
|
|
}
|
|
}
|
|
class D extends C {
|
|
function ifoo2() {
|
|
}
|
|
function ifoo1() {
|
|
}
|
|
function ifoo4() {
|
|
}
|
|
function ifoo3() {
|
|
}
|
|
function bar() {
|
|
}
|
|
}
|
|
var_dump(get_class_methods('B'));
|
|
var_dump(get_class_methods('C'));
|