[prev in list] [next in list] [prev in thread] [next in thread]
List: php-doc-cvs
Subject: [DOC-CVS] com phd: move placement of space between <type> and <methodname> (bug #64850): phpdotnet/p
From: Hannes Magnusson <bjori () php ! net>
Date: 2013-12-29 23:20:50
Message-ID: php-mail-6b6065d3e955f23269df10d7ec31c04e134575442 () git ! php ! net
[Download RAW message or body]
Commit: 30cf604df7c37578f12958eec98f466f300f5af3
Author: Peter Cowburn <salathe@php.net> Wed, 15 May 2013 23:11:07 +0100
Committer: Hannes Magnusson <bjori@mongodb.com> Sun, 29 Dec 2013 15:20:50 -0800
Parents: 17831d8ae17d9dc17a715c8c3a375b7673a52b64
Branches: master
Link: http://git.php.net/?p=phd.git;a=commitdiff;h=30cf604df7c37578f12958eec98f466f300f5af3
Log:
move placement of space between <type> and <methodname> (bug #64850)
Bugs:
https://bugs.php.net/64850
Changed paths:
M phpdotnet/phd/Package/PHP/XHTML.php
Diff:
diff --git a/phpdotnet/phd/Package/PHP/XHTML.php \
b/phpdotnet/phd/Package/PHP/XHTML.php index 03eeb8b..743e61e 100644
--- a/phpdotnet/phd/Package/PHP/XHTML.php
+++ b/phpdotnet/phd/Package/PHP/XHTML.php
@@ -68,6 +68,13 @@ abstract class Package_PHP_XHTML extends Package_Generic_XHTML {
'fieldsynopsis' => 'format_fieldsynopsis_varname',
),
),
+ 'type' => array(
+ /* DEFAULT */ 'span',
+ 'methodsynopsis' => array(
+ /* DEFAULT */ 'format_type_tag_methodsynopsis',
+ 'classsynopsis' => 'span',
+ ),
+ ),
);
private $mytextmap = array(
'acronym' => 'format_acronym_text',
@@ -350,6 +357,15 @@ abstract class Package_PHP_XHTML extends Package_Generic_XHTML {
}
+ public function format_type_tag_methodsynopsis($open, $tag, $attrs, $props) {
+ if ($open) {
+ return '<span class="type">';
+ }
+
+ // Trailing space intentional as phpdoc doesn't have a
+ // space between <type> and the <methodname> in methodsynopsis
+ return '</span> ';
+ }
public function format_type_if_object_or_pseudo_text($type, $tagname) {
if (in_array(strtolower($type), array("bool", "int", "double", "boolean", \
"integer", "float", "string", "array", "object", "resource", "null"))) { return \
false; @@ -462,9 +478,7 @@ abstract class Package_PHP_XHTML extends \
Package_Generic_XHTML { if (isset($attrs[Reader::XMLNS_PHD]["args"])) {
$this->cchunk["args"] = $attrs[Reader::XMLNS_PHD]["args"];
}
- // Leading space intional for methodname as phpdoc doesn't have a
- // space between <type> and the <methodname> in methodsynopsis
- return ' <span class="' . $tag . '">';
+ return '<span class="' . $tag . '">';
}
return "</span>";
}
--
PHP Documentation Commits Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic