Changeset 2915284
- Timestamp:
- 05/20/2023 10:09:10 PM (3 years ago)
- Location:
- powered-cache
- Files:
-
- 44 added
- 88 edited
- 1 copied
-
tags/3.0.2 (copied) (copied from powered-cache/trunk)
-
tags/3.0.2/includes/classes/Config.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/CssSelectorConverter.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Exception/SyntaxErrorException.php (modified) (1 diff)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/AbstractNode.php (modified) (1 diff)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/AttributeNode.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/ClassNode.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/CombinedSelectorNode.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/ElementNode.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/FunctionNode.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/HashNode.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/NegationNode.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/PseudoNode.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/SelectorNode.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/Specificity.php (modified) (1 diff)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/CommentHandler.php (modified) (1 diff)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/HashHandler.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/IdentifierHandler.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/NumberHandler.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/StringHandler.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/WhitespaceHandler.php (modified) (1 diff)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Parser.php (modified) (3 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Reader.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Shortcut/ClassParser.php (modified) (1 diff)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Shortcut/ElementParser.php (modified) (1 diff)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Shortcut/EmptyStringParser.php (modified) (1 diff)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Shortcut/HashParser.php (modified) (1 diff)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Token.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/TokenStream.php (modified) (3 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Tokenizer/Tokenizer.php (modified) (1 diff)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Tokenizer/TokenizerEscaping.php (modified) (1 diff)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Tokenizer/TokenizerPatterns.php (modified) (1 diff)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/AbstractExtension.php (modified) (5 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/AttributeMatchingExtension.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/CombinationExtension.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/FunctionExtension.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/HtmlExtension.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/NodeExtension.php (modified) (4 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/PseudoClassExtension.php (modified) (2 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Translator.php (modified) (7 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/XPathExpr.php (modified) (5 diffs)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Polyfill (added)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Polyfill/Php80 (added)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Polyfill/Php80/LICENSE (added)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Polyfill/Php80/Php80.php (added)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Polyfill/Php80/PhpToken.php (added)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Polyfill/Php80/Resources (added)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Polyfill/Php80/Resources/stubs (added)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Polyfill/Php80/Resources/stubs/Attribute.php (added)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Polyfill/Php80/Resources/stubs/PhpToken.php (added)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Polyfill/Php80/Resources/stubs/Stringable.php (added)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Polyfill/Php80/Resources/stubs/UnhandledMatchError.php (added)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Polyfill/Php80/Resources/stubs/ValueError.php (added)
-
tags/3.0.2/includes/classes/Dependencies/Symfony/Polyfill/Php80/bootstrap.php (added)
-
tags/3.0.2/includes/dropins/page-cache.php (modified) (2 diffs)
-
tags/3.0.2/includes/package/symfony (added)
-
tags/3.0.2/includes/package/symfony/polyfill-php80 (added)
-
tags/3.0.2/includes/package/symfony/polyfill-php80/Resources (added)
-
tags/3.0.2/includes/package/symfony/polyfill-php80/Resources/stubs (added)
-
tags/3.0.2/includes/package/symfony/polyfill-php80/Resources/stubs/Attribute.php (added)
-
tags/3.0.2/includes/package/symfony/polyfill-php80/Resources/stubs/PhpToken.php (added)
-
tags/3.0.2/includes/package/symfony/polyfill-php80/Resources/stubs/Stringable.php (added)
-
tags/3.0.2/includes/package/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php (added)
-
tags/3.0.2/includes/package/symfony/polyfill-php80/Resources/stubs/ValueError.php (added)
-
tags/3.0.2/languages/powered-cache.pot (modified) (2 diffs)
-
tags/3.0.2/powered-cache.php (modified) (2 diffs)
-
tags/3.0.2/readme.txt (modified) (2 diffs)
-
trunk/includes/classes/Config.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/CssSelectorConverter.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Exception/SyntaxErrorException.php (modified) (1 diff)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/AbstractNode.php (modified) (1 diff)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/AttributeNode.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/ClassNode.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/CombinedSelectorNode.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/ElementNode.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/FunctionNode.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/HashNode.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/NegationNode.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/PseudoNode.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/SelectorNode.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/Specificity.php (modified) (1 diff)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/CommentHandler.php (modified) (1 diff)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/HashHandler.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/IdentifierHandler.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/NumberHandler.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/StringHandler.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/WhitespaceHandler.php (modified) (1 diff)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Parser.php (modified) (3 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Reader.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Shortcut/ClassParser.php (modified) (1 diff)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Shortcut/ElementParser.php (modified) (1 diff)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Shortcut/EmptyStringParser.php (modified) (1 diff)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Shortcut/HashParser.php (modified) (1 diff)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Token.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/TokenStream.php (modified) (3 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Tokenizer/Tokenizer.php (modified) (1 diff)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Tokenizer/TokenizerEscaping.php (modified) (1 diff)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Tokenizer/TokenizerPatterns.php (modified) (1 diff)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/AbstractExtension.php (modified) (5 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/AttributeMatchingExtension.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/CombinationExtension.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/FunctionExtension.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/HtmlExtension.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/NodeExtension.php (modified) (4 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/PseudoClassExtension.php (modified) (2 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Translator.php (modified) (7 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/XPathExpr.php (modified) (5 diffs)
-
trunk/includes/classes/Dependencies/Symfony/Polyfill (added)
-
trunk/includes/classes/Dependencies/Symfony/Polyfill/Php80 (added)
-
trunk/includes/classes/Dependencies/Symfony/Polyfill/Php80/LICENSE (added)
-
trunk/includes/classes/Dependencies/Symfony/Polyfill/Php80/Php80.php (added)
-
trunk/includes/classes/Dependencies/Symfony/Polyfill/Php80/PhpToken.php (added)
-
trunk/includes/classes/Dependencies/Symfony/Polyfill/Php80/Resources (added)
-
trunk/includes/classes/Dependencies/Symfony/Polyfill/Php80/Resources/stubs (added)
-
trunk/includes/classes/Dependencies/Symfony/Polyfill/Php80/Resources/stubs/Attribute.php (added)
-
trunk/includes/classes/Dependencies/Symfony/Polyfill/Php80/Resources/stubs/PhpToken.php (added)
-
trunk/includes/classes/Dependencies/Symfony/Polyfill/Php80/Resources/stubs/Stringable.php (added)
-
trunk/includes/classes/Dependencies/Symfony/Polyfill/Php80/Resources/stubs/UnhandledMatchError.php (added)
-
trunk/includes/classes/Dependencies/Symfony/Polyfill/Php80/Resources/stubs/ValueError.php (added)
-
trunk/includes/classes/Dependencies/Symfony/Polyfill/Php80/bootstrap.php (added)
-
trunk/includes/dropins/page-cache.php (modified) (2 diffs)
-
trunk/includes/package/symfony (added)
-
trunk/includes/package/symfony/polyfill-php80 (added)
-
trunk/includes/package/symfony/polyfill-php80/Resources (added)
-
trunk/includes/package/symfony/polyfill-php80/Resources/stubs (added)
-
trunk/includes/package/symfony/polyfill-php80/Resources/stubs/Attribute.php (added)
-
trunk/includes/package/symfony/polyfill-php80/Resources/stubs/PhpToken.php (added)
-
trunk/includes/package/symfony/polyfill-php80/Resources/stubs/Stringable.php (added)
-
trunk/includes/package/symfony/polyfill-php80/Resources/stubs/UnhandledMatchError.php (added)
-
trunk/includes/package/symfony/polyfill-php80/Resources/stubs/ValueError.php (added)
-
trunk/languages/powered-cache.pot (modified) (2 diffs)
-
trunk/powered-cache.php (modified) (2 diffs)
-
trunk/readme.txt (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
powered-cache/tags/3.0.2/includes/classes/Config.php
r2912480 r2915284 587 587 */ 588 588 if ( apply_filters( 'powered_cache_browser_cache', true ) ) { 589 $contents .= 'location ~* .(j pg|jpeg|png|gif|ico|css|js|svg|eot|woff|woff2|ttf|otf)$ {' . PHP_EOL;589 $contents .= 'location ~* .(js|jpg|jpeg|gif|png|css|tgz|gz|rar|bz2|doc|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|woff|woff2|svg|webp|avif)$ {' . PHP_EOL; 590 590 $contents .= ' expires 6M;' . PHP_EOL; 591 591 $contents .= '}' . PHP_EOL . PHP_EOL; … … 606 606 607 607 $contents .= '# Don\'t use the cache for rejected agents' . PHP_EOL; 608 $contents .= 'if ($http_user_agent ~* "(' . implode( '|', $rejected_user_agents ) . ' ")) {' . PHP_EOL;608 $contents .= 'if ($http_user_agent ~* "(' . implode( '|', $rejected_user_agents ) . ')") {' . PHP_EOL; 609 609 $contents .= ' set $cache_uri \'null cache\';' . PHP_EOL; 610 610 $contents .= '}' . PHP_EOL . PHP_EOL; -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/CssSelectorConverter.php
r2912480 r2915284 27 27 class CssSelectorConverter 28 28 { 29 private Translator$translator;30 private array$cache;29 private $translator; 30 private $cache; 31 31 32 private static array$xmlCache = [];33 private static array$htmlCache = [];32 private static $xmlCache = []; 33 private static $htmlCache = []; 34 34 35 35 /** … … 60 60 * Optionally, a prefix can be added to the resulting XPath 61 61 * expression with the $prefix parameter. 62 * 63 * @return string 62 64 */ 63 public function toXPath(string $cssExpr, string $prefix = 'descendant-or-self::') : string65 public function toXPath(string $cssExpr, string $prefix = 'descendant-or-self::') 64 66 { 65 return $this->cache[$prefix][$cssExpr] ?? = $this->translator->cssToXPath($cssExpr, $prefix);67 return $this->cache[$prefix][$cssExpr] ?? $this->cache[$prefix][$cssExpr] = $this->translator->cssToXPath($cssExpr, $prefix); 66 68 } 67 69 } -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Exception/SyntaxErrorException.php
r2912480 r2915284 24 24 class SyntaxErrorException extends ParseException 25 25 { 26 public static function unexpectedToken(string $expectedValue, Token $foundToken): self 26 /** 27 * @return self 28 */ 29 public static function unexpectedToken(string $expectedValue, Token $foundToken) 27 30 { 28 31 return new self(sprintf('Expected %s, but %s found.', $expectedValue, $foundToken)); 29 32 } 30 33 31 public static function pseudoElementFound(string $pseudoElement, string $unexpectedLocation): self 34 /** 35 * @return self 36 */ 37 public static function pseudoElementFound(string $pseudoElement, string $unexpectedLocation) 32 38 { 33 39 return new self(sprintf('Unexpected pseudo-element "::%s" found %s.', $pseudoElement, $unexpectedLocation)); 34 40 } 35 41 36 public static function unclosedString(int $position): self 42 /** 43 * @return self 44 */ 45 public static function unclosedString(int $position) 37 46 { 38 47 return new self(sprintf('Unclosed/invalid string at %s.', $position)); 39 48 } 40 49 41 public static function nestedNot(): self 50 /** 51 * @return self 52 */ 53 public static function nestedNot() 42 54 { 43 55 return new self('Got nested ::not().'); 44 56 } 45 57 46 public static function stringAsFunctionArgument(): self 58 /** 59 * @return self 60 */ 61 public static function stringAsFunctionArgument() 47 62 { 48 63 return new self('String not allowed as function argument.'); -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/AbstractNode.php
r2912480 r2915284 24 24 abstract class AbstractNode implements NodeInterface 25 25 { 26 private string $nodeName; 26 /** 27 * @var string 28 */ 29 private $nodeName; 27 30 28 31 public function getNodeName(): string 29 32 { 30 return $this->nodeName ??= preg_replace('~.*\\\\([^\\\\]+)Node$~', '$1', static::class); 33 if (null === $this->nodeName) { 34 $this->nodeName = preg_replace('~.*\\\\([^\\\\]+)Node$~', '$1', static::class); 35 } 36 37 return $this->nodeName; 31 38 } 32 39 } -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/AttributeNode.php
r2912480 r2915284 24 24 class AttributeNode extends AbstractNode 25 25 { 26 private NodeInterface$selector;27 private ?string$namespace;28 private string$attribute;29 private string$operator;30 private ?string$value;26 private $selector; 27 private $namespace; 28 private $attribute; 29 private $operator; 30 private $value; 31 31 32 32 public function __construct(NodeInterface $selector, ?string $namespace, string $attribute, string $operator, ?string $value) … … 64 64 } 65 65 66 /** 67 * {@inheritdoc} 68 */ 66 69 public function getSpecificity(): Specificity 67 70 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/ClassNode.php
r2912480 r2915284 24 24 class ClassNode extends AbstractNode 25 25 { 26 private NodeInterface$selector;27 private string$name;26 private $selector; 27 private $name; 28 28 29 29 public function __construct(NodeInterface $selector, string $name) … … 43 43 } 44 44 45 /** 46 * {@inheritdoc} 47 */ 45 48 public function getSpecificity(): Specificity 46 49 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/CombinedSelectorNode.php
r2912480 r2915284 24 24 class CombinedSelectorNode extends AbstractNode 25 25 { 26 private NodeInterface$selector;27 private string$combinator;28 private NodeInterface$subSelector;26 private $selector; 27 private $combinator; 28 private $subSelector; 29 29 30 30 public function __construct(NodeInterface $selector, string $combinator, NodeInterface $subSelector) … … 50 50 } 51 51 52 /** 53 * {@inheritdoc} 54 */ 52 55 public function getSpecificity(): Specificity 53 56 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/ElementNode.php
r2912480 r2915284 24 24 class ElementNode extends AbstractNode 25 25 { 26 private ?string$namespace;27 private ?string$element;26 private $namespace; 27 private $element; 28 28 29 29 public function __construct(string $namespace = null, string $element = null) … … 43 43 } 44 44 45 /** 46 * {@inheritdoc} 47 */ 45 48 public function getSpecificity(): Specificity 46 49 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/FunctionNode.php
r2912480 r2915284 26 26 class FunctionNode extends AbstractNode 27 27 { 28 private NodeInterface$selector;29 private string$name;30 private array$arguments;28 private $selector; 29 private $name; 30 private $arguments; 31 31 32 32 /** … … 58 58 } 59 59 60 /** 61 * {@inheritdoc} 62 */ 60 63 public function getSpecificity(): Specificity 61 64 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/HashNode.php
r2912480 r2915284 24 24 class HashNode extends AbstractNode 25 25 { 26 private NodeInterface$selector;27 private string$id;26 private $selector; 27 private $id; 28 28 29 29 public function __construct(NodeInterface $selector, string $id) … … 43 43 } 44 44 45 /** 46 * {@inheritdoc} 47 */ 45 48 public function getSpecificity(): Specificity 46 49 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/NegationNode.php
r2912480 r2915284 24 24 class NegationNode extends AbstractNode 25 25 { 26 private NodeInterface$selector;27 private NodeInterface$subSelector;26 private $selector; 27 private $subSelector; 28 28 29 29 public function __construct(NodeInterface $selector, NodeInterface $subSelector) … … 43 43 } 44 44 45 /** 46 * {@inheritdoc} 47 */ 45 48 public function getSpecificity(): Specificity 46 49 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/PseudoNode.php
r2912480 r2915284 24 24 class PseudoNode extends AbstractNode 25 25 { 26 private NodeInterface$selector;27 private string$identifier;26 private $selector; 27 private $identifier; 28 28 29 29 public function __construct(NodeInterface $selector, string $identifier) … … 43 43 } 44 44 45 /** 46 * {@inheritdoc} 47 */ 45 48 public function getSpecificity(): Specificity 46 49 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/SelectorNode.php
r2912480 r2915284 24 24 class SelectorNode extends AbstractNode 25 25 { 26 private NodeInterface$tree;27 private ?string$pseudoElement;26 private $tree; 27 private $pseudoElement; 28 28 29 29 public function __construct(NodeInterface $tree, string $pseudoElement = null) … … 43 43 } 44 44 45 /** 46 * {@inheritdoc} 47 */ 45 48 public function getSpecificity(): Specificity 46 49 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/Specificity.php
r2912480 r2915284 30 30 public const C_FACTOR = 1; 31 31 32 private int$a;33 private int$b;34 private int$c;32 private $a; 33 private $b; 34 private $c; 35 35 36 36 public function __construct(int $a, int $b, int $c) -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/CommentHandler.php
r2912480 r2915284 27 27 class CommentHandler implements HandlerInterface 28 28 { 29 /** 30 * {@inheritdoc} 31 */ 29 32 public function handle(Reader $reader, TokenStream $stream): bool 30 33 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/HashHandler.php
r2912480 r2915284 30 30 class HashHandler implements HandlerInterface 31 31 { 32 private TokenizerPatterns$patterns;33 private TokenizerEscaping$escaping;32 private $patterns; 33 private $escaping; 34 34 35 35 public function __construct(TokenizerPatterns $patterns, TokenizerEscaping $escaping) … … 39 39 } 40 40 41 /** 42 * {@inheritdoc} 43 */ 41 44 public function handle(Reader $reader, TokenStream $stream): bool 42 45 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/IdentifierHandler.php
r2912480 r2915284 30 30 class IdentifierHandler implements HandlerInterface 31 31 { 32 private TokenizerPatterns$patterns;33 private TokenizerEscaping$escaping;32 private $patterns; 33 private $escaping; 34 34 35 35 public function __construct(TokenizerPatterns $patterns, TokenizerEscaping $escaping) … … 39 39 } 40 40 41 /** 42 * {@inheritdoc} 43 */ 41 44 public function handle(Reader $reader, TokenStream $stream): bool 42 45 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/NumberHandler.php
r2912480 r2915284 29 29 class NumberHandler implements HandlerInterface 30 30 { 31 private TokenizerPatterns$patterns;31 private $patterns; 32 32 33 33 public function __construct(TokenizerPatterns $patterns) … … 36 36 } 37 37 38 /** 39 * {@inheritdoc} 40 */ 38 41 public function handle(Reader $reader, TokenStream $stream): bool 39 42 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/StringHandler.php
r2912480 r2915284 32 32 class StringHandler implements HandlerInterface 33 33 { 34 private TokenizerPatterns$patterns;35 private TokenizerEscaping$escaping;34 private $patterns; 35 private $escaping; 36 36 37 37 public function __construct(TokenizerPatterns $patterns, TokenizerEscaping $escaping) … … 41 41 } 42 42 43 /** 44 * {@inheritdoc} 45 */ 43 46 public function handle(Reader $reader, TokenStream $stream): bool 44 47 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/WhitespaceHandler.php
r2912480 r2915284 28 28 class WhitespaceHandler implements HandlerInterface 29 29 { 30 /** 31 * {@inheritdoc} 32 */ 30 33 public function handle(Reader $reader, TokenStream $stream): bool 31 34 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Parser.php
r2912480 r2915284 28 28 class Parser implements ParserInterface 29 29 { 30 private Tokenizer$tokenizer;30 private $tokenizer; 31 31 32 32 public function __construct(Tokenizer $tokenizer = null) … … 35 35 } 36 36 37 /** 38 * {@inheritdoc} 39 */ 37 40 public function parse(string $source): array 38 41 { … … 240 243 } 241 244 242 if ( !$arguments) {245 if (empty($arguments)) { 243 246 throw SyntaxErrorException::unexpectedToken('at least one argument', $next); 244 247 } -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Reader.php
r2912480 r2915284 24 24 class Reader 25 25 { 26 private string$source;27 private int$length;28 private int$position = 0;26 private $source; 27 private $length; 28 private $position = 0; 29 29 30 30 public function __construct(string $source) … … 61 61 } 62 62 63 public function findPattern(string $pattern): array|false 63 /** 64 * @return array|false 65 */ 66 public function findPattern(string $pattern) 64 67 { 65 68 $source = substr($this->source, $this->position); -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Shortcut/ClassParser.php
r2912480 r2915284 29 29 class ClassParser implements ParserInterface 30 30 { 31 /** 32 * {@inheritdoc} 33 */ 31 34 public function parse(string $source): array 32 35 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Shortcut/ElementParser.php
r2912480 r2915284 28 28 class ElementParser implements ParserInterface 29 29 { 30 /** 31 * {@inheritdoc} 32 */ 30 33 public function parse(string $source): array 31 34 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Shortcut/EmptyStringParser.php
r2912480 r2915284 32 32 class EmptyStringParser implements ParserInterface 33 33 { 34 /** 35 * {@inheritdoc} 36 */ 34 37 public function parse(string $source): array 35 38 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Shortcut/HashParser.php
r2912480 r2915284 29 29 class HashParser implements ParserInterface 30 30 { 31 /** 32 * {@inheritdoc} 33 */ 31 34 public function parse(string $source): array 32 35 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Token.php
r2912480 r2915284 32 32 public const TYPE_STRING = 'string'; 33 33 34 private ?string$type;35 private ?string$value;36 private ?int$position;34 private $type; 35 private $value; 36 private $position; 37 37 38 38 public function __construct(?string $type, ?string $value, ?int $position) … … 69 69 } 70 70 71 if ( !$values) {71 if (empty($values)) { 72 72 return true; 73 73 } -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/TokenStream.php
r2912480 r2915284 30 30 * @var Token[] 31 31 */ 32 private array$tokens = [];32 private $tokens = []; 33 33 34 34 /** 35 35 * @var Token[] 36 36 */ 37 private array$used = [];37 private $used = []; 38 38 39 private int $cursor = 0; 40 private ?Token $peeked; 41 private bool $peeking = false; 39 /** 40 * @var int 41 */ 42 private $cursor = 0; 43 44 /** 45 * @var Token|null 46 */ 47 private $peeked; 48 49 /** 50 * @var bool 51 */ 52 private $peeking = false; 42 53 43 54 /** … … 46 57 * @return $this 47 58 */ 48 public function push(Token $token): s tatic59 public function push(Token $token): self 49 60 { 50 61 $this->tokens[] = $token; … … 58 69 * @return $this 59 70 */ 60 public function freeze(): s tatic71 public function freeze(): self 61 72 { 62 73 return $this; -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Tokenizer/Tokenizer.php
r2912480 r2915284 32 32 * @var Handler\HandlerInterface[] 33 33 */ 34 private array$handlers;34 private $handlers; 35 35 36 36 public function __construct() -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Tokenizer/TokenizerEscaping.php
r2912480 r2915284 24 24 class TokenizerEscaping 25 25 { 26 private TokenizerPatterns$patterns;26 private $patterns; 27 27 28 28 public function __construct(TokenizerPatterns $patterns) -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Tokenizer/TokenizerPatterns.php
r2912480 r2915284 24 24 class TokenizerPatterns 25 25 { 26 private string$unicodeEscapePattern;27 private string$simpleEscapePattern;28 private string$newLineEscapePattern;29 private string$escapePattern;30 private string$stringEscapePattern;31 private string$nonAsciiPattern;32 private string$nmCharPattern;33 private string$nmStartPattern;34 private string$identifierPattern;35 private string$hashPattern;36 private string$numberPattern;37 private string$quotedStringPattern;26 private $unicodeEscapePattern; 27 private $simpleEscapePattern; 28 private $newLineEscapePattern; 29 private $escapePattern; 30 private $stringEscapePattern; 31 private $nonAsciiPattern; 32 private $nmCharPattern; 33 private $nmStartPattern; 34 private $identifierPattern; 35 private $hashPattern; 36 private $numberPattern; 37 private $quotedStringPattern; 38 38 39 39 public function __construct() -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/AbstractExtension.php
r2912480 r2915284 24 24 abstract class AbstractExtension implements ExtensionInterface 25 25 { 26 /** 27 * {@inheritdoc} 28 */ 26 29 public function getNodeTranslators(): array 27 30 { … … 29 32 } 30 33 34 /** 35 * {@inheritdoc} 36 */ 31 37 public function getCombinationTranslators(): array 32 38 { … … 34 40 } 35 41 42 /** 43 * {@inheritdoc} 44 */ 36 45 public function getFunctionTranslators(): array 37 46 { … … 39 48 } 40 49 50 /** 51 * {@inheritdoc} 52 */ 41 53 public function getPseudoClassTranslators(): array 42 54 { … … 44 56 } 45 57 58 /** 59 * {@inheritdoc} 60 */ 46 61 public function getAttributeMatchingTranslators(): array 47 62 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/AttributeMatchingExtension.php
r2912480 r2915284 27 27 class AttributeMatchingExtension extends AbstractExtension 28 28 { 29 /** 30 * {@inheritdoc} 31 */ 29 32 public function getAttributeMatchingTranslators(): array 30 33 { 31 34 return [ 32 'exists' => $this->translateExists(...),33 '=' => $this->translateEquals(...),34 '~=' => $this->translateIncludes(...),35 '|=' => $this->translateDashMatch(...),36 '^=' => $this->translatePrefixMatch(...),37 '$=' => $this->translateSuffixMatch(...),38 '*=' => $this->translateSubstringMatch(...),39 '!=' => $this->translateDifferent(...),35 'exists' => [$this, 'translateExists'], 36 '=' => [$this, 'translateEquals'], 37 '~=' => [$this, 'translateIncludes'], 38 '|=' => [$this, 'translateDashMatch'], 39 '^=' => [$this, 'translatePrefixMatch'], 40 '$=' => [$this, 'translateSuffixMatch'], 41 '*=' => [$this, 'translateSubstringMatch'], 42 '!=' => [$this, 'translateDifferent'], 40 43 ]; 41 44 } … … 107 110 } 108 111 112 /** 113 * {@inheritdoc} 114 */ 109 115 public function getName(): string 110 116 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/CombinationExtension.php
r2912480 r2915284 26 26 class CombinationExtension extends AbstractExtension 27 27 { 28 /** 29 * {@inheritdoc} 30 */ 28 31 public function getCombinationTranslators(): array 29 32 { 30 33 return [ 31 ' ' => $this->translateDescendant(...),32 '>' => $this->translateChild(...),33 '+' => $this->translateDirectAdjacent(...),34 '~' => $this->translateIndirectAdjacent(...),34 ' ' => [$this, 'translateDescendant'], 35 '>' => [$this, 'translateChild'], 36 '+' => [$this, 'translateDirectAdjacent'], 37 '~' => [$this, 'translateIndirectAdjacent'], 35 38 ]; 36 39 } … … 59 62 } 60 63 64 /** 65 * {@inheritdoc} 66 */ 61 67 public function getName(): string 62 68 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/FunctionExtension.php
r2912480 r2915284 31 31 class FunctionExtension extends AbstractExtension 32 32 { 33 /** 34 * {@inheritdoc} 35 */ 33 36 public function getFunctionTranslators(): array 34 37 { 35 38 return [ 36 'nth-child' => $this->translateNthChild(...),37 'nth-last-child' => $this->translateNthLastChild(...),38 'nth-of-type' => $this->translateNthOfType(...),39 'nth-last-of-type' => $this->translateNthLastOfType(...),40 'contains' => $this->translateContains(...),41 'lang' => $this->translateLang(...),39 'nth-child' => [$this, 'translateNthChild'], 40 'nth-last-child' => [$this, 'translateNthLastChild'], 41 'nth-of-type' => [$this, 'translateNthOfType'], 42 'nth-last-of-type' => [$this, 'translateNthLastOfType'], 43 'contains' => [$this, 'translateContains'], 44 'lang' => [$this, 'translateLang'], 42 45 ]; 43 46 } … … 159 162 } 160 163 164 /** 165 * {@inheritdoc} 166 */ 161 167 public function getName(): string 162 168 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/HtmlExtension.php
r2912480 r2915284 37 37 } 38 38 39 /** 40 * {@inheritdoc} 41 */ 39 42 public function getPseudoClassTranslators(): array 40 43 { 41 44 return [ 42 'checked' => $this->translateChecked(...),43 'link' => $this->translateLink(...),44 'disabled' => $this->translateDisabled(...),45 'enabled' => $this->translateEnabled(...),46 'selected' => $this->translateSelected(...),47 'invalid' => $this->translateInvalid(...),48 'hover' => $this->translateHover(...),49 'visited' => $this->translateVisited(...),45 'checked' => [$this, 'translateChecked'], 46 'link' => [$this, 'translateLink'], 47 'disabled' => [$this, 'translateDisabled'], 48 'enabled' => [$this, 'translateEnabled'], 49 'selected' => [$this, 'translateSelected'], 50 'invalid' => [$this, 'translateInvalid'], 51 'hover' => [$this, 'translateHover'], 52 'visited' => [$this, 'translateVisited'], 50 53 ]; 51 54 } 52 55 56 /** 57 * {@inheritdoc} 58 */ 53 59 public function getFunctionTranslators(): array 54 60 { 55 61 return [ 56 'lang' => $this->translateLang(...),62 'lang' => [$this, 'translateLang'], 57 63 ]; 58 64 } … … 172 178 } 173 179 180 /** 181 * {@inheritdoc} 182 */ 174 183 public function getName(): string 175 184 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/NodeExtension.php
r2912480 r2915284 32 32 public const ATTRIBUTE_VALUE_IN_LOWER_CASE = 4; 33 33 34 private int$flags;34 private $flags; 35 35 36 36 public function __construct(int $flags = 0) … … 42 42 * @return $this 43 43 */ 44 public function setFlag(int $flag, bool $on): s tatic44 public function setFlag(int $flag, bool $on): self 45 45 { 46 46 if ($on && !$this->hasFlag($flag)) { … … 60 60 } 61 61 62 /** 63 * {@inheritdoc} 64 */ 62 65 public function getNodeTranslators(): array 63 66 { 64 67 return [ 65 'Selector' => $this->translateSelector(...),66 'CombinedSelector' => $this->translateCombinedSelector(...),67 'Negation' => $this->translateNegation(...),68 'Function' => $this->translateFunction(...),69 'Pseudo' => $this->translatePseudo(...),70 ' Attribute' => $this->translateAttribute(...),71 'Class' => $this->translateClass(...),72 'Hash' => $this->translateHash(...),73 'Element' => $this->translateElement(...),68 'Selector' => [$this, 'translateSelector'], 69 'CombinedSelector' => [$this, 'translateCombinedSelector'], 70 'Negation' => [$this, 'translateNegation'], 71 'Function' => [$this, 'translateFunction'], 72 'Pseudo' => [$this, 'translatePseudo'], 73 'Powered_Cache_Attribute' => [$this, 'translateAttribute'], 74 'Class' => [$this, 'translateClass'], 75 'Hash' => [$this, 'translateHash'], 76 'Element' => [$this, 'translateElement'], 74 77 ]; 75 78 } … … 180 183 } 181 184 185 /** 186 * {@inheritdoc} 187 */ 182 188 public function getName(): string 183 189 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/PseudoClassExtension.php
r2912480 r2915284 27 27 class PseudoClassExtension extends AbstractExtension 28 28 { 29 /** 30 * {@inheritdoc} 31 */ 29 32 public function getPseudoClassTranslators(): array 30 33 { 31 34 return [ 32 'root' => $this->translateRoot(...),33 'first-child' => $this->translateFirstChild(...),34 'last-child' => $this->translateLastChild(...),35 'first-of-type' => $this->translateFirstOfType(...),36 'last-of-type' => $this->translateLastOfType(...),37 'only-child' => $this->translateOnlyChild(...),38 'only-of-type' => $this->translateOnlyOfType(...),39 'empty' => $this->translateEmpty(...),35 'root' => [$this, 'translateRoot'], 36 'first-child' => [$this, 'translateFirstChild'], 37 'last-child' => [$this, 'translateLastChild'], 38 'first-of-type' => [$this, 'translateFirstOfType'], 39 'last-of-type' => [$this, 'translateLastOfType'], 40 'only-child' => [$this, 'translateOnlyChild'], 41 'only-of-type' => [$this, 'translateOnlyOfType'], 42 'empty' => [$this, 'translateEmpty'], 40 43 ]; 41 44 } … … 110 113 } 111 114 115 /** 116 * {@inheritdoc} 117 */ 112 118 public function getName(): string 113 119 { -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Translator.php
r2912480 r2915284 31 31 class Translator implements TranslatorInterface 32 32 { 33 private ParserInterface$mainParser;33 private $mainParser; 34 34 35 35 /** 36 36 * @var ParserInterface[] 37 37 */ 38 private array$shortcutParsers = [];38 private $shortcutParsers = []; 39 39 40 40 /** 41 41 * @var Extension\ExtensionInterface[] 42 42 */ 43 private array$extensions = [];44 45 private array$nodeTranslators = [];46 private array$combinationTranslators = [];47 private array$functionTranslators = [];48 private array$pseudoClassTranslators = [];49 private array$attributeMatchingTranslators = [];43 private $extensions = []; 44 45 private $nodeTranslators = []; 46 private $combinationTranslators = []; 47 private $functionTranslators = []; 48 private $pseudoClassTranslators = []; 49 private $attributeMatchingTranslators = []; 50 50 51 51 public function __construct(ParserInterface $parser = null) … … 88 88 } 89 89 90 /** 91 * {@inheritdoc} 92 */ 90 93 public function cssToXPath(string $cssExpr, string $prefix = 'descendant-or-self::'): string 91 94 { … … 104 107 } 105 108 109 /** 110 * {@inheritdoc} 111 */ 106 112 public function selectorToXPath(SelectorNode $selector, string $prefix = 'descendant-or-self::'): string 107 113 { … … 112 118 * @return $this 113 119 */ 114 public function registerExtension(Extension\ExtensionInterface $extension): s tatic120 public function registerExtension(Extension\ExtensionInterface $extension): self 115 121 { 116 122 $this->extensions[$extension->getName()] = $extension; … … 140 146 * @return $this 141 147 */ 142 public function registerParserShortcut(ParserInterface $shortcut): s tatic148 public function registerParserShortcut(ParserInterface $shortcut): self 143 149 { 144 150 $this->shortcutParsers[] = $shortcut; … … 201 207 { 202 208 if (!isset($this->attributeMatchingTranslators[$operator])) { 203 throw new ExpressionErrorException(sprintf(' Attribute matcher operator "%s" not supported.', $operator));209 throw new ExpressionErrorException(sprintf('Powered_Cache_Attribute matcher operator "%s" not supported.', $operator)); 204 210 } 205 211 … … 215 221 $tokens = $shortcut->parse($css); 216 222 217 if ( $tokens) {223 if (!empty($tokens)) { 218 224 return $tokens; 219 225 } -
powered-cache/tags/3.0.2/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/XPathExpr.php
r2912480 r2915284 24 24 class XPathExpr 25 25 { 26 private string$path;27 private string$element;28 private string$condition;26 private $path; 27 private $element; 28 private $condition; 29 29 30 30 public function __construct(string $path = '', string $element = '*', string $condition = '', bool $starPrefix = false) … … 47 47 * @return $this 48 48 */ 49 public function addCondition(string $condition): s tatic49 public function addCondition(string $condition): self 50 50 { 51 51 $this->condition = $this->condition ? sprintf('(%s) and (%s)', $this->condition, $condition) : $condition; … … 62 62 * @return $this 63 63 */ 64 public function addNameTest(): s tatic64 public function addNameTest(): self 65 65 { 66 66 if ('*' !== $this->element) { … … 75 75 * @return $this 76 76 */ 77 public function addStarPrefix(): s tatic77 public function addStarPrefix(): self 78 78 { 79 79 $this->path .= '*/'; … … 87 87 * @return $this 88 88 */ 89 public function join(string $combiner, self $expr): s tatic89 public function join(string $combiner, self $expr): self 90 90 { 91 91 $path = $this->__toString().$combiner; -
powered-cache/tags/3.0.2/includes/dropins/page-cache.php
r2912480 r2915284 445 445 446 446 header( 'X-Powered-Cache: PHP' ); 447 header( 'X-Cache-Enabled: true' ); 448 header( sprintf( "age: %d", time() - filemtime( $file_path ) ) ); 447 449 448 450 if ( function_exists( 'gzencode' ) && $GLOBALS['powered_cache_options']['gzip_compression'] ) { … … 565 567 parse_str( $_SERVER['QUERY_STRING'], $query_string ); 566 568 $qs_variable = ''; 569 sort( $powered_cache_cache_query_strings ); 567 570 foreach ( $powered_cache_cache_query_strings as $query_parameter ) { 568 571 if ( isset( $query_string[ $query_parameter ] ) ) { 572 $qs_variable .= '_' . $query_parameter; 569 573 $qs_variable .= is_array( $query_string[ $query_parameter ] ) ? implode( '|', $query_string[ $query_parameter ] ) : $query_string[ $query_parameter ]; 570 574 } -
powered-cache/tags/3.0.2/languages/powered-cache.pot
r2912697 r2915284 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Powered Cache 3.0. 1\n"5 "Project-Id-Version: Powered Cache 3.0.2\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/powered-cache\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2023-05- 15T21:57:14+00:00\n"12 "POT-Creation-Date: 2023-05-20T22:04:42+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.7.1\n" -
powered-cache/tags/3.0.2/powered-cache.php
r2912697 r2915284 4 4 * Plugin URI: https://poweredcache.com 5 5 * Description: Powered Cache is the most powerful caching and performance suite for WordPress, designed to easily improve your PageSpeed and Web Vitals Score. 6 * Version: 3.0. 16 * Version: 3.0.2 7 7 * Requires at least: 5.7 8 * Requires PHP: 7.2 8 * Requires PHP: 7.2.5 9 9 * Author: Powered Cache 10 10 * Author URI: https://poweredcache.com … … 26 26 27 27 // Useful global constants. 28 define( 'POWERED_CACHE_VERSION', '3.0. 1' );28 define( 'POWERED_CACHE_VERSION', '3.0.2' ); 29 29 define( 'POWERED_CACHE_DB_VERSION', '3.0' ); 30 30 define( 'POWERED_CACHE_PLUGIN_FILE', __FILE__ ); -
powered-cache/tags/3.0.2/readme.txt
r2912697 r2915284 4 4 Requires at least: 5.7 5 5 Tested up to: 6.2 6 Stable tag: 3.0. 16 Stable tag: 3.0.2 7 7 License: GPLv2 (or later) 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 Donate link: https://poweredcache.com/donate/ 10 Requires PHP: 7.2 10 Requires PHP: 7.2.5 11 11 12 12 The most powerful caching and performance suite for WordPress. Easily Improve PageSpeed & Web Vitals Score. … … 170 170 171 171 == Changelog == 172 173 = 3.0.2 (May 21, 2023) = 174 - Fix: Html Minification error below PHP 8.1 175 - Added: x-cache-enabled and age headers 176 - Added: sorting for cache query strings 177 - nginx configuration tweaking 172 178 173 179 = 3.0.1 (May 16, 2023) = -
powered-cache/trunk/includes/classes/Config.php
r2912480 r2915284 587 587 */ 588 588 if ( apply_filters( 'powered_cache_browser_cache', true ) ) { 589 $contents .= 'location ~* .(j pg|jpeg|png|gif|ico|css|js|svg|eot|woff|woff2|ttf|otf)$ {' . PHP_EOL;589 $contents .= 'location ~* .(js|jpg|jpeg|gif|png|css|tgz|gz|rar|bz2|doc|pdf|ppt|tar|wav|bmp|rtf|swf|ico|flv|txt|woff|woff2|svg|webp|avif)$ {' . PHP_EOL; 590 590 $contents .= ' expires 6M;' . PHP_EOL; 591 591 $contents .= '}' . PHP_EOL . PHP_EOL; … … 606 606 607 607 $contents .= '# Don\'t use the cache for rejected agents' . PHP_EOL; 608 $contents .= 'if ($http_user_agent ~* "(' . implode( '|', $rejected_user_agents ) . ' ")) {' . PHP_EOL;608 $contents .= 'if ($http_user_agent ~* "(' . implode( '|', $rejected_user_agents ) . ')") {' . PHP_EOL; 609 609 $contents .= ' set $cache_uri \'null cache\';' . PHP_EOL; 610 610 $contents .= '}' . PHP_EOL . PHP_EOL; -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/CssSelectorConverter.php
r2912480 r2915284 27 27 class CssSelectorConverter 28 28 { 29 private Translator$translator;30 private array$cache;29 private $translator; 30 private $cache; 31 31 32 private static array$xmlCache = [];33 private static array$htmlCache = [];32 private static $xmlCache = []; 33 private static $htmlCache = []; 34 34 35 35 /** … … 60 60 * Optionally, a prefix can be added to the resulting XPath 61 61 * expression with the $prefix parameter. 62 * 63 * @return string 62 64 */ 63 public function toXPath(string $cssExpr, string $prefix = 'descendant-or-self::') : string65 public function toXPath(string $cssExpr, string $prefix = 'descendant-or-self::') 64 66 { 65 return $this->cache[$prefix][$cssExpr] ?? = $this->translator->cssToXPath($cssExpr, $prefix);67 return $this->cache[$prefix][$cssExpr] ?? $this->cache[$prefix][$cssExpr] = $this->translator->cssToXPath($cssExpr, $prefix); 66 68 } 67 69 } -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Exception/SyntaxErrorException.php
r2912480 r2915284 24 24 class SyntaxErrorException extends ParseException 25 25 { 26 public static function unexpectedToken(string $expectedValue, Token $foundToken): self 26 /** 27 * @return self 28 */ 29 public static function unexpectedToken(string $expectedValue, Token $foundToken) 27 30 { 28 31 return new self(sprintf('Expected %s, but %s found.', $expectedValue, $foundToken)); 29 32 } 30 33 31 public static function pseudoElementFound(string $pseudoElement, string $unexpectedLocation): self 34 /** 35 * @return self 36 */ 37 public static function pseudoElementFound(string $pseudoElement, string $unexpectedLocation) 32 38 { 33 39 return new self(sprintf('Unexpected pseudo-element "::%s" found %s.', $pseudoElement, $unexpectedLocation)); 34 40 } 35 41 36 public static function unclosedString(int $position): self 42 /** 43 * @return self 44 */ 45 public static function unclosedString(int $position) 37 46 { 38 47 return new self(sprintf('Unclosed/invalid string at %s.', $position)); 39 48 } 40 49 41 public static function nestedNot(): self 50 /** 51 * @return self 52 */ 53 public static function nestedNot() 42 54 { 43 55 return new self('Got nested ::not().'); 44 56 } 45 57 46 public static function stringAsFunctionArgument(): self 58 /** 59 * @return self 60 */ 61 public static function stringAsFunctionArgument() 47 62 { 48 63 return new self('String not allowed as function argument.'); -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/AbstractNode.php
r2912480 r2915284 24 24 abstract class AbstractNode implements NodeInterface 25 25 { 26 private string $nodeName; 26 /** 27 * @var string 28 */ 29 private $nodeName; 27 30 28 31 public function getNodeName(): string 29 32 { 30 return $this->nodeName ??= preg_replace('~.*\\\\([^\\\\]+)Node$~', '$1', static::class); 33 if (null === $this->nodeName) { 34 $this->nodeName = preg_replace('~.*\\\\([^\\\\]+)Node$~', '$1', static::class); 35 } 36 37 return $this->nodeName; 31 38 } 32 39 } -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/AttributeNode.php
r2912480 r2915284 24 24 class AttributeNode extends AbstractNode 25 25 { 26 private NodeInterface$selector;27 private ?string$namespace;28 private string$attribute;29 private string$operator;30 private ?string$value;26 private $selector; 27 private $namespace; 28 private $attribute; 29 private $operator; 30 private $value; 31 31 32 32 public function __construct(NodeInterface $selector, ?string $namespace, string $attribute, string $operator, ?string $value) … … 64 64 } 65 65 66 /** 67 * {@inheritdoc} 68 */ 66 69 public function getSpecificity(): Specificity 67 70 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/ClassNode.php
r2912480 r2915284 24 24 class ClassNode extends AbstractNode 25 25 { 26 private NodeInterface$selector;27 private string$name;26 private $selector; 27 private $name; 28 28 29 29 public function __construct(NodeInterface $selector, string $name) … … 43 43 } 44 44 45 /** 46 * {@inheritdoc} 47 */ 45 48 public function getSpecificity(): Specificity 46 49 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/CombinedSelectorNode.php
r2912480 r2915284 24 24 class CombinedSelectorNode extends AbstractNode 25 25 { 26 private NodeInterface$selector;27 private string$combinator;28 private NodeInterface$subSelector;26 private $selector; 27 private $combinator; 28 private $subSelector; 29 29 30 30 public function __construct(NodeInterface $selector, string $combinator, NodeInterface $subSelector) … … 50 50 } 51 51 52 /** 53 * {@inheritdoc} 54 */ 52 55 public function getSpecificity(): Specificity 53 56 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/ElementNode.php
r2912480 r2915284 24 24 class ElementNode extends AbstractNode 25 25 { 26 private ?string$namespace;27 private ?string$element;26 private $namespace; 27 private $element; 28 28 29 29 public function __construct(string $namespace = null, string $element = null) … … 43 43 } 44 44 45 /** 46 * {@inheritdoc} 47 */ 45 48 public function getSpecificity(): Specificity 46 49 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/FunctionNode.php
r2912480 r2915284 26 26 class FunctionNode extends AbstractNode 27 27 { 28 private NodeInterface$selector;29 private string$name;30 private array$arguments;28 private $selector; 29 private $name; 30 private $arguments; 31 31 32 32 /** … … 58 58 } 59 59 60 /** 61 * {@inheritdoc} 62 */ 60 63 public function getSpecificity(): Specificity 61 64 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/HashNode.php
r2912480 r2915284 24 24 class HashNode extends AbstractNode 25 25 { 26 private NodeInterface$selector;27 private string$id;26 private $selector; 27 private $id; 28 28 29 29 public function __construct(NodeInterface $selector, string $id) … … 43 43 } 44 44 45 /** 46 * {@inheritdoc} 47 */ 45 48 public function getSpecificity(): Specificity 46 49 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/NegationNode.php
r2912480 r2915284 24 24 class NegationNode extends AbstractNode 25 25 { 26 private NodeInterface$selector;27 private NodeInterface$subSelector;26 private $selector; 27 private $subSelector; 28 28 29 29 public function __construct(NodeInterface $selector, NodeInterface $subSelector) … … 43 43 } 44 44 45 /** 46 * {@inheritdoc} 47 */ 45 48 public function getSpecificity(): Specificity 46 49 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/PseudoNode.php
r2912480 r2915284 24 24 class PseudoNode extends AbstractNode 25 25 { 26 private NodeInterface$selector;27 private string$identifier;26 private $selector; 27 private $identifier; 28 28 29 29 public function __construct(NodeInterface $selector, string $identifier) … … 43 43 } 44 44 45 /** 46 * {@inheritdoc} 47 */ 45 48 public function getSpecificity(): Specificity 46 49 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/SelectorNode.php
r2912480 r2915284 24 24 class SelectorNode extends AbstractNode 25 25 { 26 private NodeInterface$tree;27 private ?string$pseudoElement;26 private $tree; 27 private $pseudoElement; 28 28 29 29 public function __construct(NodeInterface $tree, string $pseudoElement = null) … … 43 43 } 44 44 45 /** 46 * {@inheritdoc} 47 */ 45 48 public function getSpecificity(): Specificity 46 49 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Node/Specificity.php
r2912480 r2915284 30 30 public const C_FACTOR = 1; 31 31 32 private int$a;33 private int$b;34 private int$c;32 private $a; 33 private $b; 34 private $c; 35 35 36 36 public function __construct(int $a, int $b, int $c) -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/CommentHandler.php
r2912480 r2915284 27 27 class CommentHandler implements HandlerInterface 28 28 { 29 /** 30 * {@inheritdoc} 31 */ 29 32 public function handle(Reader $reader, TokenStream $stream): bool 30 33 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/HashHandler.php
r2912480 r2915284 30 30 class HashHandler implements HandlerInterface 31 31 { 32 private TokenizerPatterns$patterns;33 private TokenizerEscaping$escaping;32 private $patterns; 33 private $escaping; 34 34 35 35 public function __construct(TokenizerPatterns $patterns, TokenizerEscaping $escaping) … … 39 39 } 40 40 41 /** 42 * {@inheritdoc} 43 */ 41 44 public function handle(Reader $reader, TokenStream $stream): bool 42 45 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/IdentifierHandler.php
r2912480 r2915284 30 30 class IdentifierHandler implements HandlerInterface 31 31 { 32 private TokenizerPatterns$patterns;33 private TokenizerEscaping$escaping;32 private $patterns; 33 private $escaping; 34 34 35 35 public function __construct(TokenizerPatterns $patterns, TokenizerEscaping $escaping) … … 39 39 } 40 40 41 /** 42 * {@inheritdoc} 43 */ 41 44 public function handle(Reader $reader, TokenStream $stream): bool 42 45 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/NumberHandler.php
r2912480 r2915284 29 29 class NumberHandler implements HandlerInterface 30 30 { 31 private TokenizerPatterns$patterns;31 private $patterns; 32 32 33 33 public function __construct(TokenizerPatterns $patterns) … … 36 36 } 37 37 38 /** 39 * {@inheritdoc} 40 */ 38 41 public function handle(Reader $reader, TokenStream $stream): bool 39 42 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/StringHandler.php
r2912480 r2915284 32 32 class StringHandler implements HandlerInterface 33 33 { 34 private TokenizerPatterns$patterns;35 private TokenizerEscaping$escaping;34 private $patterns; 35 private $escaping; 36 36 37 37 public function __construct(TokenizerPatterns $patterns, TokenizerEscaping $escaping) … … 41 41 } 42 42 43 /** 44 * {@inheritdoc} 45 */ 43 46 public function handle(Reader $reader, TokenStream $stream): bool 44 47 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Handler/WhitespaceHandler.php
r2912480 r2915284 28 28 class WhitespaceHandler implements HandlerInterface 29 29 { 30 /** 31 * {@inheritdoc} 32 */ 30 33 public function handle(Reader $reader, TokenStream $stream): bool 31 34 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Parser.php
r2912480 r2915284 28 28 class Parser implements ParserInterface 29 29 { 30 private Tokenizer$tokenizer;30 private $tokenizer; 31 31 32 32 public function __construct(Tokenizer $tokenizer = null) … … 35 35 } 36 36 37 /** 38 * {@inheritdoc} 39 */ 37 40 public function parse(string $source): array 38 41 { … … 240 243 } 241 244 242 if ( !$arguments) {245 if (empty($arguments)) { 243 246 throw SyntaxErrorException::unexpectedToken('at least one argument', $next); 244 247 } -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Reader.php
r2912480 r2915284 24 24 class Reader 25 25 { 26 private string$source;27 private int$length;28 private int$position = 0;26 private $source; 27 private $length; 28 private $position = 0; 29 29 30 30 public function __construct(string $source) … … 61 61 } 62 62 63 public function findPattern(string $pattern): array|false 63 /** 64 * @return array|false 65 */ 66 public function findPattern(string $pattern) 64 67 { 65 68 $source = substr($this->source, $this->position); -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Shortcut/ClassParser.php
r2912480 r2915284 29 29 class ClassParser implements ParserInterface 30 30 { 31 /** 32 * {@inheritdoc} 33 */ 31 34 public function parse(string $source): array 32 35 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Shortcut/ElementParser.php
r2912480 r2915284 28 28 class ElementParser implements ParserInterface 29 29 { 30 /** 31 * {@inheritdoc} 32 */ 30 33 public function parse(string $source): array 31 34 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Shortcut/EmptyStringParser.php
r2912480 r2915284 32 32 class EmptyStringParser implements ParserInterface 33 33 { 34 /** 35 * {@inheritdoc} 36 */ 34 37 public function parse(string $source): array 35 38 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Shortcut/HashParser.php
r2912480 r2915284 29 29 class HashParser implements ParserInterface 30 30 { 31 /** 32 * {@inheritdoc} 33 */ 31 34 public function parse(string $source): array 32 35 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Token.php
r2912480 r2915284 32 32 public const TYPE_STRING = 'string'; 33 33 34 private ?string$type;35 private ?string$value;36 private ?int$position;34 private $type; 35 private $value; 36 private $position; 37 37 38 38 public function __construct(?string $type, ?string $value, ?int $position) … … 69 69 } 70 70 71 if ( !$values) {71 if (empty($values)) { 72 72 return true; 73 73 } -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/TokenStream.php
r2912480 r2915284 30 30 * @var Token[] 31 31 */ 32 private array$tokens = [];32 private $tokens = []; 33 33 34 34 /** 35 35 * @var Token[] 36 36 */ 37 private array$used = [];37 private $used = []; 38 38 39 private int $cursor = 0; 40 private ?Token $peeked; 41 private bool $peeking = false; 39 /** 40 * @var int 41 */ 42 private $cursor = 0; 43 44 /** 45 * @var Token|null 46 */ 47 private $peeked; 48 49 /** 50 * @var bool 51 */ 52 private $peeking = false; 42 53 43 54 /** … … 46 57 * @return $this 47 58 */ 48 public function push(Token $token): s tatic59 public function push(Token $token): self 49 60 { 50 61 $this->tokens[] = $token; … … 58 69 * @return $this 59 70 */ 60 public function freeze(): s tatic71 public function freeze(): self 61 72 { 62 73 return $this; -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Tokenizer/Tokenizer.php
r2912480 r2915284 32 32 * @var Handler\HandlerInterface[] 33 33 */ 34 private array$handlers;34 private $handlers; 35 35 36 36 public function __construct() -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Tokenizer/TokenizerEscaping.php
r2912480 r2915284 24 24 class TokenizerEscaping 25 25 { 26 private TokenizerPatterns$patterns;26 private $patterns; 27 27 28 28 public function __construct(TokenizerPatterns $patterns) -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/Parser/Tokenizer/TokenizerPatterns.php
r2912480 r2915284 24 24 class TokenizerPatterns 25 25 { 26 private string$unicodeEscapePattern;27 private string$simpleEscapePattern;28 private string$newLineEscapePattern;29 private string$escapePattern;30 private string$stringEscapePattern;31 private string$nonAsciiPattern;32 private string$nmCharPattern;33 private string$nmStartPattern;34 private string$identifierPattern;35 private string$hashPattern;36 private string$numberPattern;37 private string$quotedStringPattern;26 private $unicodeEscapePattern; 27 private $simpleEscapePattern; 28 private $newLineEscapePattern; 29 private $escapePattern; 30 private $stringEscapePattern; 31 private $nonAsciiPattern; 32 private $nmCharPattern; 33 private $nmStartPattern; 34 private $identifierPattern; 35 private $hashPattern; 36 private $numberPattern; 37 private $quotedStringPattern; 38 38 39 39 public function __construct() -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/AbstractExtension.php
r2912480 r2915284 24 24 abstract class AbstractExtension implements ExtensionInterface 25 25 { 26 /** 27 * {@inheritdoc} 28 */ 26 29 public function getNodeTranslators(): array 27 30 { … … 29 32 } 30 33 34 /** 35 * {@inheritdoc} 36 */ 31 37 public function getCombinationTranslators(): array 32 38 { … … 34 40 } 35 41 42 /** 43 * {@inheritdoc} 44 */ 36 45 public function getFunctionTranslators(): array 37 46 { … … 39 48 } 40 49 50 /** 51 * {@inheritdoc} 52 */ 41 53 public function getPseudoClassTranslators(): array 42 54 { … … 44 56 } 45 57 58 /** 59 * {@inheritdoc} 60 */ 46 61 public function getAttributeMatchingTranslators(): array 47 62 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/AttributeMatchingExtension.php
r2912480 r2915284 27 27 class AttributeMatchingExtension extends AbstractExtension 28 28 { 29 /** 30 * {@inheritdoc} 31 */ 29 32 public function getAttributeMatchingTranslators(): array 30 33 { 31 34 return [ 32 'exists' => $this->translateExists(...),33 '=' => $this->translateEquals(...),34 '~=' => $this->translateIncludes(...),35 '|=' => $this->translateDashMatch(...),36 '^=' => $this->translatePrefixMatch(...),37 '$=' => $this->translateSuffixMatch(...),38 '*=' => $this->translateSubstringMatch(...),39 '!=' => $this->translateDifferent(...),35 'exists' => [$this, 'translateExists'], 36 '=' => [$this, 'translateEquals'], 37 '~=' => [$this, 'translateIncludes'], 38 '|=' => [$this, 'translateDashMatch'], 39 '^=' => [$this, 'translatePrefixMatch'], 40 '$=' => [$this, 'translateSuffixMatch'], 41 '*=' => [$this, 'translateSubstringMatch'], 42 '!=' => [$this, 'translateDifferent'], 40 43 ]; 41 44 } … … 107 110 } 108 111 112 /** 113 * {@inheritdoc} 114 */ 109 115 public function getName(): string 110 116 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/CombinationExtension.php
r2912480 r2915284 26 26 class CombinationExtension extends AbstractExtension 27 27 { 28 /** 29 * {@inheritdoc} 30 */ 28 31 public function getCombinationTranslators(): array 29 32 { 30 33 return [ 31 ' ' => $this->translateDescendant(...),32 '>' => $this->translateChild(...),33 '+' => $this->translateDirectAdjacent(...),34 '~' => $this->translateIndirectAdjacent(...),34 ' ' => [$this, 'translateDescendant'], 35 '>' => [$this, 'translateChild'], 36 '+' => [$this, 'translateDirectAdjacent'], 37 '~' => [$this, 'translateIndirectAdjacent'], 35 38 ]; 36 39 } … … 59 62 } 60 63 64 /** 65 * {@inheritdoc} 66 */ 61 67 public function getName(): string 62 68 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/FunctionExtension.php
r2912480 r2915284 31 31 class FunctionExtension extends AbstractExtension 32 32 { 33 /** 34 * {@inheritdoc} 35 */ 33 36 public function getFunctionTranslators(): array 34 37 { 35 38 return [ 36 'nth-child' => $this->translateNthChild(...),37 'nth-last-child' => $this->translateNthLastChild(...),38 'nth-of-type' => $this->translateNthOfType(...),39 'nth-last-of-type' => $this->translateNthLastOfType(...),40 'contains' => $this->translateContains(...),41 'lang' => $this->translateLang(...),39 'nth-child' => [$this, 'translateNthChild'], 40 'nth-last-child' => [$this, 'translateNthLastChild'], 41 'nth-of-type' => [$this, 'translateNthOfType'], 42 'nth-last-of-type' => [$this, 'translateNthLastOfType'], 43 'contains' => [$this, 'translateContains'], 44 'lang' => [$this, 'translateLang'], 42 45 ]; 43 46 } … … 159 162 } 160 163 164 /** 165 * {@inheritdoc} 166 */ 161 167 public function getName(): string 162 168 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/HtmlExtension.php
r2912480 r2915284 37 37 } 38 38 39 /** 40 * {@inheritdoc} 41 */ 39 42 public function getPseudoClassTranslators(): array 40 43 { 41 44 return [ 42 'checked' => $this->translateChecked(...),43 'link' => $this->translateLink(...),44 'disabled' => $this->translateDisabled(...),45 'enabled' => $this->translateEnabled(...),46 'selected' => $this->translateSelected(...),47 'invalid' => $this->translateInvalid(...),48 'hover' => $this->translateHover(...),49 'visited' => $this->translateVisited(...),45 'checked' => [$this, 'translateChecked'], 46 'link' => [$this, 'translateLink'], 47 'disabled' => [$this, 'translateDisabled'], 48 'enabled' => [$this, 'translateEnabled'], 49 'selected' => [$this, 'translateSelected'], 50 'invalid' => [$this, 'translateInvalid'], 51 'hover' => [$this, 'translateHover'], 52 'visited' => [$this, 'translateVisited'], 50 53 ]; 51 54 } 52 55 56 /** 57 * {@inheritdoc} 58 */ 53 59 public function getFunctionTranslators(): array 54 60 { 55 61 return [ 56 'lang' => $this->translateLang(...),62 'lang' => [$this, 'translateLang'], 57 63 ]; 58 64 } … … 172 178 } 173 179 180 /** 181 * {@inheritdoc} 182 */ 174 183 public function getName(): string 175 184 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/NodeExtension.php
r2912480 r2915284 32 32 public const ATTRIBUTE_VALUE_IN_LOWER_CASE = 4; 33 33 34 private int$flags;34 private $flags; 35 35 36 36 public function __construct(int $flags = 0) … … 42 42 * @return $this 43 43 */ 44 public function setFlag(int $flag, bool $on): s tatic44 public function setFlag(int $flag, bool $on): self 45 45 { 46 46 if ($on && !$this->hasFlag($flag)) { … … 60 60 } 61 61 62 /** 63 * {@inheritdoc} 64 */ 62 65 public function getNodeTranslators(): array 63 66 { 64 67 return [ 65 'Selector' => $this->translateSelector(...),66 'CombinedSelector' => $this->translateCombinedSelector(...),67 'Negation' => $this->translateNegation(...),68 'Function' => $this->translateFunction(...),69 'Pseudo' => $this->translatePseudo(...),70 ' Attribute' => $this->translateAttribute(...),71 'Class' => $this->translateClass(...),72 'Hash' => $this->translateHash(...),73 'Element' => $this->translateElement(...),68 'Selector' => [$this, 'translateSelector'], 69 'CombinedSelector' => [$this, 'translateCombinedSelector'], 70 'Negation' => [$this, 'translateNegation'], 71 'Function' => [$this, 'translateFunction'], 72 'Pseudo' => [$this, 'translatePseudo'], 73 'Powered_Cache_Attribute' => [$this, 'translateAttribute'], 74 'Class' => [$this, 'translateClass'], 75 'Hash' => [$this, 'translateHash'], 76 'Element' => [$this, 'translateElement'], 74 77 ]; 75 78 } … … 180 183 } 181 184 185 /** 186 * {@inheritdoc} 187 */ 182 188 public function getName(): string 183 189 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Extension/PseudoClassExtension.php
r2912480 r2915284 27 27 class PseudoClassExtension extends AbstractExtension 28 28 { 29 /** 30 * {@inheritdoc} 31 */ 29 32 public function getPseudoClassTranslators(): array 30 33 { 31 34 return [ 32 'root' => $this->translateRoot(...),33 'first-child' => $this->translateFirstChild(...),34 'last-child' => $this->translateLastChild(...),35 'first-of-type' => $this->translateFirstOfType(...),36 'last-of-type' => $this->translateLastOfType(...),37 'only-child' => $this->translateOnlyChild(...),38 'only-of-type' => $this->translateOnlyOfType(...),39 'empty' => $this->translateEmpty(...),35 'root' => [$this, 'translateRoot'], 36 'first-child' => [$this, 'translateFirstChild'], 37 'last-child' => [$this, 'translateLastChild'], 38 'first-of-type' => [$this, 'translateFirstOfType'], 39 'last-of-type' => [$this, 'translateLastOfType'], 40 'only-child' => [$this, 'translateOnlyChild'], 41 'only-of-type' => [$this, 'translateOnlyOfType'], 42 'empty' => [$this, 'translateEmpty'], 40 43 ]; 41 44 } … … 110 113 } 111 114 115 /** 116 * {@inheritdoc} 117 */ 112 118 public function getName(): string 113 119 { -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/Translator.php
r2912480 r2915284 31 31 class Translator implements TranslatorInterface 32 32 { 33 private ParserInterface$mainParser;33 private $mainParser; 34 34 35 35 /** 36 36 * @var ParserInterface[] 37 37 */ 38 private array$shortcutParsers = [];38 private $shortcutParsers = []; 39 39 40 40 /** 41 41 * @var Extension\ExtensionInterface[] 42 42 */ 43 private array$extensions = [];44 45 private array$nodeTranslators = [];46 private array$combinationTranslators = [];47 private array$functionTranslators = [];48 private array$pseudoClassTranslators = [];49 private array$attributeMatchingTranslators = [];43 private $extensions = []; 44 45 private $nodeTranslators = []; 46 private $combinationTranslators = []; 47 private $functionTranslators = []; 48 private $pseudoClassTranslators = []; 49 private $attributeMatchingTranslators = []; 50 50 51 51 public function __construct(ParserInterface $parser = null) … … 88 88 } 89 89 90 /** 91 * {@inheritdoc} 92 */ 90 93 public function cssToXPath(string $cssExpr, string $prefix = 'descendant-or-self::'): string 91 94 { … … 104 107 } 105 108 109 /** 110 * {@inheritdoc} 111 */ 106 112 public function selectorToXPath(SelectorNode $selector, string $prefix = 'descendant-or-self::'): string 107 113 { … … 112 118 * @return $this 113 119 */ 114 public function registerExtension(Extension\ExtensionInterface $extension): s tatic120 public function registerExtension(Extension\ExtensionInterface $extension): self 115 121 { 116 122 $this->extensions[$extension->getName()] = $extension; … … 140 146 * @return $this 141 147 */ 142 public function registerParserShortcut(ParserInterface $shortcut): s tatic148 public function registerParserShortcut(ParserInterface $shortcut): self 143 149 { 144 150 $this->shortcutParsers[] = $shortcut; … … 201 207 { 202 208 if (!isset($this->attributeMatchingTranslators[$operator])) { 203 throw new ExpressionErrorException(sprintf(' Attribute matcher operator "%s" not supported.', $operator));209 throw new ExpressionErrorException(sprintf('Powered_Cache_Attribute matcher operator "%s" not supported.', $operator)); 204 210 } 205 211 … … 215 221 $tokens = $shortcut->parse($css); 216 222 217 if ( $tokens) {223 if (!empty($tokens)) { 218 224 return $tokens; 219 225 } -
powered-cache/trunk/includes/classes/Dependencies/Symfony/Component/CssSelector/XPath/XPathExpr.php
r2912480 r2915284 24 24 class XPathExpr 25 25 { 26 private string$path;27 private string$element;28 private string$condition;26 private $path; 27 private $element; 28 private $condition; 29 29 30 30 public function __construct(string $path = '', string $element = '*', string $condition = '', bool $starPrefix = false) … … 47 47 * @return $this 48 48 */ 49 public function addCondition(string $condition): s tatic49 public function addCondition(string $condition): self 50 50 { 51 51 $this->condition = $this->condition ? sprintf('(%s) and (%s)', $this->condition, $condition) : $condition; … … 62 62 * @return $this 63 63 */ 64 public function addNameTest(): s tatic64 public function addNameTest(): self 65 65 { 66 66 if ('*' !== $this->element) { … … 75 75 * @return $this 76 76 */ 77 public function addStarPrefix(): s tatic77 public function addStarPrefix(): self 78 78 { 79 79 $this->path .= '*/'; … … 87 87 * @return $this 88 88 */ 89 public function join(string $combiner, self $expr): s tatic89 public function join(string $combiner, self $expr): self 90 90 { 91 91 $path = $this->__toString().$combiner; -
powered-cache/trunk/includes/dropins/page-cache.php
r2912480 r2915284 445 445 446 446 header( 'X-Powered-Cache: PHP' ); 447 header( 'X-Cache-Enabled: true' ); 448 header( sprintf( "age: %d", time() - filemtime( $file_path ) ) ); 447 449 448 450 if ( function_exists( 'gzencode' ) && $GLOBALS['powered_cache_options']['gzip_compression'] ) { … … 565 567 parse_str( $_SERVER['QUERY_STRING'], $query_string ); 566 568 $qs_variable = ''; 569 sort( $powered_cache_cache_query_strings ); 567 570 foreach ( $powered_cache_cache_query_strings as $query_parameter ) { 568 571 if ( isset( $query_string[ $query_parameter ] ) ) { 572 $qs_variable .= '_' . $query_parameter; 569 573 $qs_variable .= is_array( $query_string[ $query_parameter ] ) ? implode( '|', $query_string[ $query_parameter ] ) : $query_string[ $query_parameter ]; 570 574 } -
powered-cache/trunk/languages/powered-cache.pot
r2912697 r2915284 3 3 msgid "" 4 4 msgstr "" 5 "Project-Id-Version: Powered Cache 3.0. 1\n"5 "Project-Id-Version: Powered Cache 3.0.2\n" 6 6 "Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/powered-cache\n" 7 7 "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" … … 10 10 "Content-Type: text/plain; charset=UTF-8\n" 11 11 "Content-Transfer-Encoding: 8bit\n" 12 "POT-Creation-Date: 2023-05- 15T21:57:14+00:00\n"12 "POT-Creation-Date: 2023-05-20T22:04:42+00:00\n" 13 13 "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" 14 14 "X-Generator: WP-CLI 2.7.1\n" -
powered-cache/trunk/powered-cache.php
r2912697 r2915284 4 4 * Plugin URI: https://poweredcache.com 5 5 * Description: Powered Cache is the most powerful caching and performance suite for WordPress, designed to easily improve your PageSpeed and Web Vitals Score. 6 * Version: 3.0. 16 * Version: 3.0.2 7 7 * Requires at least: 5.7 8 * Requires PHP: 7.2 8 * Requires PHP: 7.2.5 9 9 * Author: Powered Cache 10 10 * Author URI: https://poweredcache.com … … 26 26 27 27 // Useful global constants. 28 define( 'POWERED_CACHE_VERSION', '3.0. 1' );28 define( 'POWERED_CACHE_VERSION', '3.0.2' ); 29 29 define( 'POWERED_CACHE_DB_VERSION', '3.0' ); 30 30 define( 'POWERED_CACHE_PLUGIN_FILE', __FILE__ ); -
powered-cache/trunk/readme.txt
r2912697 r2915284 4 4 Requires at least: 5.7 5 5 Tested up to: 6.2 6 Stable tag: 3.0. 16 Stable tag: 3.0.2 7 7 License: GPLv2 (or later) 8 8 License URI: http://www.gnu.org/licenses/gpl-2.0.html 9 9 Donate link: https://poweredcache.com/donate/ 10 Requires PHP: 7.2 10 Requires PHP: 7.2.5 11 11 12 12 The most powerful caching and performance suite for WordPress. Easily Improve PageSpeed & Web Vitals Score. … … 170 170 171 171 == Changelog == 172 173 = 3.0.2 (May 21, 2023) = 174 - Fix: Html Minification error below PHP 8.1 175 - Added: x-cache-enabled and age headers 176 - Added: sorting for cache query strings 177 - nginx configuration tweaking 172 178 173 179 = 3.0.1 (May 16, 2023) =
Note: See TracChangeset
for help on using the changeset viewer.