Exemple #1
0
    }
    ?>
</dl>
<?php 
}
if (!empty($comment)) {
    foreach ($comment as $tag => $vals) {
        switch ($tag) {
            case 'throws':
            case 'return':
                foreach ($vals as $i => $val) {
                    if (strpos($val, ' ') !== FALSE) {
                        // Extract the type from the val
                        list($type, $val) = explode(' ', $val, 2);
                        // Add the type to the val
                        $val = Kodoc::humanize_type($type) . ' ' . $val;
                    } else {
                        $val = '<tt>' . $val . '</tt>';
                    }
                    // Put the val back into the array
                    $vals[$i] = $val;
                }
                break;
        }
        ?>
<p class="<?php 
        echo $tag;
        ?>
"><strong><?php 
        echo ucfirst($tag);
        ?>