@@ -73,7 +73,7 @@ discard block |
||
73 | 73 | if ($this->isCloseTag($token)) { |
74 | 74 | $blockID = $this->uniqueID(); |
75 | 75 | |
76 | - $this->phpBlocks[$blockID] = $phpBlock . $token[1]; |
|
76 | + $this->phpBlocks[$blockID] = $phpBlock.$token[1]; |
|
77 | 77 | $isolated .= $this->placeholder($blockID); |
78 | 78 | |
79 | 79 | $phpBlock = ''; |
@@ -138,7 +138,7 @@ discard block |
||
138 | 138 | { |
139 | 139 | return preg_replace_callback( |
140 | 140 | $this->blockRegex(), |
141 | - function ($match) use ($partial, $blockIDs) { |
|
141 | + function($match) use ($partial, $blockIDs) { |
|
142 | 142 | if ($partial && !in_array($match['id'], $blockIDs)) { |
143 | 143 | return $match[0]; |
144 | 144 | } |
@@ -179,7 +179,7 @@ discard block |
||
179 | 179 | */ |
180 | 180 | private function blockRegex(): string |
181 | 181 | { |
182 | - return '/' . |
|
182 | + return '/'. |
|
183 | 183 | preg_quote($this->prefix) |
184 | 184 | . '(?P<id>[0-9a-z]+)' |
185 | 185 | . preg_quote($this->postfix) |
@@ -191,7 +191,7 @@ discard block |
||
191 | 191 | */ |
192 | 192 | private function uniqueID(): string |
193 | 193 | { |
194 | - return md5(count($this->phpBlocks) . uniqid(true)); |
|
194 | + return md5(count($this->phpBlocks).uniqid(true)); |
|
195 | 195 | } |
196 | 196 | |
197 | 197 | /** |
@@ -201,7 +201,7 @@ discard block |
||
201 | 201 | */ |
202 | 202 | private function placeholder(string $blockID): string |
203 | 203 | { |
204 | - return $this->prefix . $blockID . $this->postfix; |
|
204 | + return $this->prefix.$blockID.$this->postfix; |
|
205 | 205 | } |
206 | 206 | |
207 | 207 | /** |