@@ -25,14 +25,14 @@ class DocBlock implements \Reflector
25
25
protected $ short_description = '' ;
26
26
27
27
/**
28
- * @var \phpDocumentor\Reflection\DocBlock\LongDescription The actual description
29
- * for this docblock.
28
+ * @var \phpDocumentor\Reflection\DocBlock\LongDescription The actual
29
+ * description for this docblock.
30
30
*/
31
31
protected $ long_description = null ;
32
32
33
33
/**
34
34
* @var \phpDocumentor\Reflection\DocBlock\Tags[] An array containing all
35
- * the tags in this docblock; except inline.
35
+ * the tags in this docblock; except inline.
36
36
*/
37
37
protected $ tags = array ();
38
38
@@ -53,15 +53,15 @@ class DocBlock implements \Reflector
53
53
* information.
54
54
*
55
55
* @param \Reflector|string $docblock A docblock comment (including
56
- * asterisks) or reflector supporting the getDocComment method.
56
+ * asterisks) or reflector supporting the getDocComment method.
57
57
* @param string $namespace The namespace where this
58
- * DocBlock resides in; defaults to `\`.
58
+ * DocBlock resides in; defaults to `\`.
59
59
* @param string[] $namespace_aliases A list of namespace aliases
60
- * as provided by the `use` keyword; the key of the array is the alias name
61
- * or last part of the alias array if no alias name is provided.
60
+ * as provided by the `use` keyword; the key of the array is the alias
61
+ * name or last part of the alias array if no alias name is provided.
62
62
*
63
63
* @throws \InvalidArgumentException if the given argument does not have the
64
- * getDocComment method.
64
+ * getDocComment method.
65
65
*/
66
66
public function __construct (
67
67
$ docblock ,
@@ -125,7 +125,7 @@ protected function cleanInput($comment)
125
125
* @param string $comment Comment to split into the sub-parts.
126
126
*
127
127
* @author RichardJ Special thanks to RichardJ for the regex responsible
128
- * for the split/
128
+ * for the split.
129
129
*
130
130
* @return string[] containing the short-, long description and an element
131
131
* containing the tags.
@@ -312,9 +312,10 @@ public function hasTag($name)
312
312
* @param string $type Type to expand into full namespaced
313
313
* equivalent.
314
314
* @param string[] $ignore_keywords Whether to ignore given keywords, when
315
- * null it will use the default keywords: 'string', 'int', 'integer',
316
- * 'bool', 'boolean', 'float', 'double', 'object', 'mixed', 'array',
317
- * 'resource', 'void', 'null', 'callback', 'false', 'true'.
315
+ * null it will use the default keywords:
316
+ * 'string', 'int', 'integer', 'bool', 'boolean', 'float', 'double',
317
+ * 'object', 'mixed', 'array', 'resource', 'void', 'null', 'callback',
318
+ * 'false', 'true', 'self', '$this', 'callable'.
318
319
* Default value for this parameter is null.
319
320
*
320
321
* @return string
@@ -327,9 +328,9 @@ public function expandType($type, $ignore_keywords = null)
327
328
328
329
if ($ ignore_keywords === null ) {
329
330
$ ignore_keywords = array (
330
- 'string ' , 'int ' , 'integer ' , 'bool ' , 'boolean ' , 'float ' , ' double ' ,
331
- 'object ' , 'mixed ' , 'array ' , 'resource ' , 'void ' , ' null ' ,
332
- 'callback ' , 'false ' , 'true ' , 'self ' , '$this ' , 'callable '
331
+ 'string ' , 'int ' , 'integer ' , 'bool ' , 'boolean ' , 'float ' ,
332
+ 'double ' , ' object ' , 'mixed ' , 'array ' , 'resource ' , 'void ' ,
333
+ 'null ' , ' callback ' , 'false ' , 'true ' , 'self ' , '$this ' , 'callable '
333
334
);
334
335
}
335
336
0 commit comments