Permalink
Browse files

Now 100% PHPCS 1.2.0RC2 compliant

git-svn-id: http://svn.php.net/repository/pear/packages/HTML_CSS/trunk@283416 c90b9560-bf6c-de11-be94-00142212c4b1
  • Loading branch information...
1 parent 5f6a254 commit be86816975d1a9467f0827cc8e286758c94b777f Laurent Laville committed Jul 3, 2009
Showing with 5 additions and 3 deletions.
  1. +5 −3 CSS.php
View
@@ -1927,10 +1927,12 @@ function parseString($str, $duplicates = null)
$struct = strtolower($struct);
}
- if (preg_match_all(
+
+ $has_AtRules = preg_match_all(
'/^(@[a-zA-Z\-]+)\s+(.+);\s*$/m', $struct, $atRules,
- PREG_SET_ORDER)
- ) {
+ PREG_SET_ORDER
+ );
+ if ($has_AtRules) {
foreach ($atRules as $value) {
$this->createAtRule(
trim($value[1]), trim($value[2]), $duplicates

0 comments on commit be86816

Please sign in to comment.