@@ -38,5 +38,5 @@ |
||
38 | 38 | } |
39 | 39 | $inPlace = $returnType == 'this'; |
40 | 40 | echo '|'.$signature.'|'.$doc->getSummary().'|'.($inPlace ? ':white_check_mark:' : ':negative_squared_cross_mark:'). |
41 | - "|\n"; |
|
41 | + "|\n"; |
|
42 | 42 | } |
@@ -22,7 +22,7 @@ discard block |
||
22 | 22 | } |
23 | 23 | $paramsColl = new Collection($method->getParameters()); |
24 | 24 | $params = $paramsColl->map( |
25 | - function (ReflectionParameter $parameter) { |
|
25 | + function(ReflectionParameter $parameter) { |
|
26 | 26 | return $parameter->getType().' $'.$parameter->name; |
27 | 27 | } |
28 | 28 | )->implode(', '); |
@@ -31,8 +31,8 @@ discard block |
||
31 | 31 | |
32 | 32 | $returnType = 'void'; |
33 | 33 | /* @var phpDocumentor\Reflection\DocBlock\Tags\Return_ $returnType */ |
34 | - if (isset($doc->getTagsByName('return')[0])) { |
|
35 | - $type = $doc->getTagsByName('return')[0]->getType(); |
|
34 | + if (isset($doc->getTagsByName('return')[ 0 ])) { |
|
35 | + $type = $doc->getTagsByName('return')[ 0 ]->getType(); |
|
36 | 36 | $classNameParts = explode('\\', get_class($type)); |
37 | 37 | $returnType = trim(strtolower(array_pop($classNameParts)), '_'); |
38 | 38 | } |