| @@ 282-291 (lines=10) @@ | ||
| 279 | * @param string $body the minified rule body |
|
| 280 | * @return string The rule body token ID string |
|
| 281 | */ |
|
| 282 | private function registerRuleBodyToken($body) |
|
| 283 | { |
|
| 284 | if (empty($body)) { |
|
| 285 | return ''; |
|
| 286 | } |
|
| 287 | ||
| 288 | $tokenId = sprintf(self::RULE_BODY_TOKEN, count($this->ruleBodies)); |
|
| 289 | $this->ruleBodies[$tokenId] = $body; |
|
| 290 | return $tokenId; |
|
| 291 | } |
|
| 292 | ||
| 293 | private function registerUnquotedFontToken($body) |
|
| 294 | { |
|
| @@ 293-302 (lines=10) @@ | ||
| 290 | return $tokenId; |
|
| 291 | } |
|
| 292 | ||
| 293 | private function registerUnquotedFontToken($body) |
|
| 294 | { |
|
| 295 | if (empty($body)) { |
|
| 296 | return ''; |
|
| 297 | } |
|
| 298 | ||
| 299 | $tokenId = sprintf(self::UNQUOTED_FONT_TOKEN, count($this->unquotedFontTokens)); |
|
| 300 | $this->unquotedFontTokens[$tokenId] = $body; |
|
| 301 | return $tokenId; |
|
| 302 | } |
|
| 303 | ||
| 304 | /** |
|
| 305 | * Parses & minifies the given input CSS string |
|