mirror of
https://github.com/danog/PHP-Parser.git
synced 2024-11-30 04:19:30 +01:00
Doc comment tweaks
This commit is contained in:
parent
d6361136e1
commit
65af37f7b0
@ -44,8 +44,7 @@ class Class_ extends Declaration
|
||||
/**
|
||||
* Implements one or more interfaces.
|
||||
*
|
||||
* @param Name|string $interface Name of interface to implement
|
||||
* @param Name|string $... More interfaces to implement
|
||||
* @param Name|string ...$interfaces Names of interfaces to implement
|
||||
*
|
||||
* @return $this The builder instance (for fluid interface)
|
||||
*/
|
||||
|
@ -25,8 +25,7 @@ class Interface_ extends Declaration
|
||||
/**
|
||||
* Extends one or more interfaces.
|
||||
*
|
||||
* @param Name|string $interface Name of interface to extend
|
||||
* @param Name|string $... More interfaces to extend
|
||||
* @param Name|string ...$interfaces Names of interfaces to extend
|
||||
*
|
||||
* @return $this The builder instance (for fluid interface)
|
||||
*/
|
||||
|
@ -264,12 +264,19 @@ abstract class PrettyPrinterAbstract
|
||||
*
|
||||
* @param string $string Not to be indented string
|
||||
*
|
||||
* @return mixed String marked with $this->noIndentToken's.
|
||||
* @return string String marked with $this->noIndentToken's.
|
||||
*/
|
||||
protected function pNoIndent($string) {
|
||||
return str_replace("\n", "\n" . $this->noIndentToken, $string);
|
||||
}
|
||||
|
||||
/**
|
||||
* Prints reformatted text of the passed comments.
|
||||
*
|
||||
* @param Comment[] $comments List of comments
|
||||
*
|
||||
* @return string Reformatted text of comments
|
||||
*/
|
||||
protected function pComments(array $comments) {
|
||||
$result = '';
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user