X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fparser%2FStripState.php;h=d4f4559bd7b08d14d0ce85bf34be19151b03f01b;hb=08f105e2d93bf6f2be0d7dc8d6017b41ec6ad3b0;hp=5f3f18eaebf37a857fce50fdc490fed3db836311;hpb=c3e56c9eb46a40c83568c1b38444535b2becbe7c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/parser/StripState.php b/includes/parser/StripState.php index 5f3f18eaeb..d4f4559bd7 100644 --- a/includes/parser/StripState.php +++ b/includes/parser/StripState.php @@ -37,7 +37,7 @@ class StripState { const UNSTRIP_RECURSION_LIMIT = 20; /** - * @param $prefix string + * @param string $prefix */ function __construct( $prefix ) { $this->prefix = $prefix; @@ -51,16 +51,16 @@ class StripState { /** * Add a nowiki strip item - * @param $marker - * @param $value + * @param string $marker + * @param string $value */ function addNoWiki( $marker, $value ) { $this->addItem( 'nowiki', $marker, $value ); } /** - * @param $marker - * @param $value + * @param string $marker + * @param string $value */ function addGeneral( $marker, $value ) { $this->addItem( 'general', $marker, $value ); @@ -68,9 +68,9 @@ class StripState { /** * @throws MWException - * @param $type - * @param $marker - * @param $value + * @param string $type + * @param string $marker + * @param string $value */ protected function addItem( $type, $marker, $value ) { if ( !preg_match( $this->regex, $marker, $m ) ) { @@ -81,7 +81,7 @@ class StripState { } /** - * @param $text + * @param string $text * @return mixed */ function unstripGeneral( $text ) { @@ -89,7 +89,7 @@ class StripState { } /** - * @param $text + * @param string $text * @return mixed */ function unstripNoWiki( $text ) { @@ -97,7 +97,7 @@ class StripState { } /** - * @param $text + * @param string $text * @return mixed */ function unstripBoth( $text ) { @@ -107,8 +107,8 @@ class StripState { } /** - * @param $type - * @param $text + * @param string $type + * @param string $text * @return mixed */ protected function unstripType( $type, $text ) { @@ -127,7 +127,7 @@ class StripState { } /** - * @param $m array + * @param array $m * @return array */ protected function unstripCallback( $m ) { @@ -159,7 +159,7 @@ class StripState { * Get a StripState object which is sufficient to unstrip the given text. * It will contain the minimum subset of strip items necessary. * - * @param $text string + * @param string $text * * @return StripState */ @@ -195,9 +195,9 @@ class StripState { * will not be preserved. The strings in the $texts array will have their * strip markers rewritten, the resulting array of strings will be returned. * - * @param $otherState StripState - * @param $texts Array - * @return Array + * @param StripState $otherState + * @param array $texts + * @return array */ function merge( $otherState, $texts ) { $mergePrefix = Parser::getRandomString(); @@ -215,7 +215,7 @@ class StripState { } /** - * @param $m + * @param array $m * @return string */ protected function mergeCallback( $m ) { @@ -226,7 +226,7 @@ class StripState { /** * Remove any strip markers found in the given text. * - * @param $text Input string + * @param string $text Input string * @return string */ function killMarkers( $text ) {