X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2Fterm%2FMWTerm.php;h=ec8aeb0162b5009d70a5f42c92f83af3a76b37f4;hb=6bd1e23f4a281b05e6c171653a715c394aac36d6;hp=c52f07ccdfa26bb89d59947c2e762e6b51c8874a;hpb=f6b92231fd584e407dc2aab39c3574448c5615c5;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/term/MWTerm.php b/maintenance/term/MWTerm.php index c52f07ccdf..ec8aeb0162 100644 --- a/maintenance/term/MWTerm.php +++ b/maintenance/term/MWTerm.php @@ -20,13 +20,21 @@ * * @file * @ingroup Maintenance Testing + */ + +/** + * @defgroup TermColorer TermColorer + * @ingroup Maintenance Testing * @todo Fixme: Make this more generic + * + * Set of classes to help with test output and such. Right now pretty specific + * to the parser tests but could be more useful one day :) */ /** * Terminal that supports ANSI escape sequences. * - * @ingroup Maintenance Testing + * @ingroup TermColorer */ class AnsiTermColorer { function __construct() { @@ -35,8 +43,8 @@ class AnsiTermColorer { /** * Return ANSI terminal escape code for changing text attribs/color * - * @param $color String: semicolon-separated list of attribute/color codes - * @return String + * @param string $color Semicolon-separated list of attribute/color codes + * @return string */ public function color( $color ) { global $wgCommandLineDarkBg; @@ -49,7 +57,7 @@ class AnsiTermColorer { /** * Return ANSI terminal escape code for restoring default text attributes * - * @return String + * @return string */ public function reset() { return $this->color( 0 ); @@ -59,7 +67,7 @@ class AnsiTermColorer { /** * A colour-less terminal * - * @ingroup Maintenance Testing + * @ingroup TermColorer */ class DummyTermColorer { public function color( $color ) {