@@ -58,7 +58,7 @@ |
||
58 | 58 | if (!$this->handle($match[1], $match[2]) && $this->getState()) { |
59 | 59 | $output .= $line; |
60 | 60 | } else { |
61 | - $output .= str_replace('@'.$this->getPrefix(), '!'.$this->getPrefix(), $line); |
|
61 | + $output .= str_replace('@' . $this->getPrefix(), '!' . $this->getPrefix(), $line); |
|
62 | 62 | } |
63 | 63 | } else { |
64 | 64 | $output .= $line; |
@@ -153,9 +153,9 @@ |
||
153 | 153 | $commandLineNumber = $lineNumber; |
154 | 154 | } elseif ($command) { |
155 | 155 | if ($lineNumber < count($commentLines) - 1) { |
156 | - $data.= ' ' . $line; |
|
156 | + $data .= ' ' . $line; |
|
157 | 157 | } else { |
158 | - $data.= preg_replace('~\s*\**\/\s*$~', '', $line); |
|
158 | + $data .= preg_replace('~\s*\**\/\s*$~', '', $line); |
|
159 | 159 | } |
160 | 160 | } |
161 | 161 | } |
@@ -69,7 +69,8 @@ discard block |
||
69 | 69 | } |
70 | 70 | } |
71 | 71 | |
72 | - private function extractStatements() { |
|
72 | + private function extractStatements() |
|
73 | + { |
|
73 | 74 | // Core comments |
74 | 75 | $Statements = $this->Statements; |
75 | 76 | |
@@ -215,7 +216,8 @@ discard block |
||
215 | 216 | } |
216 | 217 | } |
217 | 218 | |
218 | - private function parseTokens($source) { |
|
219 | + private function parseTokens($source) |
|
220 | + { |
|
219 | 221 | $mode = null; |
220 | 222 | $namespace = ''; |
221 | 223 | |
@@ -340,7 +342,8 @@ discard block |
||
340 | 342 | |
341 | 343 | $match = null; |
342 | 344 | foreach ($Statements as $Statement) { |
343 | - if ($Statement->command === 'uses' || $Statement->command === 'see') { //@todo either one, not both? |
|
345 | + if ($Statement->command === 'uses' || $Statement->command === 'see') { |
|
346 | +//@todo either one, not both? |
|
344 | 347 | if (preg_match('/^((?:\\w+)|\$this)(?:(::|->)(\\w+))?(?:\\(\\))?$/', strtolower($Statement->data), $match) === 1) { |
345 | 348 | if (count($match) >= 3) { |
346 | 349 | $Class = null; |
@@ -169,7 +169,8 @@ |
||
169 | 169 | $this->Tags[] = $Tag; |
170 | 170 | } |
171 | 171 | |
172 | - if ($command === 'api') { // backwards compatibility |
|
172 | + if ($command === 'api') { |
|
173 | +// backwards compatibility |
|
173 | 174 | $this->defaultTag = $Tag; |
174 | 175 | } |
175 | 176 | return $Tag; |
@@ -10,7 +10,8 @@ |
||
10 | 10 | * @copyright 2014-2015 Martijn van der Lee |
11 | 11 | * @license https://opensource.org/licenses/MIT MIT |
12 | 12 | */ |
13 | -interface IParameter { |
|
13 | +interface IParameter |
|
14 | +{ |
|
14 | 15 | |
15 | 16 | public function getName(); |
16 | 17 | } |