@@ -56,10 +56,10 @@ |
||
56 | 56 | } |
57 | 57 | |
58 | 58 | /** |
59 | - * Gets the link |
|
60 | - * |
|
61 | - * @return string |
|
62 | - */ |
|
59 | + * Gets the link |
|
60 | + * |
|
61 | + * @return string |
|
62 | + */ |
|
63 | 63 | public function getLink() |
64 | 64 | { |
65 | 65 | return $this->link; |
@@ -72,6 +72,6 @@ |
||
72 | 72 | */ |
73 | 73 | public function __toString() |
74 | 74 | { |
75 | - return $this->link . ($this->description ? ' ' . $this->description->render() : ''); |
|
75 | + return $this->link.($this->description ? ' '.$this->description->render() : ''); |
|
76 | 76 | } |
77 | 77 | } |
@@ -68,6 +68,6 @@ |
||
68 | 68 | |
69 | 69 | public function __toString() |
70 | 70 | { |
71 | - return $this->type . ' ' . $this->description; |
|
71 | + return $this->type.' '.$this->description; |
|
72 | 72 | } |
73 | 73 | } |
@@ -78,6 +78,6 @@ |
||
78 | 78 | */ |
79 | 79 | public function __toString() |
80 | 80 | { |
81 | - return $this->refers . ' ' . $this->description->render(); |
|
81 | + return $this->refers.' '.$this->description->render(); |
|
82 | 82 | } |
83 | 83 | } |
@@ -36,8 +36,8 @@ discard block |
||
36 | 36 | Assert::integerish($startingLine); |
37 | 37 | Assert::nullOrIntegerish($lineCount); |
38 | 38 | |
39 | - $this->startingLine = (int)$startingLine; |
|
40 | - $this->lineCount = $lineCount !== null ? (int)$lineCount : null; |
|
39 | + $this->startingLine = (int) $startingLine; |
|
40 | + $this->lineCount = $lineCount !== null ? (int) $lineCount : null; |
|
41 | 41 | $this->description = $description; |
42 | 42 | } |
43 | 43 | |
@@ -55,9 +55,9 @@ discard block |
||
55 | 55 | |
56 | 56 | // Starting line / Number of lines / Description |
57 | 57 | if (preg_match('/^([1-9]\d*)\s*(?:((?1))\s+)?(.*)$/sux', $body, $matches)) { |
58 | - $startingLine = (int)$matches[1]; |
|
58 | + $startingLine = (int) $matches[1]; |
|
59 | 59 | if (isset($matches[2]) && $matches[2] !== '') { |
60 | - $lineCount = (int)$matches[2]; |
|
60 | + $lineCount = (int) $matches[2]; |
|
61 | 61 | } |
62 | 62 | $description = $matches[3]; |
63 | 63 | } |
@@ -90,7 +90,7 @@ discard block |
||
90 | 90 | public function __toString() |
91 | 91 | { |
92 | 92 | return $this->startingLine |
93 | - . ($this->lineCount !== null ? ' ' . $this->lineCount : '') |
|
94 | - . ($this->description ? ' ' . $this->description->render() : ''); |
|
93 | + . ($this->lineCount !== null ? ' '.$this->lineCount : '') |
|
94 | + . ($this->description ? ' '.$this->description->render() : ''); |
|
95 | 95 | } |
96 | 96 | } |
@@ -133,9 +133,9 @@ |
||
133 | 133 | */ |
134 | 134 | public function __toString() |
135 | 135 | { |
136 | - return ($this->type ? $this->type . ' ' : '') |
|
136 | + return ($this->type ? $this->type.' ' : '') |
|
137 | 137 | . ($this->isVariadic() ? '...' : '') |
138 | - . '$' . $this->variableName |
|
139 | - . ($this->description ? ' ' . $this->description : ''); |
|
138 | + . '$'.$this->variableName |
|
139 | + . ($this->description ? ' '.$this->description : ''); |
|
140 | 140 | } |
141 | 141 | } |
@@ -76,6 +76,6 @@ |
||
76 | 76 | */ |
77 | 77 | public function __toString() |
78 | 78 | { |
79 | - return $this->refers . ($this->description ? ' ' . $this->description->render() : ''); |
|
79 | + return $this->refers.($this->description ? ' '.$this->description->render() : ''); |
|
80 | 80 | } |
81 | 81 | } |
@@ -81,9 +81,9 @@ |
||
81 | 81 | */ |
82 | 82 | private function validateTagName($name) |
83 | 83 | { |
84 | - if (! preg_match('/^' . StandardTagFactory::REGEX_TAGNAME . '$/u', $name)) { |
|
84 | + if (!preg_match('/^'.StandardTagFactory::REGEX_TAGNAME.'$/u', $name)) { |
|
85 | 85 | throw new \InvalidArgumentException( |
86 | - 'The tag name "' . $name . '" is not wellformed. Tags may only consist of letters, underscores, ' |
|
86 | + 'The tag name "'.$name.'" is not wellformed. Tags may only consist of letters, underscores, ' |
|
87 | 87 | . 'hyphens and backslashes.' |
88 | 88 | ); |
89 | 89 | } |
@@ -77,7 +77,7 @@ discard block |
||
77 | 77 | |
78 | 78 | $comment = "{$firstIndent}/**\n{$indent} * {$text}\n{$indent} *\n"; |
79 | 79 | $comment = $this->addTagBlock($docblock, $wrapLength, $indent, $comment); |
80 | - $comment .= $indent . ' */'; |
|
80 | + $comment .= $indent.' */'; |
|
81 | 81 | |
82 | 82 | return $comment; |
83 | 83 | } |
@@ -109,7 +109,7 @@ discard block |
||
109 | 109 | */ |
110 | 110 | private function getSummaryAndDescriptionTextBlock(DocBlock $docblock, $wrapLength) |
111 | 111 | { |
112 | - $text = $docblock->getSummary() . ((string)$docblock->getDescription() ? "\n\n" . $docblock->getDescription() |
|
112 | + $text = $docblock->getSummary().((string) $docblock->getDescription() ? "\n\n".$docblock->getDescription() |
|
113 | 113 | : ''); |
114 | 114 | if ($wrapLength !== null) { |
115 | 115 | $text = wordwrap($text, $wrapLength); |
@@ -107,7 +107,7 @@ discard block |
||
107 | 107 | */ |
108 | 108 | public function create($tagLine, TypeContext $context = null) |
109 | 109 | { |
110 | - if (! $context) { |
|
110 | + if (!$context) { |
|
111 | 111 | $context = new TypeContext(''); |
112 | 112 | } |
113 | 113 | |
@@ -161,9 +161,9 @@ discard block |
||
161 | 161 | private function extractTagParts($tagLine) |
162 | 162 | { |
163 | 163 | $matches = array(); |
164 | - if (! preg_match('/^@(' . self::REGEX_TAGNAME . ')(?:\s*([^\s].*)|$)?/us', $tagLine, $matches)) { |
|
164 | + if (!preg_match('/^@('.self::REGEX_TAGNAME.')(?:\s*([^\s].*)|$)?/us', $tagLine, $matches)) { |
|
165 | 165 | throw new \InvalidArgumentException( |
166 | - 'The tag "' . $tagLine . '" does not seem to be wellformed, please check it for errors' |
|
166 | + 'The tag "'.$tagLine.'" does not seem to be wellformed, please check it for errors' |
|
167 | 167 | ); |
168 | 168 | } |
169 | 169 | |
@@ -261,7 +261,7 @@ discard block |
||
261 | 261 | */ |
262 | 262 | private function fetchParametersForHandlerFactoryMethod($handlerClassName) |
263 | 263 | { |
264 | - if (! isset($this->tagHandlerParameterCache[$handlerClassName])) { |
|
264 | + if (!isset($this->tagHandlerParameterCache[$handlerClassName])) { |
|
265 | 265 | $methodReflection = new \ReflectionMethod($handlerClassName, 'create'); |
266 | 266 | $this->tagHandlerParameterCache[$handlerClassName] = $methodReflection->getParameters(); |
267 | 267 | } |