Exemplo n.º 1
0
    /**
     * Renders class documentation stats
     */
    public static function render_missing_documentation($Classes)
    {
        ?>
		<table>
			<tr class="colhead">
				<td>
					Class
				</td>
				<td>
					Class documented
				</td>
				<td>
					Undocumented functions
				</td>
				<td>
					Documented functions
				</td>
			</tr>
<?php 
        foreach ($Classes as $Key => $Value) {
            $ClassComment = Testing::get_class_comment($Key);
            ?>
				<tr>
					<td>
						<?php 
            echo $Key;
            ?>
					</td>
					<td>
						<?php 
            echo !empty($ClassComment) ? "Yes" : "No";
            ?>
					<td>
						<?php 
            echo count(Testing::get_undocumented_methods($Key));
            ?>
					</td>
					<td>
						<?php 
            echo count(Testing::get_documented_methods($Key));
            ?>
					</td>
				</tr>
<?php 
        }
        ?>
		</table>
<?php 
    }