X-Git-Url: https://git.m6w6.name/?p=m6w6%2Fext-http;a=blobdiff_plain;f=funcsummary.php;h=dad2f5bb0cf989a4fcb2dd4d715362ad13946034;hp=f5330e69e9bff18e44e6ed98118b4274bf0ee3b7;hb=dac9fc69ba6208b3a150ad447c0ede3b786a83c5;hpb=a12e8ddfaa5a94e76261f165b0c0299c87b886b1 diff --git a/funcsummary.php b/funcsummary.php index f5330e6..dad2f5b 100644 --- a/funcsummary.php +++ b/funcsummary.php @@ -29,13 +29,20 @@ $preface = <<<_PREFACE font-size: 80%%; font-family: sans-serif; } - h2 { + h2, h3 { color: #339; clear: both; font-size: 1.2em; background: #ffc; padding: .2em; } + h2.o { + color: #66b; + clear: both; + font-size: 1.3em; + background: #f0f0f0; + padding: .2em; + } p { margin-left: 1em; } @@ -53,6 +60,9 @@ $preface = <<<_PREFACE width: auto; float: left; } + p, pre { + clear: both; + } p br, pre code br { display: block; } @@ -65,6 +75,7 @@ $footer = <<<_FOOTER

Generated at: %s

+ _FOOTER; if ($_SERVER['argc'] < 2) { @@ -77,11 +88,18 @@ foreach (array_slice($_SERVER['argv'], 1) as $f) { if (mf($f, $m)) { printf("

%s

\n", basename($f)); foreach ($m[1] as $i => $p) { - printf("

%s

\n%s\n", $m[4][$i], $p, ff($m[3][$i])); + if ($o = preg_match('/^(.*), (.*)$/', $m[4][$i], $n)) { + if ($n[2] == '__construct') { + printf("

%s

\n", $n[1], $n[1]); + } + } + printf("%s\n%s\n", + $o?3:2, $o?$n[1].'_'.$n[2]:$m[4][$i], $p, $o?3:2, ff($m[3][$i])); } print "
\n"; } } printf($footer, date('r')); -?> \ No newline at end of file +?> +