diff options
Diffstat (limited to 'plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM')
15 files changed, 0 insertions, 246 deletions
diff --git a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMAttr.php b/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMAttr.php deleted file mode 100644 index 91729f3b1..000000000 --- a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMAttr.php +++ /dev/null @@ -1,10 +0,0 @@ -<?php - -namespace andreskrey\Readability\Nodes\DOM; - -use andreskrey\Readability\Nodes\NodeTrait; - -class DOMAttr extends \DOMAttr -{ - use NodeTrait; -} diff --git a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMCdataSection.php b/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMCdataSection.php deleted file mode 100644 index 4535e4e99..000000000 --- a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMCdataSection.php +++ /dev/null @@ -1,10 +0,0 @@ -<?php - -namespace andreskrey\Readability\Nodes\DOM; - -use andreskrey\Readability\Nodes\NodeTrait; - -class DOMCdataSection extends \DOMCdataSection -{ - use NodeTrait; -} diff --git a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMCharacterData.php b/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMCharacterData.php deleted file mode 100644 index e4db11a06..000000000 --- a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMCharacterData.php +++ /dev/null @@ -1,10 +0,0 @@ -<?php - -namespace andreskrey\Readability\Nodes\DOM; - -use andreskrey\Readability\Nodes\NodeTrait; - -class DOMCharacterData extends \DOMCharacterData -{ - use NodeTrait; -} diff --git a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMComment.php b/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMComment.php deleted file mode 100644 index 13b004aff..000000000 --- a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMComment.php +++ /dev/null @@ -1,10 +0,0 @@ -<?php - -namespace andreskrey\Readability\Nodes\DOM; - -use andreskrey\Readability\Nodes\NodeTrait; - -class DOMComment extends \DOMComment -{ - use NodeTrait; -} diff --git a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMDocument.php b/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMDocument.php deleted file mode 100644 index 81e9c7de6..000000000 --- a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMDocument.php +++ /dev/null @@ -1,30 +0,0 @@ -<?php - -namespace andreskrey\Readability\Nodes\DOM; - -use andreskrey\Readability\Nodes\NodeTrait; - -class DOMDocument extends \DOMDocument -{ - use NodeTrait; - - public function __construct($version, $encoding) - { - parent::__construct($version, $encoding); - - $this->registerNodeClass('DOMAttr', DOMAttr::class); - $this->registerNodeClass('DOMCdataSection', DOMCdataSection::class); - $this->registerNodeClass('DOMCharacterData', DOMCharacterData::class); - $this->registerNodeClass('DOMComment', DOMComment::class); - $this->registerNodeClass('DOMDocument', self::class); - $this->registerNodeClass('DOMDocumentFragment', DOMDocumentFragment::class); - $this->registerNodeClass('DOMDocumentType', DOMDocumentType::class); - $this->registerNodeClass('DOMElement', DOMElement::class); - $this->registerNodeClass('DOMEntity', DOMEntity::class); - $this->registerNodeClass('DOMEntityReference', DOMEntityReference::class); - $this->registerNodeClass('DOMNode', DOMNode::class); - $this->registerNodeClass('DOMNotation', DOMNotation::class); - $this->registerNodeClass('DOMProcessingInstruction', DOMProcessingInstruction::class); - $this->registerNodeClass('DOMText', DOMText::class); - } -} diff --git a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMDocumentFragment.php b/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMDocumentFragment.php deleted file mode 100644 index bcb89468d..000000000 --- a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMDocumentFragment.php +++ /dev/null @@ -1,10 +0,0 @@ -<?php - -namespace andreskrey\Readability\Nodes\DOM; - -use andreskrey\Readability\Nodes\NodeTrait; - -class DOMDocumentFragment extends \DOMDocumentFragment -{ - use NodeTrait; -} diff --git a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMDocumentType.php b/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMDocumentType.php deleted file mode 100644 index 18705a7a7..000000000 --- a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMDocumentType.php +++ /dev/null @@ -1,10 +0,0 @@ -<?php - -namespace andreskrey\Readability\Nodes\DOM; - -use andreskrey\Readability\Nodes\NodeTrait; - -class DOMDocumentType extends \DOMDocumentType -{ - use NodeTrait; -} diff --git a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMElement.php b/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMElement.php deleted file mode 100644 index c07670bf7..000000000 --- a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMElement.php +++ /dev/null @@ -1,10 +0,0 @@ -<?php - -namespace andreskrey\Readability\Nodes\DOM; - -use andreskrey\Readability\Nodes\NodeTrait; - -class DOMElement extends \DOMElement -{ - use NodeTrait; -} diff --git a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMEntity.php b/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMEntity.php deleted file mode 100644 index 8493e7319..000000000 --- a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMEntity.php +++ /dev/null @@ -1,10 +0,0 @@ -<?php - -namespace andreskrey\Readability\Nodes\DOM; - -use andreskrey\Readability\Nodes\NodeTrait; - -class DOMEntity extends \DOMEntity -{ - use NodeTrait; -} diff --git a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMEntityReference.php b/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMEntityReference.php deleted file mode 100644 index 32cecb75c..000000000 --- a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMEntityReference.php +++ /dev/null @@ -1,10 +0,0 @@ -<?php - -namespace andreskrey\Readability\Nodes\DOM; - -use andreskrey\Readability\Nodes\NodeTrait; - -class DOMEntityReference extends \DOMEntityReference -{ - use NodeTrait; -} diff --git a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMNode.php b/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMNode.php deleted file mode 100644 index 7c3c4f3a2..000000000 --- a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMNode.php +++ /dev/null @@ -1,14 +0,0 @@ -<?php - -namespace andreskrey\Readability\Nodes\DOM; - -use andreskrey\Readability\Nodes\NodeTrait; - -/** - * @method getAttribute($attribute) - * @method hasAttribute($attribute) - */ -class DOMNode extends \DOMNode -{ - use NodeTrait; -} diff --git a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMNodeList.php b/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMNodeList.php deleted file mode 100644 index 5149c0b98..000000000 --- a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMNodeList.php +++ /dev/null @@ -1,82 +0,0 @@ -<?php - -namespace andreskrey\Readability\Nodes\DOM; - -/** - * Class DOMNodeList. - * - * This is a fake DOMNodeList class that allows adding items to the list. The original class is static and the nodes - * are defined automagically when instantiating it. This fake version behaves exactly the same way but adds the function - * add() that allows to insert new DOMNodes into the DOMNodeList. - * - * It cannot extend the original DOMNodeList class because the functionality behind the property ->length is hidden - * from the user and cannot be extended, changed, or tweaked. - */ -class DOMNodeList implements \Countable, \IteratorAggregate -{ - /** - * @var array - */ - protected $items = []; - - /** - * @var int - */ - protected $length = 0; - - /** - * To allow access to length in the same way that DOMNodeList allows. - * - * {@inheritdoc} - */ - public function __get($name) - { - switch ($name) { - case 'length': - return $this->length; - default: - trigger_error(sprintf('Undefined property: %s::%s', static::class, $name)); - } - } - - /** - * @param DOMNode|DOMElement|DOMComment $node - * - * @return DOMNodeList - */ - public function add($node) - { - $this->items[] = $node; - $this->length++; - - return $this; - } - - /** - * @param int $offset - * - * @return DOMNode|DOMElement|DOMComment - */ - public function item(int $offset) - { - return $this->items[$offset]; - } - - /** - * @return int|void - */ - public function count(): int - { - return $this->length; - } - - /** - * To make it compatible with iterator_to_array() function. - * - * {@inheritdoc} - */ - public function getIterator(): \ArrayIterator - { - return new \ArrayIterator($this->items); - } -} diff --git a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMNotation.php b/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMNotation.php deleted file mode 100644 index 2e888ce00..000000000 --- a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMNotation.php +++ /dev/null @@ -1,10 +0,0 @@ -<?php - -namespace andreskrey\Readability\Nodes\DOM; - -use andreskrey\Readability\Nodes\NodeTrait; - -class DOMNotation extends \DOMNotation -{ - use NodeTrait; -} diff --git a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMProcessingInstruction.php b/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMProcessingInstruction.php deleted file mode 100644 index 9dd4c5c70..000000000 --- a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMProcessingInstruction.php +++ /dev/null @@ -1,10 +0,0 @@ -<?php - -namespace andreskrey\Readability\Nodes\DOM; - -use andreskrey\Readability\Nodes\NodeTrait; - -class DOMProcessingInstruction extends \DOMProcessingInstruction -{ - use NodeTrait; -} diff --git a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMText.php b/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMText.php deleted file mode 100644 index 42c575b49..000000000 --- a/plugins/af_readability/vendor/andreskrey/readability.php/src/Nodes/DOM/DOMText.php +++ /dev/null @@ -1,10 +0,0 @@ -<?php - -namespace andreskrey\Readability\Nodes\DOM; - -use andreskrey\Readability\Nodes\NodeTrait; - -class DOMText extends \DOMText -{ - use NodeTrait; -} |