21 require_once __DIR__ .
'/../vendor/autoload.php';
35 foreach (explode(
'_', $input) as $part) {
36 $return .= ucfirst($part);
49 return json_decode(file_get_contents(__DIR__ .
"/../resources/ethjs-schema.json"),
true);
66 if (is_array($content)) {
67 print_r($content) .
"\n";
69 echo($content) .
"\n";
77 if (is_array($type)) {
78 foreach ($type as $subtype) {
79 if (!in_array($subtype, $useStatements)) {
80 $useStatements[] = $subtype;
86 if (!in_array($type, $useStatements)) {
89 if (strpos($type,
'|')) {
92 foreach (explode(
'|', $type) as $t) {
93 if (!in_array($t, $useStatements)) {
94 $useStatements[] = $t;
99 $useStatements[] = $type;
printMe($title, $content=null)
addUseStatement($type, &$useStatements)