@@ -23,9 +23,9 @@ function scanpath($path) {
23
23
return $ files ;
24
24
}
25
25
26
- function table ($ id , &$ explained , &$ lines, & $ first ) {
26
+ function table ($ id , &$ explained , &$ lines ) {
27
27
?>
28
- <table id="<?= sprintf ("table-%s " , md5 ($ id )) ?> " style="<?= ( $ first ) ? "" : " display:none; " ?> ">
28
+ <table id="<?= sprintf ("table-%s " , md5 ($ id )) ?> " style="display:none;">
29
29
<thead>
30
30
<tr>
31
31
<th>LINE</th>
@@ -169,25 +169,20 @@ function table($id, &$explained, &$lines, &$first) {
169
169
<div id="right">
170
170
<?php
171
171
if ($ explained ) {
172
- $ first = true ;
173
-
174
172
foreach ($ explained as $ file => $ explanation ) {
175
- table ($ file , $ explanation , $ lines [$ file ], $ first );
176
-
177
- if ($ first )
178
- $ first = false ;
179
-
173
+ table ($ file , $ explanation , $ lines [$ file ]);
174
+
180
175
if ($ classes [$ file ]):
181
176
foreach ($ classes [$ file ] as $ class => $ methods ):
182
177
foreach ($ methods as $ method => $ opcodes ):
183
- table ("{$ file }- {$ class }- {$ method }" , $ opcodes , $ lines [$ file ], $ first );
178
+ table ("{$ file }- {$ class }- {$ method }" , $ opcodes , $ lines [$ file ]);
184
179
endforeach ;
185
180
endforeach ;
186
181
endif ;
187
182
188
183
if ($ functions [$ file ]):
189
184
foreach ($ functions [$ file ] as $ function => $ opcodes ):
190
- table ("{$ file }- {$ function }" , $ opcodes , $ lines [$ file ], $ first );
185
+ table ("{$ file }- {$ function }" , $ opcodes , $ lines [$ file ]);
191
186
endforeach ;
192
187
endif ;
193
188
}
0 commit comments