| @@ -1,7 +1,7 @@ | ||
| 1 | -<?php | |
| 1 | +<?php | |
| 2 | 2 | class FeedWordPressHTML { |
| 3 | - static function attributeRegex ($tag, $attr) { | |
| 3 | + function attributeRegex ($tag, $attr) { | |
| 4 | 4 | return ":( |
| 5 | 5 | (<($tag)\s+[^>]*) |
| 6 | 6 | ($attr)= |
| 7 | 7 | ) |
| @@ -15,11 +15,11 @@ | ||
| 15 | 15 | ) |
| 16 | 16 | :ix"; |
| 17 | 17 | } /* function FeedWordPressHTML::attributeRegex () */ |
| 18 | 18 | |
| 19 | - static function attributeMatch ($matches) { | |
| 19 | + function attributeMatch ($matches) { | |
| 20 | 20 | for ($i = 0; $i <= 12; $i++) : |
| 21 | - if ( !isset($matches[$i])) : | |
| 21 | + if (!isset($matches[$i])) : | |
| 22 | 22 | $matches[$i] = ''; |
| 23 | 23 | endif; |
| 24 | 24 | endfor; |
| 25 | 25 | |
| @@ -37,9 +37,9 @@ | ||
| 37 | 37 | "after_attribute" => $suffix, |
| 38 | 38 | ); |
| 39 | 39 | } /* function FeedWordPressHTML::attributeMatch () */ |
| 40 | 40 | |
| 41 | - static function tagWithAttributeRegex ($tag, $attr, $value, $closing = true) { | |
| 41 | + function tagWithAttributeRegex ($tag, $attr, $value, $closing = true) { | |
| 42 | 42 | return ":( |
| 43 | 43 | (<($tag)\s+[^>]*) |
| 44 | 44 | ($attr)= |
| 45 | 45 | ) |
| @@ -56,11 +56,11 @@ | ||
| 56 | 56 | " : "")." |
| 57 | 57 | :ix"; |
| 58 | 58 | } /* FeedWordPressHTML::tagWithAttributeRegex () */ |
| 59 | 59 | |
| 60 | - static function tagWithAttributeMatch ($matches, $closing = true) { | |
| 60 | + function tagWithAttributeMatch ($matches, $closing = true) { | |
| 61 | 61 | for ($i = 0; $i <= 21; $i++) : |
| 62 | - if ( !isset($matches[$i])) : | |
| 62 | + if (!isset($matches[$i])) : | |
| 63 | 63 | $matches[$i] = ''; |
| 64 | 64 | endif; |
| 65 | 65 | endfor; |
| 66 | 66 | |