@@ -76,7 +76,7 @@ discard block |
||
| 76 | 76 | */ |
| 77 | 77 | protected function getSubConsumers() |
| 78 | 78 | { |
| 79 | - return [ $this->consumerService->getCommentConsumer() ]; |
|
| 79 | + return [$this->consumerService->getCommentConsumer()]; |
|
| 80 | 80 | } |
| 81 | 81 | |
| 82 | 82 | /** |
@@ -88,7 +88,7 @@ discard block |
||
| 88 | 88 | */ |
| 89 | 89 | protected function isStartToken($token) |
| 90 | 90 | { |
| 91 | - $pattern = '/^\s*(' . preg_quote($this->getPartName(), '/') . ')\s*$/i'; |
|
| 91 | + $pattern = '/^\s*('.preg_quote($this->getPartName(), '/').')\s*$/i'; |
|
| 92 | 92 | return (preg_match($pattern, $token) === 1); |
| 93 | 93 | } |
| 94 | 94 | |
@@ -123,7 +123,7 @@ discard block |
||
| 123 | 123 | { |
| 124 | 124 | return [ |
| 125 | 125 | '\s+', |
| 126 | - '(\A)?\s*(?i)' . preg_quote($this->getPartName(), '/') . '(?-i)\s+' |
|
| 126 | + '(\A)?\s*(?i)'.preg_quote($this->getPartName(), '/').'(?-i)\s+' |
|
| 127 | 127 | ]; |
| 128 | 128 | } |
| 129 | 129 | |
@@ -145,7 +145,7 @@ discard block |
||
| 145 | 145 | foreach ($filtered as $part) { |
| 146 | 146 | if ($part instanceof CommentPart) { |
| 147 | 147 | $ret[] = $part; |
| 148 | - continue; // getValue() is empty anyway, but for clarity... |
|
| 148 | + continue; // getValue() is empty anyway, but for clarity... |
|
| 149 | 149 | } |
| 150 | 150 | $strValue .= $part->getValue(); |
| 151 | 151 | } |