mirror of
https://github.com/barryvdh/ReflectionDocBlock.git
synced 2026-08-18 18:13:13 +00:00
Compare commits
6
Commits
patch-2
...
1.0.0-beta4
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f0a2901e56 | ||
|
|
bc982b7d51 | ||
|
|
b892415ca3 | ||
|
|
37a1ac2e19 | ||
|
|
0b096ce2e7 | ||
|
|
5aea3269e1 |
@@ -19,7 +19,7 @@ Installation
|
|||||||
You can install the component in the following ways:
|
You can install the component in the following ways:
|
||||||
|
|
||||||
* Use the official Github repository (https://github.com/phpDocumentor/ReflectionDocBlock)
|
* Use the official Github repository (https://github.com/phpDocumentor/ReflectionDocBlock)
|
||||||
* Via composer (add the Github Repository as VCS repository in your composer.yml)
|
* Via Composer (http://packagist.org/packages/phpdocumentor/reflection-docblock)
|
||||||
|
|
||||||
Usage
|
Usage
|
||||||
-----
|
-----
|
||||||
|
|||||||
@@ -78,7 +78,7 @@ class LongDescription implements \Reflector
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (class_exists('\dflydev\markdown\MarkdownExtraParser()')) {
|
if (class_exists('\dflydev\markdown\MarkdownExtraParser')) {
|
||||||
$md = new \dflydev\markdown\MarkdownExtraParser();
|
$md = new \dflydev\markdown\MarkdownExtraParser();
|
||||||
$result = $md->transformMarkdown($result);
|
$result = $md->transformMarkdown($result);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -59,7 +59,7 @@ class Tag implements \Reflector
|
|||||||
$tag_name = str_replace(
|
$tag_name = str_replace(
|
||||||
' ', '', ucwords(str_replace('-', ' ', $matches[1]))
|
' ', '', ucwords(str_replace('-', ' ', $matches[1]))
|
||||||
).'Tag';
|
).'Tag';
|
||||||
$class_name = '\\phpDocumentor\\Reflection\\DocBlock\\Tag\\' . $tag_name;
|
$class_name = 'phpDocumentor\\Reflection\\DocBlock\\Tag\\' . $tag_name;
|
||||||
|
|
||||||
return (@class_exists($class_name))
|
return (@class_exists($class_name))
|
||||||
? new $class_name($matches[1], isset($matches[2]) ? $matches[2] : '')
|
? new $class_name($matches[1], isset($matches[2]) ? $matches[2] : '')
|
||||||
|
|||||||
Reference in New Issue
Block a user