From 7c2bfd95fdeaca8f92a8ec96ca23a79dfb901338 Mon Sep 17 00:00:00 2001 From: Wahyu Arif P Date: Sun, 3 Nov 2019 11:11:19 +0700 Subject: [PATCH] system update update system requirements. --- composer.lock | 26 +- vendor/composer/autoload_namespaces.php | 1 - vendor/composer/autoload_psr4.php | 1 + vendor/composer/autoload_static.php | 12 +- vendor/composer/installed.json | 30 +-- vendor/paquettg/php-html-parser/composer.json | 10 +- .../src/PHPHtmlParser/Content.php | 2 +- .../src/PHPHtmlParser/Curl.php | 4 +- .../src/PHPHtmlParser/CurlInterface.php | 2 +- .../php-html-parser/src/PHPHtmlParser/Dom.php | 119 +++++++--- .../src/PHPHtmlParser/Dom/AbstractNode.php | 57 +++-- .../src/PHPHtmlParser/Dom/ArrayNode.php | 2 +- .../src/PHPHtmlParser/Dom/Collection.php | 3 +- .../src/PHPHtmlParser/Dom/HtmlNode.php | 17 +- .../src/PHPHtmlParser/Dom/InnerNode.php | 223 +++++++++--------- .../src/PHPHtmlParser/Dom/LeafNode.php | 4 +- .../src/PHPHtmlParser/Dom/MockNode.php | 60 ----- .../src/PHPHtmlParser/Dom/Tag.php | 22 +- .../src/PHPHtmlParser/Dom/TextNode.php | 24 +- .../Exceptions/ChildNotFoundException.php | 6 +- .../Exceptions/CircularException.php | 6 +- .../Exceptions/CurlException.php | 6 +- .../Exceptions/EmptyCollectionException.php | 6 +- .../Exceptions/NotLoadedException.php | 6 +- .../Exceptions/ParentNotFoundException.php | 6 +- .../Exceptions/StrictException.php | 6 +- .../Exceptions/UnknownChildTypeException.php | 6 +- .../src/PHPHtmlParser/Finder.php | 12 +- .../src/PHPHtmlParser/Options.php | 24 +- .../src/PHPHtmlParser/Selector/Parser.php | 10 +- .../Selector/ParserInterface.php | 2 +- .../src/PHPHtmlParser/Selector/Selector.php | 65 +++-- .../src/PHPHtmlParser/StaticDom.php | 26 +- vendor/psr/log/Psr/Log/LoggerInterface.php | 2 + vendor/psr/log/Psr/Log/LoggerTrait.php | 2 + vendor/psr/log/Psr/Log/NullLogger.php | 2 + .../log/Psr/Log/Test/LoggerInterfaceTest.php | 4 +- vendor/psr/log/Psr/Log/Test/TestLogger.php | 1 + vendor/psr/log/README.md | 6 + vendor/psr/log/composer.json | 2 +- 40 files changed, 478 insertions(+), 347 deletions(-) delete mode 100644 vendor/paquettg/php-html-parser/src/PHPHtmlParser/Dom/MockNode.php diff --git a/composer.lock b/composer.lock index b432892..8057546 100644 --- a/composer.lock +++ b/composer.lock @@ -69,16 +69,16 @@ }, { "name": "paquettg/php-html-parser", - "version": "2.0.2", + "version": "2.1.0", "source": { "type": "git", "url": "https://github.com/paquettg/php-html-parser.git", - "reference": "77e4a44b0916690b4300fe9abf98fd05bbba48f0" + "reference": "d1000936350fed2cb6c54058890d2d19c5ccba4f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paquettg/php-html-parser/zipball/77e4a44b0916690b4300fe9abf98fd05bbba48f0", - "reference": "77e4a44b0916690b4300fe9abf98fd05bbba48f0", + "url": "https://api.github.com/repos/paquettg/php-html-parser/zipball/d1000936350fed2cb6c54058890d2d19c5ccba4f", + "reference": "d1000936350fed2cb6c54058890d2d19c5ccba4f", "shasum": "" }, "require": { @@ -93,8 +93,8 @@ }, "type": "library", "autoload": { - "psr-0": { - "PHPHtmlParser": "src/" + "psr-4": { + "PHPHtmlParser\\": "src/PHPHtmlParser" } }, "notification-url": "https://packagist.org/downloads/", @@ -115,7 +115,7 @@ "html", "parser" ], - "time": "2019-02-10T01:35:49+00:00" + "time": "2019-08-18T18:27:45+00:00" }, { "name": "paquettg/string-encode", @@ -165,16 +165,16 @@ }, { "name": "psr/log", - "version": "1.1.0", + "version": "1.1.2", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd" + "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", - "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", + "url": "https://api.github.com/repos/php-fig/log/zipball/446d54b4cb6bf489fc9d75f55843658e6f25d801", + "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801", "shasum": "" }, "require": { @@ -183,7 +183,7 @@ "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.1.x-dev" } }, "autoload": { @@ -208,7 +208,7 @@ "psr", "psr-3" ], - "time": "2018-11-20T15:27:04+00:00" + "time": "2019-11-01T11:05:21+00:00" }, { "name": "seld/cli-prompt", diff --git a/vendor/composer/autoload_namespaces.php b/vendor/composer/autoload_namespaces.php index 9e9dfb6..5c28f75 100644 --- a/vendor/composer/autoload_namespaces.php +++ b/vendor/composer/autoload_namespaces.php @@ -7,5 +7,4 @@ return array( 'stringEncode' => array($vendorDir . '/paquettg/string-encode/src'), - 'PHPHtmlParser' => array($vendorDir . '/paquettg/php-html-parser/src'), ); diff --git a/vendor/composer/autoload_psr4.php b/vendor/composer/autoload_psr4.php index c6713c0..def7223 100644 --- a/vendor/composer/autoload_psr4.php +++ b/vendor/composer/autoload_psr4.php @@ -8,5 +8,6 @@ return array( 'Seld\\CliPrompt\\' => array($vendorDir . '/seld/cli-prompt/src'), 'Psr\\Log\\' => array($vendorDir . '/psr/log/Psr/Log'), + 'PHPHtmlParser\\' => array($vendorDir . '/paquettg/php-html-parser/src/PHPHtmlParser'), 'League\\CLImate\\' => array($vendorDir . '/league/climate/src'), ); diff --git a/vendor/composer/autoload_static.php b/vendor/composer/autoload_static.php index b68ee6e..6a43973 100644 --- a/vendor/composer/autoload_static.php +++ b/vendor/composer/autoload_static.php @@ -14,6 +14,7 @@ class ComposerStaticInita36784190aa4c9e039245c33394b476e 'P' => array ( 'Psr\\Log\\' => 8, + 'PHPHtmlParser\\' => 14, ), 'L' => array ( @@ -30,6 +31,10 @@ class ComposerStaticInita36784190aa4c9e039245c33394b476e array ( 0 => __DIR__ . '/..' . '/psr/log/Psr/Log', ), + 'PHPHtmlParser\\' => + array ( + 0 => __DIR__ . '/..' . '/paquettg/php-html-parser/src/PHPHtmlParser', + ), 'League\\CLImate\\' => array ( 0 => __DIR__ . '/..' . '/league/climate/src', @@ -44,13 +49,6 @@ class ComposerStaticInita36784190aa4c9e039245c33394b476e 0 => __DIR__ . '/..' . '/paquettg/string-encode/src', ), ), - 'P' => - array ( - 'PHPHtmlParser' => - array ( - 0 => __DIR__ . '/..' . '/paquettg/php-html-parser/src', - ), - ), ); public static function getInitializer(ClassLoader $loader) diff --git a/vendor/composer/installed.json b/vendor/composer/installed.json index 15cddf7..954de4a 100644 --- a/vendor/composer/installed.json +++ b/vendor/composer/installed.json @@ -64,17 +64,17 @@ }, { "name": "paquettg/php-html-parser", - "version": "2.0.2", - "version_normalized": "2.0.2.0", + "version": "2.1.0", + "version_normalized": "2.1.0.0", "source": { "type": "git", "url": "https://github.com/paquettg/php-html-parser.git", - "reference": "77e4a44b0916690b4300fe9abf98fd05bbba48f0" + "reference": "d1000936350fed2cb6c54058890d2d19c5ccba4f" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/paquettg/php-html-parser/zipball/77e4a44b0916690b4300fe9abf98fd05bbba48f0", - "reference": "77e4a44b0916690b4300fe9abf98fd05bbba48f0", + "url": "https://api.github.com/repos/paquettg/php-html-parser/zipball/d1000936350fed2cb6c54058890d2d19c5ccba4f", + "reference": "d1000936350fed2cb6c54058890d2d19c5ccba4f", "shasum": "" }, "require": { @@ -87,12 +87,12 @@ "php-coveralls/php-coveralls": "^2.1", "phpunit/phpunit": "^7.5.1" }, - "time": "2019-02-10T01:35:49+00:00", + "time": "2019-08-18T18:27:45+00:00", "type": "library", "installation-source": "dist", "autoload": { - "psr-0": { - "PHPHtmlParser": "src/" + "psr-4": { + "PHPHtmlParser\\": "src/PHPHtmlParser" } }, "notification-url": "https://packagist.org/downloads/", @@ -164,27 +164,27 @@ }, { "name": "psr/log", - "version": "1.1.0", - "version_normalized": "1.1.0.0", + "version": "1.1.2", + "version_normalized": "1.1.2.0", "source": { "type": "git", "url": "https://github.com/php-fig/log.git", - "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd" + "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801" }, "dist": { "type": "zip", - "url": "https://api.github.com/repos/php-fig/log/zipball/6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", - "reference": "6c001f1daafa3a3ac1d8ff69ee4db8e799a654dd", + "url": "https://api.github.com/repos/php-fig/log/zipball/446d54b4cb6bf489fc9d75f55843658e6f25d801", + "reference": "446d54b4cb6bf489fc9d75f55843658e6f25d801", "shasum": "" }, "require": { "php": ">=5.3.0" }, - "time": "2018-11-20T15:27:04+00:00", + "time": "2019-11-01T11:05:21+00:00", "type": "library", "extra": { "branch-alias": { - "dev-master": "1.0.x-dev" + "dev-master": "1.1.x-dev" } }, "installation-source": "dist", diff --git a/vendor/paquettg/php-html-parser/composer.json b/vendor/paquettg/php-html-parser/composer.json index 108b710..de61775 100644 --- a/vendor/paquettg/php-html-parser/composer.json +++ b/vendor/paquettg/php-html-parser/composer.json @@ -1,7 +1,7 @@ { "name": "paquettg/php-html-parser", "type": "library", - "version": "2.0.2", + "version": "2.1.0", "description": "An HTML DOM parser. It allows you to manipulate HTML. Find tags on an HTML page with selectors just like jQuery.", "keywords": ["html", "dom", "parser"], "homepage": "https://github.com/paquettg/php-html-parser", @@ -24,10 +24,8 @@ "php-coveralls/php-coveralls": "^2.1" }, "autoload": { - "psr-0": { - "PHPHtmlParser": "src/" + "psr-4": { + "PHPHtmlParser\\": "src/PHPHtmlParser" } - }, - "minimum-stability": "dev", - "prefer-stable": true + } } diff --git a/vendor/paquettg/php-html-parser/src/PHPHtmlParser/Content.php b/vendor/paquettg/php-html-parser/src/PHPHtmlParser/Content.php index 0aa6b1c..f2c6d5d 100644 --- a/vendor/paquettg/php-html-parser/src/PHPHtmlParser/Content.php +++ b/vendor/paquettg/php-html-parser/src/PHPHtmlParser/Content.php @@ -1,4 +1,4 @@ -isLoaded(); - return $this->root->find($selector, $nth); + return $this->root->find($selector, $nth, $this->options->get('depthFirstSearch')); } /** * Find element by Id on the root node - * * @param int $id - * @return mixed + * @return bool|AbstractNode + * @throws ChildNotFoundException + * @throws NotLoadedException + * @throws ParentNotFoundException */ public function findById(int $id) { @@ -356,10 +373,11 @@ public function clearNoSlashTags(): Dom /** * Simple wrapper function that returns the first child. - * - * @return \PHPHtmlParser\Dom\AbstractNode + * @return AbstractNode + * @throws ChildNotFoundException + * @throws NotLoadedException */ - public function firstChild(): \PHPHtmlParser\Dom\AbstractNode + public function firstChild(): AbstractNode { $this->isLoaded(); @@ -368,10 +386,11 @@ public function firstChild(): \PHPHtmlParser\Dom\AbstractNode /** * Simple wrapper function that returns the last child. - * - * @return \PHPHtmlParser\Dom\AbstractNode + * @return AbstractNode + * @throws ChildNotFoundException + * @throws NotLoadedException */ - public function lastChild(): \PHPHtmlParser\Dom\AbstractNode + public function lastChild(): AbstractNode { $this->isLoaded(); @@ -382,6 +401,7 @@ public function lastChild(): \PHPHtmlParser\Dom\AbstractNode * Simple wrapper function that returns count of child elements * * @return int + * @throws NotLoadedException */ public function countChildren(): int { @@ -394,6 +414,7 @@ public function countChildren(): int * Get array of children * * @return array + * @throws NotLoadedException */ public function getChildren(): array { @@ -406,6 +427,7 @@ public function getChildren(): array * Check if node have children nodes * * @return bool + * @throws NotLoadedException */ public function hasChildren(): bool { @@ -417,9 +439,10 @@ public function hasChildren(): bool /** * Simple wrapper function that returns an element by the * id. - * - * @param string $id - * @return \PHPHtmlParser\Dom\AbstractNode|null + * @param $id + * @return mixed|Collection|null + * @throws ChildNotFoundException + * @throws NotLoadedException */ public function getElementById($id) { @@ -431,9 +454,10 @@ public function getElementById($id) /** * Simple wrapper function that returns all elements by * tag name. - * * @param string $name - * @return mixed + * @return mixed|Collection|null + * @throws ChildNotFoundException + * @throws NotLoadedException */ public function getElementsByTag(string $name) { @@ -445,9 +469,10 @@ public function getElementsByTag(string $name) /** * Simple wrapper function that returns all elements by * class name. - * * @param string $class - * @return mixed + * @return mixed|Collection|null + * @throws ChildNotFoundException + * @throws NotLoadedException */ public function getElementsByClass(string $class) { @@ -502,35 +527,43 @@ protected function clean(string $str): string $str = mb_eregi_replace("", '', $str); // strip out