Changeset 2825124
- Timestamp:
- 11/28/2022 09:51:26 AM (3 years ago)
- Location:
- easycontent
- Files:
-
- 2 added
- 38 edited
-
tags/1.1.1/vendor/autoload.php (modified) (1 diff)
-
tags/1.1.1/vendor/composer/autoload_classmap.php (modified) (4 diffs)
-
tags/1.1.1/vendor/composer/autoload_real.php (modified) (3 diffs)
-
tags/1.1.1/vendor/composer/autoload_static.php (modified) (6 diffs)
-
tags/1.1.1/vendor/composer/installed.json (modified) (3 diffs)
-
tags/1.1.1/vendor/composer/installed.php (modified) (1 diff)
-
tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DOM/Document.php (modified) (14 diffs)
-
tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DOM/Helper.php (added)
-
tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DOM/Node.php (modified) (3 diffs)
-
tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DOM/NodeAttribute.php (modified) (6 diffs)
-
tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DOM/NodeAttributeList.php (modified) (7 diffs)
-
tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DataTypes/Str.php (modified) (1 diff)
-
tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DataTypes/Url.php (modified) (5 diffs)
-
tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/File.php (modified) (3 diffs)
-
tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/FileList.php (modified) (10 diffs)
-
tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/Parsers/BaseParser.php (modified) (2 diffs)
-
tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/Parsers/SrcsetParser.php (modified) (2 diffs)
-
tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/Parsers/StyleParser.php (modified) (1 diff)
-
tags/1.1.1/vendor/mihaoo/easycontent-html-handler/tests/Unit/DOM/DocumentTest.php (modified) (3 diffs)
-
tags/1.1.1/vendor/mihaoo/easycontent-html-handler/tests/Unit/DataTypes/UrlTest.php (modified) (2 diffs)
-
trunk/vendor/autoload.php (modified) (1 diff)
-
trunk/vendor/composer/autoload_classmap.php (modified) (4 diffs)
-
trunk/vendor/composer/autoload_real.php (modified) (3 diffs)
-
trunk/vendor/composer/autoload_static.php (modified) (6 diffs)
-
trunk/vendor/composer/installed.json (modified) (3 diffs)
-
trunk/vendor/composer/installed.php (modified) (1 diff)
-
trunk/vendor/mihaoo/easycontent-html-handler/src/DOM/Document.php (modified) (14 diffs)
-
trunk/vendor/mihaoo/easycontent-html-handler/src/DOM/Helper.php (added)
-
trunk/vendor/mihaoo/easycontent-html-handler/src/DOM/Node.php (modified) (3 diffs)
-
trunk/vendor/mihaoo/easycontent-html-handler/src/DOM/NodeAttribute.php (modified) (6 diffs)
-
trunk/vendor/mihaoo/easycontent-html-handler/src/DOM/NodeAttributeList.php (modified) (7 diffs)
-
trunk/vendor/mihaoo/easycontent-html-handler/src/DataTypes/Str.php (modified) (1 diff)
-
trunk/vendor/mihaoo/easycontent-html-handler/src/DataTypes/Url.php (modified) (5 diffs)
-
trunk/vendor/mihaoo/easycontent-html-handler/src/File.php (modified) (3 diffs)
-
trunk/vendor/mihaoo/easycontent-html-handler/src/FileList.php (modified) (10 diffs)
-
trunk/vendor/mihaoo/easycontent-html-handler/src/Parsers/BaseParser.php (modified) (2 diffs)
-
trunk/vendor/mihaoo/easycontent-html-handler/src/Parsers/SrcsetParser.php (modified) (2 diffs)
-
trunk/vendor/mihaoo/easycontent-html-handler/src/Parsers/StyleParser.php (modified) (1 diff)
-
trunk/vendor/mihaoo/easycontent-html-handler/tests/Unit/DOM/DocumentTest.php (modified) (3 diffs)
-
trunk/vendor/mihaoo/easycontent-html-handler/tests/Unit/DataTypes/UrlTest.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
easycontent/tags/1.1.1/vendor/autoload.php
r2824032 r2825124 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 171f7f6a422bd3f6c7e858105a134c3a::getLoader();7 return ComposerAutoloaderInitdedf6cdf3e9e2575a2973d3cb52d50d1::getLoader(); -
easycontent/tags/1.1.1/vendor/composer/autoload_classmap.php
r2822817 r2825124 9 9 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 10 10 'EasyContent\\WordPress\\Attachment' => $baseDir . '/app/Attachment.php', 11 'EasyContent\\WordPress\\Controllers\\Actions\\BaseAction' => $baseDir . '/app/Controllers/Actions/BaseAction.php', 12 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\Connection' => $baseDir . '/app/Controllers/Actions/Main/Connection.php', 13 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\ImageProcessing' => $baseDir . '/app/Controllers/Actions/Main/ImageProcessing.php', 14 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\Import' => $baseDir . '/app/Controllers/Actions/Main/Import.php', 15 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\PublishingOptions' => $baseDir . '/app/Controllers/Actions/Main/PublishingOptions.php', 16 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\Seo' => $baseDir . '/app/Controllers/Actions/Main/Seo.php', 17 'EasyContent\\WordPress\\Controllers\\Main' => $baseDir . '/app/Controllers/Main.php', 18 'EasyContent\\WordPress\\Db\\BaseModel' => $baseDir . '/app/Db/BaseModel.php', 19 'EasyContent\\WordPress\\Db\\DbController' => $baseDir . '/app/Db/DbController.php', 20 'EasyContent\\WordPress\\Db\\Models\\Article' => $baseDir . '/app/Db/Models/Article.php', 21 'EasyContent\\WordPress\\Db\\Models\\ArticlePost' => $baseDir . '/app/Db/Models/ArticlePost.php', 22 'EasyContent\\WordPress\\Db\\Models\\Category' => $baseDir . '/app/Db/Models/Category.php', 23 'EasyContent\\WordPress\\Db\\Models\\WorkflowStage' => $baseDir . '/app/Db/Models/WorkflowStage.php', 24 'EasyContent\\WordPress\\Domain\\Seo\\SeoPack' => $baseDir . '/app/Domain/Seo/SeoPack.php', 25 'EasyContent\\WordPress\\Domain\\Seo\\SeoPackPost' => $baseDir . '/app/Domain/Seo/SeoPackPost.php', 26 'EasyContent\\WordPress\\Domain\\Seo\\SeoPackPostRepository' => $baseDir . '/app/Domain/Seo/SeoPackPostRepository.php', 27 'EasyContent\\WordPress\\Domain\\Seo\\SeoPlugin' => $baseDir . '/app/Domain/Seo/SeoPlugin.php', 28 'EasyContent\\WordPress\\Domain\\Seo\\Yoast' => $baseDir . '/app/Domain/Seo/Yoast.php', 29 'EasyContent\\WordPress\\Helpers\\ArrayHelper' => $baseDir . '/app/Helpers/ArrayHelper.php', 30 'EasyContent\\WordPress\\Helpers\\CategoriesMapper' => $baseDir . '/app/Helpers/CategoriesMapper.php', 31 'EasyContent\\WordPress\\Helpers\\PostContentProcessor' => $baseDir . '/app/Helpers/PostContentProcessor.php', 32 'EasyContent\\WordPress\\Helpers\\PublishingOptionsPageHelper' => $baseDir . '/app/Helpers/PublishingOptionsPageHelper.php', 33 'EasyContent\\WordPress\\Helpers\\TimeHelper' => $baseDir . '/app/Helpers/TimeHelper.php', 11 34 'EasyContent\\WordPress\\Implementation\\Container' => $baseDir . '/app/Implementation/Container.php', 12 35 'EasyContent\\WordPress\\Implementation\\Db\\Migration' => $baseDir . '/app/Implementation/Db/Migration.php', … … 46 69 'EasyContent\\WordPress\\Implementation\\Http\\Exception\\NotFoundException' => $baseDir . '/app/Implementation/Http/Exception/NotFoundException.php', 47 70 'EasyContent\\WordPress\\Implementation\\Http\\Method' => $baseDir . '/app/Implementation/Http/Method.php', 71 'EasyContent\\WordPress\\Infrastructure\\SeoPackPostRepository' => $baseDir . '/app/Infrastructure/SeoPackPostRepository.php', 48 72 'EasyContent\\WordPress\\ListTableManager' => $baseDir . '/app/ListTableManager.php', 49 73 'EasyContent\\WordPress\\MediaList' => $baseDir . '/app/MediaList.php', 74 'EasyContent\\WordPress\\Metaboxes\\MetaBoxesManager' => $baseDir . '/app/Metaboxes/MetaBoxesManager.php', 75 'EasyContent\\WordPress\\Metaboxes\\PostSyncMetaBox' => $baseDir . '/app/Metaboxes/PostSyncMetaBox.php', 50 76 'EasyContent\\WordPress\\NoticesManager' => $baseDir . '/app/NoticesManager.php', 77 'EasyContent\\WordPress\\Notices\\AdminNotice' => $baseDir . '/app/Notices/AdminNotice.php', 78 'EasyContent\\WordPress\\Notices\\AdminNoticeInterface' => $baseDir . '/app/Notices/AdminNoticeInterface.php', 79 'EasyContent\\WordPress\\Notices\\AdminNoticesService' => $baseDir . '/app/Notices/AdminNoticesService.php', 80 'EasyContent\\WordPress\\Pages\\Import\\ArticlesListTable' => $baseDir . '/app/Pages/Import/ArticlesListTable.php', 81 'EasyContent\\WordPress\\Pages\\PagesManager' => $baseDir . '/app/Pages/PagesManager.php', 51 82 'EasyContent\\WordPress\\Plugin' => $baseDir . '/app/Plugin.php', 52 83 'EasyContent\\WordPress\\Post' => $baseDir . '/app/Post.php', 53 84 'EasyContent\\WordPress\\PostExtraDto' => $baseDir . '/app/PostExtraDto.php', 85 'EasyContent\\WordPress\\Rest\\Actions\\BaseAction' => $baseDir . '/app/Rest/Actions/BaseAction.php', 86 'EasyContent\\WordPress\\Rest\\Actions\\GetArticleDetails' => $baseDir . '/app/Rest/Actions/GetArticleDetails.php', 87 'EasyContent\\WordPress\\Rest\\Actions\\GetCategories' => $baseDir . '/app/Rest/Actions/GetCategories.php', 88 'EasyContent\\WordPress\\Rest\\Actions\\GetTags' => $baseDir . '/app/Rest/Actions/GetTags.php', 89 'EasyContent\\WordPress\\Rest\\Actions\\GetWorkflowStages' => $baseDir . '/app/Rest/Actions/GetWorkflowStages.php', 90 'EasyContent\\WordPress\\Rest\\Actions\\PublishArticle' => $baseDir . '/app/Rest/Actions/PublishArticle.php', 91 'EasyContent\\WordPress\\Rest\\Actions\\PullArticle' => $baseDir . '/app/Rest/Actions/PullArticle.php', 92 'EasyContent\\WordPress\\Rest\\Actions\\PushPost' => $baseDir . '/app/Rest/Actions/PushPost.php', 93 'EasyContent\\WordPress\\Rest\\Actions\\SetArticleWorkflowStage' => $baseDir . '/app/Rest/Actions/SetArticleWorkflowStage.php', 94 'EasyContent\\WordPress\\Rest\\Actions\\UnlinkPost' => $baseDir . '/app/Rest/Actions/UnlinkPost.php', 95 'EasyContent\\WordPress\\Rest\\RestManager' => $baseDir . '/app/Rest/RestManager.php', 54 96 'EasyContent\\WordPress\\Singleton' => $baseDir . '/app/Singleton.php', 55 97 'EasyContent\\WordPress\\Source\\Api\\Entity\\Article' => $baseDir . '/app/Source/Api/Entity/Article.php', … … 103 145 'EasyContent\\WordPress\\Source\\UseCase\\SetNewStatus\\Command' => $baseDir . '/app/Source/UseCase/SetNewStatus/Command.php', 104 146 'EasyContent\\WordPress\\Source\\UseCase\\SetNewStatus\\Handler' => $baseDir . '/app/Source/UseCase/SetNewStatus/Handler.php', 147 'EasyContent\\WordPress\\Storages\\BaseOptionsStorage' => $baseDir . '/app/Storages/BaseOptionsStorage.php', 148 'EasyContent\\WordPress\\Storages\\ImageProcessingSettings' => $baseDir . '/app/Storages/ImageProcessingSettings.php', 149 'EasyContent\\WordPress\\Storages\\PluginMisc' => $baseDir . '/app/Storages/PluginMisc.php', 150 'EasyContent\\WordPress\\Storages\\PluginSettings' => $baseDir . '/app/Storages/PluginSettings.php', 151 'EasyContent\\WordPress\\Storages\\StorageManager' => $baseDir . '/app/Storages/StorageManager.php', 105 152 'EasyContent\\WordPress\\ValueObjects\\AttachmentPost' => $baseDir . '/app/ValueObjects/AttachmentPost.php', 106 153 'EasyContent\\WordPress\\ValueObjects\\PostStatus' => $baseDir . '/app/ValueObjects/PostStatus.php', … … 109 156 'EasyContent\\WordPress\\WP_List_Table' => $baseDir . '/app/WP_List_Table.php', 110 157 'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\Document' => $vendorDir . '/mihaoo/easycontent-html-handler/src/DOM/Document.php', 158 'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\Helper' => $vendorDir . '/mihaoo/easycontent-html-handler/src/DOM/Helper.php', 111 159 'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\Node' => $vendorDir . '/mihaoo/easycontent-html-handler/src/DOM/Node.php', 112 160 'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\NodeAttribute' => $vendorDir . '/mihaoo/easycontent-html-handler/src/DOM/NodeAttribute.php', -
easycontent/tags/1.1.1/vendor/composer/autoload_real.php
r2824032 r2825124 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 171f7f6a422bd3f6c7e858105a134c3a5 class ComposerAutoloaderInitdedf6cdf3e9e2575a2973d3cb52d50d1 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 171f7f6a422bd3f6c7e858105a134c3a', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitdedf6cdf3e9e2575a2973d3cb52d50d1', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 171f7f6a422bd3f6c7e858105a134c3a', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitdedf6cdf3e9e2575a2973d3cb52d50d1', 'loadClassLoader')); 30 30 31 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 33 33 require __DIR__ . '/autoload_static.php'; 34 34 35 call_user_func(\Composer\Autoload\ComposerStaticInit 171f7f6a422bd3f6c7e858105a134c3a::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1::getInitializer($loader)); 36 36 } else { 37 37 $map = require __DIR__ . '/autoload_namespaces.php'; -
easycontent/tags/1.1.1/vendor/composer/autoload_static.php
r2824032 r2825124 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 171f7f6a422bd3f6c7e858105a134c3a7 class ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 32 32 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 33 33 'EasyContent\\WordPress\\Attachment' => __DIR__ . '/../..' . '/app/Attachment.php', 34 'EasyContent\\WordPress\\Controllers\\Actions\\BaseAction' => __DIR__ . '/../..' . '/app/Controllers/Actions/BaseAction.php', 35 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\Connection' => __DIR__ . '/../..' . '/app/Controllers/Actions/Main/Connection.php', 36 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\ImageProcessing' => __DIR__ . '/../..' . '/app/Controllers/Actions/Main/ImageProcessing.php', 37 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\Import' => __DIR__ . '/../..' . '/app/Controllers/Actions/Main/Import.php', 38 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\PublishingOptions' => __DIR__ . '/../..' . '/app/Controllers/Actions/Main/PublishingOptions.php', 39 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\Seo' => __DIR__ . '/../..' . '/app/Controllers/Actions/Main/Seo.php', 40 'EasyContent\\WordPress\\Controllers\\Main' => __DIR__ . '/../..' . '/app/Controllers/Main.php', 41 'EasyContent\\WordPress\\Db\\BaseModel' => __DIR__ . '/../..' . '/app/Db/BaseModel.php', 42 'EasyContent\\WordPress\\Db\\DbController' => __DIR__ . '/../..' . '/app/Db/DbController.php', 43 'EasyContent\\WordPress\\Db\\Models\\Article' => __DIR__ . '/../..' . '/app/Db/Models/Article.php', 44 'EasyContent\\WordPress\\Db\\Models\\ArticlePost' => __DIR__ . '/../..' . '/app/Db/Models/ArticlePost.php', 45 'EasyContent\\WordPress\\Db\\Models\\Category' => __DIR__ . '/../..' . '/app/Db/Models/Category.php', 46 'EasyContent\\WordPress\\Db\\Models\\WorkflowStage' => __DIR__ . '/../..' . '/app/Db/Models/WorkflowStage.php', 47 'EasyContent\\WordPress\\Domain\\Seo\\SeoPack' => __DIR__ . '/../..' . '/app/Domain/Seo/SeoPack.php', 48 'EasyContent\\WordPress\\Domain\\Seo\\SeoPackPost' => __DIR__ . '/../..' . '/app/Domain/Seo/SeoPackPost.php', 49 'EasyContent\\WordPress\\Domain\\Seo\\SeoPackPostRepository' => __DIR__ . '/../..' . '/app/Domain/Seo/SeoPackPostRepository.php', 50 'EasyContent\\WordPress\\Domain\\Seo\\SeoPlugin' => __DIR__ . '/../..' . '/app/Domain/Seo/SeoPlugin.php', 51 'EasyContent\\WordPress\\Domain\\Seo\\Yoast' => __DIR__ . '/../..' . '/app/Domain/Seo/Yoast.php', 52 'EasyContent\\WordPress\\Helpers\\ArrayHelper' => __DIR__ . '/../..' . '/app/Helpers/ArrayHelper.php', 53 'EasyContent\\WordPress\\Helpers\\CategoriesMapper' => __DIR__ . '/../..' . '/app/Helpers/CategoriesMapper.php', 54 'EasyContent\\WordPress\\Helpers\\PostContentProcessor' => __DIR__ . '/../..' . '/app/Helpers/PostContentProcessor.php', 55 'EasyContent\\WordPress\\Helpers\\PublishingOptionsPageHelper' => __DIR__ . '/../..' . '/app/Helpers/PublishingOptionsPageHelper.php', 56 'EasyContent\\WordPress\\Helpers\\TimeHelper' => __DIR__ . '/../..' . '/app/Helpers/TimeHelper.php', 34 57 'EasyContent\\WordPress\\Implementation\\Container' => __DIR__ . '/../..' . '/app/Implementation/Container.php', 35 58 'EasyContent\\WordPress\\Implementation\\Db\\Migration' => __DIR__ . '/../..' . '/app/Implementation/Db/Migration.php', … … 69 92 'EasyContent\\WordPress\\Implementation\\Http\\Exception\\NotFoundException' => __DIR__ . '/../..' . '/app/Implementation/Http/Exception/NotFoundException.php', 70 93 'EasyContent\\WordPress\\Implementation\\Http\\Method' => __DIR__ . '/../..' . '/app/Implementation/Http/Method.php', 94 'EasyContent\\WordPress\\Infrastructure\\SeoPackPostRepository' => __DIR__ . '/../..' . '/app/Infrastructure/SeoPackPostRepository.php', 71 95 'EasyContent\\WordPress\\ListTableManager' => __DIR__ . '/../..' . '/app/ListTableManager.php', 72 96 'EasyContent\\WordPress\\MediaList' => __DIR__ . '/../..' . '/app/MediaList.php', 97 'EasyContent\\WordPress\\Metaboxes\\MetaBoxesManager' => __DIR__ . '/../..' . '/app/Metaboxes/MetaBoxesManager.php', 98 'EasyContent\\WordPress\\Metaboxes\\PostSyncMetaBox' => __DIR__ . '/../..' . '/app/Metaboxes/PostSyncMetaBox.php', 73 99 'EasyContent\\WordPress\\NoticesManager' => __DIR__ . '/../..' . '/app/NoticesManager.php', 100 'EasyContent\\WordPress\\Notices\\AdminNotice' => __DIR__ . '/../..' . '/app/Notices/AdminNotice.php', 101 'EasyContent\\WordPress\\Notices\\AdminNoticeInterface' => __DIR__ . '/../..' . '/app/Notices/AdminNoticeInterface.php', 102 'EasyContent\\WordPress\\Notices\\AdminNoticesService' => __DIR__ . '/../..' . '/app/Notices/AdminNoticesService.php', 103 'EasyContent\\WordPress\\Pages\\Import\\ArticlesListTable' => __DIR__ . '/../..' . '/app/Pages/Import/ArticlesListTable.php', 104 'EasyContent\\WordPress\\Pages\\PagesManager' => __DIR__ . '/../..' . '/app/Pages/PagesManager.php', 74 105 'EasyContent\\WordPress\\Plugin' => __DIR__ . '/../..' . '/app/Plugin.php', 75 106 'EasyContent\\WordPress\\Post' => __DIR__ . '/../..' . '/app/Post.php', 76 107 'EasyContent\\WordPress\\PostExtraDto' => __DIR__ . '/../..' . '/app/PostExtraDto.php', 108 'EasyContent\\WordPress\\Rest\\Actions\\BaseAction' => __DIR__ . '/../..' . '/app/Rest/Actions/BaseAction.php', 109 'EasyContent\\WordPress\\Rest\\Actions\\GetArticleDetails' => __DIR__ . '/../..' . '/app/Rest/Actions/GetArticleDetails.php', 110 'EasyContent\\WordPress\\Rest\\Actions\\GetCategories' => __DIR__ . '/../..' . '/app/Rest/Actions/GetCategories.php', 111 'EasyContent\\WordPress\\Rest\\Actions\\GetTags' => __DIR__ . '/../..' . '/app/Rest/Actions/GetTags.php', 112 'EasyContent\\WordPress\\Rest\\Actions\\GetWorkflowStages' => __DIR__ . '/../..' . '/app/Rest/Actions/GetWorkflowStages.php', 113 'EasyContent\\WordPress\\Rest\\Actions\\PublishArticle' => __DIR__ . '/../..' . '/app/Rest/Actions/PublishArticle.php', 114 'EasyContent\\WordPress\\Rest\\Actions\\PullArticle' => __DIR__ . '/../..' . '/app/Rest/Actions/PullArticle.php', 115 'EasyContent\\WordPress\\Rest\\Actions\\PushPost' => __DIR__ . '/../..' . '/app/Rest/Actions/PushPost.php', 116 'EasyContent\\WordPress\\Rest\\Actions\\SetArticleWorkflowStage' => __DIR__ . '/../..' . '/app/Rest/Actions/SetArticleWorkflowStage.php', 117 'EasyContent\\WordPress\\Rest\\Actions\\UnlinkPost' => __DIR__ . '/../..' . '/app/Rest/Actions/UnlinkPost.php', 118 'EasyContent\\WordPress\\Rest\\RestManager' => __DIR__ . '/../..' . '/app/Rest/RestManager.php', 77 119 'EasyContent\\WordPress\\Singleton' => __DIR__ . '/../..' . '/app/Singleton.php', 78 120 'EasyContent\\WordPress\\Source\\Api\\Entity\\Article' => __DIR__ . '/../..' . '/app/Source/Api/Entity/Article.php', … … 126 168 'EasyContent\\WordPress\\Source\\UseCase\\SetNewStatus\\Command' => __DIR__ . '/../..' . '/app/Source/UseCase/SetNewStatus/Command.php', 127 169 'EasyContent\\WordPress\\Source\\UseCase\\SetNewStatus\\Handler' => __DIR__ . '/../..' . '/app/Source/UseCase/SetNewStatus/Handler.php', 170 'EasyContent\\WordPress\\Storages\\BaseOptionsStorage' => __DIR__ . '/../..' . '/app/Storages/BaseOptionsStorage.php', 171 'EasyContent\\WordPress\\Storages\\ImageProcessingSettings' => __DIR__ . '/../..' . '/app/Storages/ImageProcessingSettings.php', 172 'EasyContent\\WordPress\\Storages\\PluginMisc' => __DIR__ . '/../..' . '/app/Storages/PluginMisc.php', 173 'EasyContent\\WordPress\\Storages\\PluginSettings' => __DIR__ . '/../..' . '/app/Storages/PluginSettings.php', 174 'EasyContent\\WordPress\\Storages\\StorageManager' => __DIR__ . '/../..' . '/app/Storages/StorageManager.php', 128 175 'EasyContent\\WordPress\\ValueObjects\\AttachmentPost' => __DIR__ . '/../..' . '/app/ValueObjects/AttachmentPost.php', 129 176 'EasyContent\\WordPress\\ValueObjects\\PostStatus' => __DIR__ . '/../..' . '/app/ValueObjects/PostStatus.php', … … 132 179 'EasyContent\\WordPress\\WP_List_Table' => __DIR__ . '/../..' . '/app/WP_List_Table.php', 133 180 'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\Document' => __DIR__ . '/..' . '/mihaoo/easycontent-html-handler/src/DOM/Document.php', 181 'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\Helper' => __DIR__ . '/..' . '/mihaoo/easycontent-html-handler/src/DOM/Helper.php', 134 182 'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\Node' => __DIR__ . '/..' . '/mihaoo/easycontent-html-handler/src/DOM/Node.php', 135 183 'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\NodeAttribute' => __DIR__ . '/..' . '/mihaoo/easycontent-html-handler/src/DOM/NodeAttribute.php', … … 147 195 { 148 196 return \Closure::bind(function () use ($loader) { 149 $loader->prefixLengthsPsr4 = ComposerStaticInit 171f7f6a422bd3f6c7e858105a134c3a::$prefixLengthsPsr4;150 $loader->prefixDirsPsr4 = ComposerStaticInit 171f7f6a422bd3f6c7e858105a134c3a::$prefixDirsPsr4;151 $loader->classMap = ComposerStaticInit 171f7f6a422bd3f6c7e858105a134c3a::$classMap;197 $loader->prefixLengthsPsr4 = ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1::$prefixLengthsPsr4; 198 $loader->prefixDirsPsr4 = ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1::$prefixDirsPsr4; 199 $loader->classMap = ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1::$classMap; 152 200 153 201 }, null, ClassLoader::class); -
easycontent/tags/1.1.1/vendor/composer/installed.json
r2822817 r2825124 8 8 "type": "git", 9 9 "url": "https://bitbucket.org/MihaOo/easycontent.io-html-handler.git", 10 "reference": " 8ce1853f7b33dd3c3b0d30b105d71b5c55ea89b6"10 "reference": "96f713f4fbda252e46f6ade18e4c90e21a583f27" 11 11 }, 12 12 "dist": { 13 13 "type": "zip", 14 "url": "https://bitbucket.org/MihaOo/easycontent.io-html-handler/get/ 8ce1853f7b33dd3c3b0d30b105d71b5c55ea89b6.zip",15 "reference": " 8ce1853f7b33dd3c3b0d30b105d71b5c55ea89b6",14 "url": "https://bitbucket.org/MihaOo/easycontent.io-html-handler/get/96f713f4fbda252e46f6ade18e4c90e21a583f27.zip", 15 "reference": "96f713f4fbda252e46f6ade18e4c90e21a583f27", 16 16 "shasum": "" 17 17 }, … … 24 24 "phpunit/phpunit": "7.5.13" 25 25 }, 26 "time": "2021-05-13T13:15:58+00:00", 26 "time": "2022-11-21T11:55:45+00:00", 27 "default-branch": true, 27 28 "type": "library", 28 29 "installation-source": "dist", … … 44 45 "description": "Tool to perform DOM manipulations with articles that was written with easyContent.io", 45 46 "homepage": "https://bitbucket.org/MihaOo/easycontent.io-html-handler", 47 "support": { 48 "source": "https://bitbucket.org/MihaOo/easycontent.io-html-handler/src/96f713f4fbda252e46f6ade18e4c90e21a583f27/?at=master" 49 }, 46 50 "install-path": "../mihaoo/easycontent-html-handler" 47 51 } -
easycontent/tags/1.1.1/vendor/composer/installed.php
r2822817 r2825124 25 25 'type' => 'library', 26 26 'install_path' => __DIR__ . '/../mihaoo/easycontent-html-handler', 27 'aliases' => array(), 28 'reference' => '8ce1853f7b33dd3c3b0d30b105d71b5c55ea89b6', 27 'aliases' => array( 28 0 => '9999999-dev', 29 ), 30 'reference' => '96f713f4fbda252e46f6ade18e4c90e21a583f27', 29 31 'dev_requirement' => false, 30 32 ), -
easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DOM/Document.php
r2614777 r2825124 3 3 namespace PhpGangsters\EasyContent\HtmlHandler\DOM; 4 4 5 use PhpGangsters\EasyContent\HtmlHandler\DataTypes\Str;6 5 use PhpGangsters\EasyContent\HtmlHandler\DataTypes\Url; 7 6 use PhpGangsters\EasyContent\HtmlHandler\FileList; 8 7 9 class Document extends \DOMDocument8 final class Document extends \DOMDocument 10 9 { 11 10 /** @var array|\LibXMLError[] $loadingErrors */ 12 pr otected$loadingErrors = [];13 14 protected static $nodeNamesToProcess= [11 private $loadingErrors = []; 12 13 const NODE_NAMES_TO_PROCESS = [ 15 14 'a' => ['href' => Url::ANY_URL], 16 15 'area' => ['href' => Url::ANY_URL], … … 37 36 * @var FileList $filesList 38 37 */ 39 pr otected$filesList;38 private $filesList; 40 39 41 40 /** 42 41 * @var array|Node[] $nodes 43 42 */ 44 pr otected$nodes = [];43 private $nodes = []; 45 44 46 45 /** 47 46 * @var int $processedNodes 48 47 */ 49 pr otected$processedNodes = 0;48 private $processedNodes = 0; 50 49 51 50 /** 52 51 * @var float $parsingTime 53 52 */ 54 pr otected$parsingTime = 0;53 private $parsingTime = 0; 55 54 56 55 /** 57 56 * @var string $urlBase 58 57 */ 59 protected $urlBase = ''; 60 58 private $urlBase = ''; 61 59 62 60 public function __construct($version = '', $encoding = '', $urlBase = Url::LIVE_BASE) … … 75 73 } 76 74 77 78 protected function reset() 75 private function reset() 79 76 { 80 77 $this->processedNodes = 0; … … 84 81 } 85 82 86 87 83 /** 88 84 * @param string $source The HTML string … … 112 108 } 113 109 114 115 110 public function saveHTML($node = null) 116 111 { … … 121 116 } 122 117 123 124 /**125 * Removes node but saves all child nodes on removed node's place126 *127 * @param \DOMElement $node128 */129 public function removeChildOuter($node)130 {131 if (!$node->parentNode) {132 // This is probably root node and we unable to delete it133 return;134 }135 136 $sibling = $node->firstChild;137 138 do {139 $next = $sibling->nextSibling;140 $node->parentNode->insertBefore($sibling, $node);141 } while ($sibling = $next);142 143 $node->parentNode->removeChild($node);144 }145 146 147 118 public function removeAnnotations() 148 119 { … … 152 123 /** @var \DOMElement $spanNode*/ 153 124 foreach ($spans as $spanNode) { 154 $classesString = $spanNode->getAttribute('class'); 155 156 if (!$classesString) { 157 continue; 158 } 159 160 $classesString = (new Str($classesString))->removeExtraWhitespaces()->getValue(); 161 162 $classes = explode(' ', $classesString); 163 164 if (in_array('annotation', $classes)) { 165 $this->removeChildOuter($spanNode); 125 if (Helper::isOldAnnotationsNode($spanNode)) { 126 Helper::removeChildOuter($spanNode); 166 127 } 167 128 } … … 169 130 /** @var \DOMElement $markNode*/ 170 131 foreach ($marks as $markNode) { 171 if ($this->isNewAnnotationsNode($markNode)) { 172 $this->removeChildOuter($markNode); 173 } 174 } 175 } 176 177 private function isNewAnnotationsNode(\DOMElement $node) 178 { 179 if (!($classesString = $node->getAttribute('class'))) { 180 return false; 181 } 182 183 $classesString = (new Str($classesString))->removeExtraWhitespaces()->getValue(); 184 $classes = explode(' ', $classesString); 185 186 return in_array('assignment-comment', $classes, true); 132 if (Helper::isNewAnnotationsNode($markNode)) { 133 Helper::removeChildOuter($markNode); 134 } 135 } 187 136 } 188 137 … … 192 141 } 193 142 194 195 143 public function getProcessedNodesNumber() 196 144 { … … 198 146 } 199 147 200 201 148 public function getDOMParsingTime() 202 149 { … … 204 151 } 205 152 206 207 153 public function getFilesList() 208 154 { … … 210 156 } 211 157 212 213 158 public function getNodes() 214 159 { 215 160 return $this->nodes; 216 161 } 217 218 162 219 163 public function parse() … … 227 171 } 228 172 229 230 /** 231 * @param \DOMElement $node 232 */ 233 protected function processNode($node) 173 private function processNode(\DOMElement $node) 234 174 { 235 175 ++$this->processedNodes; … … 247 187 $nodeName = strtolower($node->nodeName); 248 188 249 $nodeAttributesToProcess = isset(Document::$nodeNamesToProcess[$nodeName])250 ? Document::$nodeNamesToProcess[$nodeName]189 $nodeAttributesToProcess = array_key_exists($nodeName, self::NODE_NAMES_TO_PROCESS) 190 ? self::NODE_NAMES_TO_PROCESS[$nodeName] 251 191 : []; 252 192 253 if ($nodeAttributesToProcess) { 254 foreach ($nodeAttributesToProcess as $attributeName => $urlType) { 255 $attributeValue = $node->getAttribute($attributeName); 256 257 if (!$attributeValue) { 258 continue; 259 } 260 261 $attribute = new NodeAttribute($attributeName, $attributeValue, $urlType); 262 $detectedFiles = $attribute->parse($this->urlBase); 263 264 if (!$attribute->noUrlsFound()) { 265 $this->filesList->merge($detectedFiles); 266 $nodeObject->addAttribute($attribute); 267 } 268 } 193 foreach ($nodeAttributesToProcess as $attributeName => $urlType) { 194 if (!$attributeValue = $node->getAttribute($attributeName)) { 195 continue; 196 } 197 198 $attribute = new NodeAttribute($attributeName, $attributeValue, $urlType); 199 $detectedFiles = $attribute->parse($this->urlBase); 200 201 if ($attribute->noUrlsFound()) { 202 continue; 203 } 204 205 $this->filesList->merge($detectedFiles); 206 $nodeObject->addAttribute($attribute); 269 207 } 270 208 -
easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DOM/Node.php
r2547693 r2825124 3 3 namespace PhpGangsters\EasyContent\HtmlHandler\DOM; 4 4 5 class Node5 final class Node 6 6 { 7 7 /** @var \DOMElement $sourceNode */ 8 pr otected$sourceNode;8 private $sourceNode; 9 9 10 10 /** @var NodeAttributeList $attributes */ 11 pr otected$attributes;11 private $attributes; 12 12 13 14 public function __construct($node) 13 public function __construct(\DOMElement $node) 15 14 { 16 15 $this->sourceNode = $node; … … 18 17 } 19 18 20 21 /** 22 * @param NodeAttribute $attribute 23 */ 24 public function addAttribute($attribute) 19 public function addAttribute(NodeAttribute $attribute) 25 20 { 26 21 $this->attributes->addAttribute($attribute); 27 22 } 28 29 23 30 24 public function isAttributesListEmpty() … … 33 27 } 34 28 35 36 29 public function getSourceNode() 37 30 { 38 31 return $this->sourceNode; 39 32 } 40 41 33 42 34 public function getAttributeList() -
easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DOM/NodeAttribute.php
r2547693 r2825124 8 8 use PhpGangsters\EasyContent\HtmlHandler\Parsers\SrcsetParser; 9 9 10 class NodeAttribute10 final class NodeAttribute 11 11 { 12 12 const SRC = 'src'; … … 18 18 19 19 /** @var string $name */ 20 pr otected$name;20 private $name; 21 21 22 22 /** @var string $value */ 23 pr otected$value;23 private $value; 24 24 25 25 /** @var FileList $filesList */ 26 pr otected$filesList;26 private $filesList; 27 27 28 28 /** @var int $expectedUrlType */ 29 protected $expectedUrlType; 30 29 private $expectedUrlType; 31 30 32 31 public function __construct($name, $value, $expectedUrlType) … … 38 37 } 39 38 40 41 39 public function getName() 42 40 { 43 41 return $this->name; 44 42 } 45 46 43 47 44 public function getValue() … … 50 47 } 51 48 52 53 49 public function getFileList() 54 50 { … … 56 52 } 57 53 58 59 54 public function getExpectedUrlType() 60 55 { 61 56 return $this->expectedUrlType; 62 57 } 63 64 58 65 59 public function parse($base = Url::LIVE_BASE) … … 72 66 } 73 67 74 75 68 public function noUrlsFound() 76 69 { -
easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DOM/NodeAttributeList.php
r2547693 r2825124 3 3 namespace PhpGangsters\EasyContent\HtmlHandler\DOM; 4 4 5 class NodeAttributeList implements \IteratorAggregate, \Countable, \ArrayAccess5 final class NodeAttributeList implements \IteratorAggregate, \Countable, \ArrayAccess 6 6 { 7 7 /** @var array|NodeAttribute[] $items */ 8 protected $items = []; 9 8 private $items = []; 10 9 11 10 public function getIterator() … … 14 13 } 15 14 16 17 15 public function count() 18 16 { 19 17 return count($this->items); 20 18 } 21 22 19 23 20 public function offsetExists($attributeName) … … 26 23 } 27 24 28 29 25 public function offsetGet($attributeName) 30 26 { 31 27 return $this->get($attributeName); 32 28 } 33 34 29 35 30 public function offsetSet($attributeName, $nodeAttribute) … … 38 33 } 39 34 40 41 35 public function offsetUnset($url) { } 42 43 36 44 37 public function has($attributeName) … … 47 40 } 48 41 49 50 42 public function get($attributeName) 51 43 { … … 53 45 } 54 46 55 56 47 /** 57 48 * @param string $attributeName 58 49 * @param NodeAttribute $nodeAttribute 59 50 */ 60 public function add($attributeName, $nodeAttribute)51 public function add($attributeName, NodeAttribute $nodeAttribute) 61 52 { 62 53 if ($this->has($attributeName)) { … … 68 59 } 69 60 70 71 /** 72 * @param NodeAttribute $attribute 73 */ 74 public function addAttribute($attribute) 61 public function addAttribute(NodeAttribute $attribute) 75 62 { 76 63 $this->add($attribute->getName(), $attribute); 77 64 } 78 79 65 80 66 public function isEmpty() -
easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DataTypes/Str.php
r2547693 r2825124 3 3 namespace PhpGangsters\EasyContent\HtmlHandler\DataTypes; 4 4 5 class Str5 final class Str 6 6 { 7 /** 8 * @var string $sourceString 9 */ 10 protected $sourceString; 11 12 13 public function __construct($str) 7 public static function removeExtraWhitespaces($str) 14 8 { 15 $this->sourceString = $str; 16 } 17 18 19 public function __toString() 20 { 21 return $this->getValue(); 22 } 23 24 25 public function getValue() 26 { 27 return $this->sourceString; 28 } 29 30 31 public function removeExtraWhitespaces() 32 { 33 $processedString = mb_ereg_replace("[ \t\n\r\0\x0B]+", ' ', $this->sourceString); 34 $this->sourceString = trim($processedString); 35 36 return $this; 9 $processedString = mb_ereg_replace("[ \t\n\r\0\x0B]+", ' ', $str); 10 return trim($processedString); 37 11 } 38 12 } -
easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DataTypes/Url.php
r2614777 r2825124 3 3 namespace PhpGangsters\EasyContent\HtmlHandler\DataTypes; 4 4 5 class Url5 final class Url 6 6 { 7 7 const LOCAL_BASE = 'ec-local-attachments.s3.amazonaws.com'; … … 9 9 const LIVE_BASE = 'easycontent-attachments.s3.amazonaws.com'; 10 10 11 const IMAGES_URL = 0b1000; 12 const DOCUMENTS_URL = 0b0100; 13 const AUDIO_URL = 0b0010; 14 const VIDEO_URL = 0b0001; 15 const ANY_URL = 0b1111; 11 const IMAGES_URL = 0b1000; // 8 12 const DOCUMENTS_URL = 0b0100; // 4 13 const AUDIO_URL = 0b0010; // 2 14 const VIDEO_URL = 0b0001; // 1 15 const ANY_URL = 0b1111; // 15 16 16 17 17 const EXTENSIONS = [ … … 22 22 ]; 23 23 24 /** @var string $value */ 25 private $value; 24 26 25 /** 26 * @var Str $stringObject 27 */ 28 protected $stringObject; 27 /** @var int $type */ 28 private $type; 29 29 30 /** 31 * @var int $type 32 */ 33 protected $type; 34 35 36 public function __construct($urlString, $type = 0b1111) 30 public function __construct($urlString, $type = self::ANY_URL) 37 31 { 38 $this-> stringObject = new Str($urlString);32 $this->value = Str::removeExtraWhitespaces($urlString); 39 33 $this->type = $type; 40 34 } 41 42 35 43 36 public function getValuableExtensionsArray() … … 64 57 } 65 58 66 67 public function getRegularExpresion($base) 59 public function getRegularExpression($base) 68 60 { 69 $escapedBase = preg_replace('/[\$\.\+\*\(\)\/\?]/', '\\\\$0', $base); 70 61 $escapedBase = preg_quote($base, '/'); 71 62 $valuableExtensions = $this->getValuableExtensionsArray(); 72 63 $extensionPattern = '(' . implode('|', $valuableExtensions) . ')'; … … 75 66 } 76 67 77 78 public function matchesRegularExpresion($base) 68 public function matchesRegularExpression($base) 79 69 { 80 $trimmedUrl = trim($this-> stringObject->removeExtraWhitespaces()->getValue(), '/');81 $urlRegex = $this->getRegularExpres ion($base);70 $trimmedUrl = trim($this->value, '/'); 71 $urlRegex = $this->getRegularExpression($base); 82 72 $pattern = "/^{$urlRegex}$/i"; 83 73 84 return 1 === preg_match($pattern, $trimmedUrl); // Url matches regular expres ion74 return 1 === preg_match($pattern, $trimmedUrl); // Url matches regular expression 85 75 86 76 // TODO: Maybe process url on different languages -
easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/File.php
r2547693 r2825124 3 3 namespace PhpGangsters\EasyContent\HtmlHandler; 4 4 5 class File5 final class File 6 6 { 7 7 /** @var string $s3Url */ 8 pr otected$s3Url;8 private $s3Url; 9 9 10 10 /** @var null|string $wpUrl */ 11 protected $wpUrl; 12 11 private $wpUrl; 13 12 14 13 public function __construct($s3Url) … … 17 16 } 18 17 19 20 18 public function getS3Url() 21 19 { 22 20 return $this->s3Url; 23 21 } 24 25 22 26 23 public function getWPUrl() … … 29 26 } 30 27 31 32 28 public function setWPUrl($url) 33 29 { 34 30 $this->wpUrl = $url; 35 31 } 36 37 32 38 33 public static function getFileNameFromS3Url($url) -
easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/FileList.php
r2547693 r2825124 3 3 namespace PhpGangsters\EasyContent\HtmlHandler; 4 4 5 class FileList implements \IteratorAggregate, \Countable, \ArrayAccess5 final class FileList implements \IteratorAggregate, \Countable, \ArrayAccess 6 6 { 7 7 /** @var File[] $items */ 8 protected $items = []; 9 8 private $items = []; 10 9 11 10 public function getIterator() … … 14 13 } 15 14 16 17 15 public function count() 18 16 { 19 17 return count($this->items); 20 18 } 21 22 19 23 20 public function offsetExists($url) … … 26 23 } 27 24 28 29 25 public function offsetGet($url) 30 26 { 31 27 return $this->get($url); 32 28 } 33 34 29 35 30 public function offsetSet($url, $file) … … 38 33 } 39 34 40 41 35 public function offsetUnset($url) { } 42 43 36 44 37 public function has($url) … … 47 40 } 48 41 49 50 42 public function get($url) 51 43 { 52 44 return $this->has($url) ? $this->items[$url] : null; 53 45 } 54 55 46 56 47 public function add($url, $file) … … 63 54 } 64 55 65 66 56 /** 67 57 * @param File $file … … 71 61 $this->add($file->getS3Url(), $file); 72 62 } 73 74 63 75 64 public function getFileNames() … … 81 70 } 82 71 83 84 72 public function isEmpty() 85 73 { … … 87 75 } 88 76 89 90 public function addFilesFromArray($urls) 77 public function addFilesFromArray(array $urls) 91 78 { 92 79 foreach ($urls as $url) { … … 95 82 } 96 83 97 98 84 public function getItems() 99 85 { 100 86 return $this->items; 101 87 } 102 103 88 104 89 /** -
easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/Parsers/BaseParser.php
r2547693 r2825124 11 11 protected $s3UrlBase; 12 12 13 14 13 public function __construct($base) 15 14 { … … 17 16 } 18 17 19 20 18 /** 21 19 * @param NodeAttribute $nodeAttribute 22 20 * @return array|string[] 23 21 */ 24 public function parse( $nodeAttribute)22 public function parse(NodeAttribute $nodeAttribute) 25 23 { 26 24 $matches = (new Url($nodeAttribute->getValue(), $nodeAttribute->getExpectedUrlType())) 27 ->matchesRegularExpres ion($this->s3UrlBase);25 ->matchesRegularExpression($this->s3UrlBase); 28 26 29 27 return $matches ? [$nodeAttribute->getValue()] : []; -
easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/Parsers/SrcsetParser.php
r2547693 r2825124 7 7 use PhpGangsters\EasyContent\HtmlHandler\DOM\NodeAttribute; 8 8 9 class SrcsetParser extends BaseParser9 final class SrcsetParser extends BaseParser 10 10 { 11 11 /** … … 13 13 * @return array|string[] 14 14 */ 15 public function parse( $nodeAttribute)15 public function parse(NodeAttribute $nodeAttribute) 16 16 { 17 17 $urlRegex = (new Url('', $nodeAttribute->getExpectedUrlType())) 18 ->getRegularExpres ion($this->s3UrlBase);18 ->getRegularExpression($this->s3UrlBase); 19 19 20 20 $pattern = "^ ?({$urlRegex})( [1-9][0-9]*(w|x))?$"; 21 22 $normalizedAttributeValue = (new Str($nodeAttribute->getValue()))->removeExtraWhitespaces()->getValue(); 21 $normalizedAttributeValue = Str::removeExtraWhitespaces($nodeAttribute->getValue()); 23 22 24 23 $urls = []; -
easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/Parsers/StyleParser.php
r2547693 r2825124 3 3 namespace PhpGangsters\EasyContent\HtmlHandler\Parsers; 4 4 5 class StyleParser extends BaseParser 5 use PhpGangsters\EasyContent\HtmlHandler\DOM\NodeAttribute; 6 7 final class StyleParser extends BaseParser 6 8 { 7 public function parse( $string, $type = 0b1111)9 public function parse(NodeAttribute $nodeAttribute) 8 10 { 9 11 // TODO: Too hard for now. Implement later -
easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/tests/Unit/DOM/DocumentTest.php
r2547693 r2825124 5 5 use PhpGangsters\EasyContent\HtmlHandler\DataTypes\Url; 6 6 use PhpGangsters\EasyContent\HtmlHandler\DOM\Document; 7 use PhpGangsters\EasyContent\HtmlHandler\DOM\Helper; 7 8 use PhpGangsters\EasyContent\HtmlHandler\FileList; 8 9 use PHPUnit\Framework\TestCase; … … 43 44 { 44 45 $spanToDelete = $this->document->getElementById('node-to-delete'); 45 $this->document->removeChildOuter($spanToDelete);46 Helper::removeChildOuter($spanToDelete); 46 47 47 48 $this->assertEquals( … … 143 144 144 145 $this->assertEquals( 145 '< html><body>Lorem ipsum dolor sit amet</body></html>',146 '<p>Lorem ipsum dolor sit amet</p>', 146 147 $document->saveHTML() 147 148 ); -
easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/tests/Unit/DataTypes/UrlTest.php
r2547693 r2825124 26 26 $combinedUrlObject = new Url('http://google.com/lol.png', Url::IMAGES_URL | Url::AUDIO_URL); 27 27 28 $regex = $imagesUrlObject->getRegularExpres ion('google.com');29 $complexRegex = $combinedUrlObject->getRegularExpres ion('s3.aws.com');28 $regex = $imagesUrlObject->getRegularExpression('google.com'); 29 $complexRegex = $combinedUrlObject->getRegularExpression('s3.aws.com'); 30 30 31 31 $expectedRegex = 'https?:\/\/google\.com.*(jpg|jpeg|png|gif|ico)'; … … 45 45 ); 46 46 47 $result = $imagesUrlObject->matchesRegularExpres ion('ec-local-attachments.s3.amazonaws.com');48 $badResult = $imagesUrlObject->matchesRegularExpres ion('google.com');47 $result = $imagesUrlObject->matchesRegularExpression('ec-local-attachments.s3.amazonaws.com'); 48 $badResult = $imagesUrlObject->matchesRegularExpression('google.com'); 49 49 50 50 $this->assertTrue($result); -
easycontent/trunk/vendor/autoload.php
r2824032 r2825124 5 5 require_once __DIR__ . '/composer/autoload_real.php'; 6 6 7 return ComposerAutoloaderInit 171f7f6a422bd3f6c7e858105a134c3a::getLoader();7 return ComposerAutoloaderInitdedf6cdf3e9e2575a2973d3cb52d50d1::getLoader(); -
easycontent/trunk/vendor/composer/autoload_classmap.php
r2822815 r2825124 9 9 'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php', 10 10 'EasyContent\\WordPress\\Attachment' => $baseDir . '/app/Attachment.php', 11 'EasyContent\\WordPress\\Controllers\\Actions\\BaseAction' => $baseDir . '/app/Controllers/Actions/BaseAction.php', 12 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\Connection' => $baseDir . '/app/Controllers/Actions/Main/Connection.php', 13 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\ImageProcessing' => $baseDir . '/app/Controllers/Actions/Main/ImageProcessing.php', 14 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\Import' => $baseDir . '/app/Controllers/Actions/Main/Import.php', 15 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\PublishingOptions' => $baseDir . '/app/Controllers/Actions/Main/PublishingOptions.php', 16 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\Seo' => $baseDir . '/app/Controllers/Actions/Main/Seo.php', 17 'EasyContent\\WordPress\\Controllers\\Main' => $baseDir . '/app/Controllers/Main.php', 18 'EasyContent\\WordPress\\Db\\BaseModel' => $baseDir . '/app/Db/BaseModel.php', 19 'EasyContent\\WordPress\\Db\\DbController' => $baseDir . '/app/Db/DbController.php', 20 'EasyContent\\WordPress\\Db\\Models\\Article' => $baseDir . '/app/Db/Models/Article.php', 21 'EasyContent\\WordPress\\Db\\Models\\ArticlePost' => $baseDir . '/app/Db/Models/ArticlePost.php', 22 'EasyContent\\WordPress\\Db\\Models\\Category' => $baseDir . '/app/Db/Models/Category.php', 23 'EasyContent\\WordPress\\Db\\Models\\WorkflowStage' => $baseDir . '/app/Db/Models/WorkflowStage.php', 24 'EasyContent\\WordPress\\Domain\\Seo\\SeoPack' => $baseDir . '/app/Domain/Seo/SeoPack.php', 25 'EasyContent\\WordPress\\Domain\\Seo\\SeoPackPost' => $baseDir . '/app/Domain/Seo/SeoPackPost.php', 26 'EasyContent\\WordPress\\Domain\\Seo\\SeoPackPostRepository' => $baseDir . '/app/Domain/Seo/SeoPackPostRepository.php', 27 'EasyContent\\WordPress\\Domain\\Seo\\SeoPlugin' => $baseDir . '/app/Domain/Seo/SeoPlugin.php', 28 'EasyContent\\WordPress\\Domain\\Seo\\Yoast' => $baseDir . '/app/Domain/Seo/Yoast.php', 29 'EasyContent\\WordPress\\Helpers\\ArrayHelper' => $baseDir . '/app/Helpers/ArrayHelper.php', 30 'EasyContent\\WordPress\\Helpers\\CategoriesMapper' => $baseDir . '/app/Helpers/CategoriesMapper.php', 31 'EasyContent\\WordPress\\Helpers\\PostContentProcessor' => $baseDir . '/app/Helpers/PostContentProcessor.php', 32 'EasyContent\\WordPress\\Helpers\\PublishingOptionsPageHelper' => $baseDir . '/app/Helpers/PublishingOptionsPageHelper.php', 33 'EasyContent\\WordPress\\Helpers\\TimeHelper' => $baseDir . '/app/Helpers/TimeHelper.php', 11 34 'EasyContent\\WordPress\\Implementation\\Container' => $baseDir . '/app/Implementation/Container.php', 12 35 'EasyContent\\WordPress\\Implementation\\Db\\Migration' => $baseDir . '/app/Implementation/Db/Migration.php', … … 46 69 'EasyContent\\WordPress\\Implementation\\Http\\Exception\\NotFoundException' => $baseDir . '/app/Implementation/Http/Exception/NotFoundException.php', 47 70 'EasyContent\\WordPress\\Implementation\\Http\\Method' => $baseDir . '/app/Implementation/Http/Method.php', 71 'EasyContent\\WordPress\\Infrastructure\\SeoPackPostRepository' => $baseDir . '/app/Infrastructure/SeoPackPostRepository.php', 48 72 'EasyContent\\WordPress\\ListTableManager' => $baseDir . '/app/ListTableManager.php', 49 73 'EasyContent\\WordPress\\MediaList' => $baseDir . '/app/MediaList.php', 74 'EasyContent\\WordPress\\Metaboxes\\MetaBoxesManager' => $baseDir . '/app/Metaboxes/MetaBoxesManager.php', 75 'EasyContent\\WordPress\\Metaboxes\\PostSyncMetaBox' => $baseDir . '/app/Metaboxes/PostSyncMetaBox.php', 50 76 'EasyContent\\WordPress\\NoticesManager' => $baseDir . '/app/NoticesManager.php', 77 'EasyContent\\WordPress\\Notices\\AdminNotice' => $baseDir . '/app/Notices/AdminNotice.php', 78 'EasyContent\\WordPress\\Notices\\AdminNoticeInterface' => $baseDir . '/app/Notices/AdminNoticeInterface.php', 79 'EasyContent\\WordPress\\Notices\\AdminNoticesService' => $baseDir . '/app/Notices/AdminNoticesService.php', 80 'EasyContent\\WordPress\\Pages\\Import\\ArticlesListTable' => $baseDir . '/app/Pages/Import/ArticlesListTable.php', 81 'EasyContent\\WordPress\\Pages\\PagesManager' => $baseDir . '/app/Pages/PagesManager.php', 51 82 'EasyContent\\WordPress\\Plugin' => $baseDir . '/app/Plugin.php', 52 83 'EasyContent\\WordPress\\Post' => $baseDir . '/app/Post.php', 53 84 'EasyContent\\WordPress\\PostExtraDto' => $baseDir . '/app/PostExtraDto.php', 85 'EasyContent\\WordPress\\Rest\\Actions\\BaseAction' => $baseDir . '/app/Rest/Actions/BaseAction.php', 86 'EasyContent\\WordPress\\Rest\\Actions\\GetArticleDetails' => $baseDir . '/app/Rest/Actions/GetArticleDetails.php', 87 'EasyContent\\WordPress\\Rest\\Actions\\GetCategories' => $baseDir . '/app/Rest/Actions/GetCategories.php', 88 'EasyContent\\WordPress\\Rest\\Actions\\GetTags' => $baseDir . '/app/Rest/Actions/GetTags.php', 89 'EasyContent\\WordPress\\Rest\\Actions\\GetWorkflowStages' => $baseDir . '/app/Rest/Actions/GetWorkflowStages.php', 90 'EasyContent\\WordPress\\Rest\\Actions\\PublishArticle' => $baseDir . '/app/Rest/Actions/PublishArticle.php', 91 'EasyContent\\WordPress\\Rest\\Actions\\PullArticle' => $baseDir . '/app/Rest/Actions/PullArticle.php', 92 'EasyContent\\WordPress\\Rest\\Actions\\PushPost' => $baseDir . '/app/Rest/Actions/PushPost.php', 93 'EasyContent\\WordPress\\Rest\\Actions\\SetArticleWorkflowStage' => $baseDir . '/app/Rest/Actions/SetArticleWorkflowStage.php', 94 'EasyContent\\WordPress\\Rest\\Actions\\UnlinkPost' => $baseDir . '/app/Rest/Actions/UnlinkPost.php', 95 'EasyContent\\WordPress\\Rest\\RestManager' => $baseDir . '/app/Rest/RestManager.php', 54 96 'EasyContent\\WordPress\\Singleton' => $baseDir . '/app/Singleton.php', 55 97 'EasyContent\\WordPress\\Source\\Api\\Entity\\Article' => $baseDir . '/app/Source/Api/Entity/Article.php', … … 103 145 'EasyContent\\WordPress\\Source\\UseCase\\SetNewStatus\\Command' => $baseDir . '/app/Source/UseCase/SetNewStatus/Command.php', 104 146 'EasyContent\\WordPress\\Source\\UseCase\\SetNewStatus\\Handler' => $baseDir . '/app/Source/UseCase/SetNewStatus/Handler.php', 147 'EasyContent\\WordPress\\Storages\\BaseOptionsStorage' => $baseDir . '/app/Storages/BaseOptionsStorage.php', 148 'EasyContent\\WordPress\\Storages\\ImageProcessingSettings' => $baseDir . '/app/Storages/ImageProcessingSettings.php', 149 'EasyContent\\WordPress\\Storages\\PluginMisc' => $baseDir . '/app/Storages/PluginMisc.php', 150 'EasyContent\\WordPress\\Storages\\PluginSettings' => $baseDir . '/app/Storages/PluginSettings.php', 151 'EasyContent\\WordPress\\Storages\\StorageManager' => $baseDir . '/app/Storages/StorageManager.php', 105 152 'EasyContent\\WordPress\\ValueObjects\\AttachmentPost' => $baseDir . '/app/ValueObjects/AttachmentPost.php', 106 153 'EasyContent\\WordPress\\ValueObjects\\PostStatus' => $baseDir . '/app/ValueObjects/PostStatus.php', … … 109 156 'EasyContent\\WordPress\\WP_List_Table' => $baseDir . '/app/WP_List_Table.php', 110 157 'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\Document' => $vendorDir . '/mihaoo/easycontent-html-handler/src/DOM/Document.php', 158 'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\Helper' => $vendorDir . '/mihaoo/easycontent-html-handler/src/DOM/Helper.php', 111 159 'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\Node' => $vendorDir . '/mihaoo/easycontent-html-handler/src/DOM/Node.php', 112 160 'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\NodeAttribute' => $vendorDir . '/mihaoo/easycontent-html-handler/src/DOM/NodeAttribute.php', -
easycontent/trunk/vendor/composer/autoload_real.php
r2824032 r2825124 3 3 // autoload_real.php @generated by Composer 4 4 5 class ComposerAutoloaderInit 171f7f6a422bd3f6c7e858105a134c3a5 class ComposerAutoloaderInitdedf6cdf3e9e2575a2973d3cb52d50d1 6 6 { 7 7 private static $loader; … … 25 25 require __DIR__ . '/platform_check.php'; 26 26 27 spl_autoload_register(array('ComposerAutoloaderInit 171f7f6a422bd3f6c7e858105a134c3a', 'loadClassLoader'), true, true);27 spl_autoload_register(array('ComposerAutoloaderInitdedf6cdf3e9e2575a2973d3cb52d50d1', 'loadClassLoader'), true, true); 28 28 self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__))); 29 spl_autoload_unregister(array('ComposerAutoloaderInit 171f7f6a422bd3f6c7e858105a134c3a', 'loadClassLoader'));29 spl_autoload_unregister(array('ComposerAutoloaderInitdedf6cdf3e9e2575a2973d3cb52d50d1', 'loadClassLoader')); 30 30 31 31 $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded()); … … 33 33 require __DIR__ . '/autoload_static.php'; 34 34 35 call_user_func(\Composer\Autoload\ComposerStaticInit 171f7f6a422bd3f6c7e858105a134c3a::getInitializer($loader));35 call_user_func(\Composer\Autoload\ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1::getInitializer($loader)); 36 36 } else { 37 37 $map = require __DIR__ . '/autoload_namespaces.php'; -
easycontent/trunk/vendor/composer/autoload_static.php
r2824032 r2825124 5 5 namespace Composer\Autoload; 6 6 7 class ComposerStaticInit 171f7f6a422bd3f6c7e858105a134c3a7 class ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1 8 8 { 9 9 public static $prefixLengthsPsr4 = array ( … … 32 32 'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php', 33 33 'EasyContent\\WordPress\\Attachment' => __DIR__ . '/../..' . '/app/Attachment.php', 34 'EasyContent\\WordPress\\Controllers\\Actions\\BaseAction' => __DIR__ . '/../..' . '/app/Controllers/Actions/BaseAction.php', 35 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\Connection' => __DIR__ . '/../..' . '/app/Controllers/Actions/Main/Connection.php', 36 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\ImageProcessing' => __DIR__ . '/../..' . '/app/Controllers/Actions/Main/ImageProcessing.php', 37 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\Import' => __DIR__ . '/../..' . '/app/Controllers/Actions/Main/Import.php', 38 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\PublishingOptions' => __DIR__ . '/../..' . '/app/Controllers/Actions/Main/PublishingOptions.php', 39 'EasyContent\\WordPress\\Controllers\\Actions\\Main\\Seo' => __DIR__ . '/../..' . '/app/Controllers/Actions/Main/Seo.php', 40 'EasyContent\\WordPress\\Controllers\\Main' => __DIR__ . '/../..' . '/app/Controllers/Main.php', 41 'EasyContent\\WordPress\\Db\\BaseModel' => __DIR__ . '/../..' . '/app/Db/BaseModel.php', 42 'EasyContent\\WordPress\\Db\\DbController' => __DIR__ . '/../..' . '/app/Db/DbController.php', 43 'EasyContent\\WordPress\\Db\\Models\\Article' => __DIR__ . '/../..' . '/app/Db/Models/Article.php', 44 'EasyContent\\WordPress\\Db\\Models\\ArticlePost' => __DIR__ . '/../..' . '/app/Db/Models/ArticlePost.php', 45 'EasyContent\\WordPress\\Db\\Models\\Category' => __DIR__ . '/../..' . '/app/Db/Models/Category.php', 46 'EasyContent\\WordPress\\Db\\Models\\WorkflowStage' => __DIR__ . '/../..' . '/app/Db/Models/WorkflowStage.php', 47 'EasyContent\\WordPress\\Domain\\Seo\\SeoPack' => __DIR__ . '/../..' . '/app/Domain/Seo/SeoPack.php', 48 'EasyContent\\WordPress\\Domain\\Seo\\SeoPackPost' => __DIR__ . '/../..' . '/app/Domain/Seo/SeoPackPost.php', 49 'EasyContent\\WordPress\\Domain\\Seo\\SeoPackPostRepository' => __DIR__ . '/../..' . '/app/Domain/Seo/SeoPackPostRepository.php', 50 'EasyContent\\WordPress\\Domain\\Seo\\SeoPlugin' => __DIR__ . '/../..' . '/app/Domain/Seo/SeoPlugin.php', 51 'EasyContent\\WordPress\\Domain\\Seo\\Yoast' => __DIR__ . '/../..' . '/app/Domain/Seo/Yoast.php', 52 'EasyContent\\WordPress\\Helpers\\ArrayHelper' => __DIR__ . '/../..' . '/app/Helpers/ArrayHelper.php', 53 'EasyContent\\WordPress\\Helpers\\CategoriesMapper' => __DIR__ . '/../..' . '/app/Helpers/CategoriesMapper.php', 54 'EasyContent\\WordPress\\Helpers\\PostContentProcessor' => __DIR__ . '/../..' . '/app/Helpers/PostContentProcessor.php', 55 'EasyContent\\WordPress\\Helpers\\PublishingOptionsPageHelper' => __DIR__ . '/../..' . '/app/Helpers/PublishingOptionsPageHelper.php', 56 'EasyContent\\WordPress\\Helpers\\TimeHelper' => __DIR__ . '/../..' . '/app/Helpers/TimeHelper.php', 34 57 'EasyContent\\WordPress\\Implementation\\Container' => __DIR__ . '/../..' . '/app/Implementation/Container.php', 35 58 'EasyContent\\WordPress\\Implementation\\Db\\Migration' => __DIR__ . '/../..' . '/app/Implementation/Db/Migration.php', … … 69 92 'EasyContent\\WordPress\\Implementation\\Http\\Exception\\NotFoundException' => __DIR__ . '/../..' . '/app/Implementation/Http/Exception/NotFoundException.php', 70 93 'EasyContent\\WordPress\\Implementation\\Http\\Method' => __DIR__ . '/../..' . '/app/Implementation/Http/Method.php', 94 'EasyContent\\WordPress\\Infrastructure\\SeoPackPostRepository' => __DIR__ . '/../..' . '/app/Infrastructure/SeoPackPostRepository.php', 71 95 'EasyContent\\WordPress\\ListTableManager' => __DIR__ . '/../..' . '/app/ListTableManager.php', 72 96 'EasyContent\\WordPress\\MediaList' => __DIR__ . '/../..' . '/app/MediaList.php', 97 'EasyContent\\WordPress\\Metaboxes\\MetaBoxesManager' => __DIR__ . '/../..' . '/app/Metaboxes/MetaBoxesManager.php', 98 'EasyContent\\WordPress\\Metaboxes\\PostSyncMetaBox' => __DIR__ . '/../..' . '/app/Metaboxes/PostSyncMetaBox.php', 73 99 'EasyContent\\WordPress\\NoticesManager' => __DIR__ . '/../..' . '/app/NoticesManager.php', 100 'EasyContent\\WordPress\\Notices\\AdminNotice' => __DIR__ . '/../..' . '/app/Notices/AdminNotice.php', 101 'EasyContent\\WordPress\\Notices\\AdminNoticeInterface' => __DIR__ . '/../..' . '/app/Notices/AdminNoticeInterface.php', 102 'EasyContent\\WordPress\\Notices\\AdminNoticesService' => __DIR__ . '/../..' . '/app/Notices/AdminNoticesService.php', 103 'EasyContent\\WordPress\\Pages\\Import\\ArticlesListTable' => __DIR__ . '/../..' . '/app/Pages/Import/ArticlesListTable.php', 104 'EasyContent\\WordPress\\Pages\\PagesManager' => __DIR__ . '/../..' . '/app/Pages/PagesManager.php', 74 105 'EasyContent\\WordPress\\Plugin' => __DIR__ . '/../..' . '/app/Plugin.php', 75 106 'EasyContent\\WordPress\\Post' => __DIR__ . '/../..' . '/app/Post.php', 76 107 'EasyContent\\WordPress\\PostExtraDto' => __DIR__ . '/../..' . '/app/PostExtraDto.php', 108 'EasyContent\\WordPress\\Rest\\Actions\\BaseAction' => __DIR__ . '/../..' . '/app/Rest/Actions/BaseAction.php', 109 'EasyContent\\WordPress\\Rest\\Actions\\GetArticleDetails' => __DIR__ . '/../..' . '/app/Rest/Actions/GetArticleDetails.php', 110 'EasyContent\\WordPress\\Rest\\Actions\\GetCategories' => __DIR__ . '/../..' . '/app/Rest/Actions/GetCategories.php', 111 'EasyContent\\WordPress\\Rest\\Actions\\GetTags' => __DIR__ . '/../..' . '/app/Rest/Actions/GetTags.php', 112 'EasyContent\\WordPress\\Rest\\Actions\\GetWorkflowStages' => __DIR__ . '/../..' . '/app/Rest/Actions/GetWorkflowStages.php', 113 'EasyContent\\WordPress\\Rest\\Actions\\PublishArticle' => __DIR__ . '/../..' . '/app/Rest/Actions/PublishArticle.php', 114 'EasyContent\\WordPress\\Rest\\Actions\\PullArticle' => __DIR__ . '/../..' . '/app/Rest/Actions/PullArticle.php', 115 'EasyContent\\WordPress\\Rest\\Actions\\PushPost' => __DIR__ . '/../..' . '/app/Rest/Actions/PushPost.php', 116 'EasyContent\\WordPress\\Rest\\Actions\\SetArticleWorkflowStage' => __DIR__ . '/../..' . '/app/Rest/Actions/SetArticleWorkflowStage.php', 117 'EasyContent\\WordPress\\Rest\\Actions\\UnlinkPost' => __DIR__ . '/../..' . '/app/Rest/Actions/UnlinkPost.php', 118 'EasyContent\\WordPress\\Rest\\RestManager' => __DIR__ . '/../..' . '/app/Rest/RestManager.php', 77 119 'EasyContent\\WordPress\\Singleton' => __DIR__ . '/../..' . '/app/Singleton.php', 78 120 'EasyContent\\WordPress\\Source\\Api\\Entity\\Article' => __DIR__ . '/../..' . '/app/Source/Api/Entity/Article.php', … … 126 168 'EasyContent\\WordPress\\Source\\UseCase\\SetNewStatus\\Command' => __DIR__ . '/../..' . '/app/Source/UseCase/SetNewStatus/Command.php', 127 169 'EasyContent\\WordPress\\Source\\UseCase\\SetNewStatus\\Handler' => __DIR__ . '/../..' . '/app/Source/UseCase/SetNewStatus/Handler.php', 170 'EasyContent\\WordPress\\Storages\\BaseOptionsStorage' => __DIR__ . '/../..' . '/app/Storages/BaseOptionsStorage.php', 171 'EasyContent\\WordPress\\Storages\\ImageProcessingSettings' => __DIR__ . '/../..' . '/app/Storages/ImageProcessingSettings.php', 172 'EasyContent\\WordPress\\Storages\\PluginMisc' => __DIR__ . '/../..' . '/app/Storages/PluginMisc.php', 173 'EasyContent\\WordPress\\Storages\\PluginSettings' => __DIR__ . '/../..' . '/app/Storages/PluginSettings.php', 174 'EasyContent\\WordPress\\Storages\\StorageManager' => __DIR__ . '/../..' . '/app/Storages/StorageManager.php', 128 175 'EasyContent\\WordPress\\ValueObjects\\AttachmentPost' => __DIR__ . '/../..' . '/app/ValueObjects/AttachmentPost.php', 129 176 'EasyContent\\WordPress\\ValueObjects\\PostStatus' => __DIR__ . '/../..' . '/app/ValueObjects/PostStatus.php', … … 132 179 'EasyContent\\WordPress\\WP_List_Table' => __DIR__ . '/../..' . '/app/WP_List_Table.php', 133 180 'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\Document' => __DIR__ . '/..' . '/mihaoo/easycontent-html-handler/src/DOM/Document.php', 181 'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\Helper' => __DIR__ . '/..' . '/mihaoo/easycontent-html-handler/src/DOM/Helper.php', 134 182 'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\Node' => __DIR__ . '/..' . '/mihaoo/easycontent-html-handler/src/DOM/Node.php', 135 183 'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\NodeAttribute' => __DIR__ . '/..' . '/mihaoo/easycontent-html-handler/src/DOM/NodeAttribute.php', … … 147 195 { 148 196 return \Closure::bind(function () use ($loader) { 149 $loader->prefixLengthsPsr4 = ComposerStaticInit 171f7f6a422bd3f6c7e858105a134c3a::$prefixLengthsPsr4;150 $loader->prefixDirsPsr4 = ComposerStaticInit 171f7f6a422bd3f6c7e858105a134c3a::$prefixDirsPsr4;151 $loader->classMap = ComposerStaticInit 171f7f6a422bd3f6c7e858105a134c3a::$classMap;197 $loader->prefixLengthsPsr4 = ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1::$prefixLengthsPsr4; 198 $loader->prefixDirsPsr4 = ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1::$prefixDirsPsr4; 199 $loader->classMap = ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1::$classMap; 152 200 153 201 }, null, ClassLoader::class); -
easycontent/trunk/vendor/composer/installed.json
r2822815 r2825124 8 8 "type": "git", 9 9 "url": "https://bitbucket.org/MihaOo/easycontent.io-html-handler.git", 10 "reference": " 8ce1853f7b33dd3c3b0d30b105d71b5c55ea89b6"10 "reference": "96f713f4fbda252e46f6ade18e4c90e21a583f27" 11 11 }, 12 12 "dist": { 13 13 "type": "zip", 14 "url": "https://bitbucket.org/MihaOo/easycontent.io-html-handler/get/ 8ce1853f7b33dd3c3b0d30b105d71b5c55ea89b6.zip",15 "reference": " 8ce1853f7b33dd3c3b0d30b105d71b5c55ea89b6",14 "url": "https://bitbucket.org/MihaOo/easycontent.io-html-handler/get/96f713f4fbda252e46f6ade18e4c90e21a583f27.zip", 15 "reference": "96f713f4fbda252e46f6ade18e4c90e21a583f27", 16 16 "shasum": "" 17 17 }, … … 24 24 "phpunit/phpunit": "7.5.13" 25 25 }, 26 "time": "2021-05-13T13:15:58+00:00", 26 "time": "2022-11-21T11:55:45+00:00", 27 "default-branch": true, 27 28 "type": "library", 28 29 "installation-source": "dist", … … 44 45 "description": "Tool to perform DOM manipulations with articles that was written with easyContent.io", 45 46 "homepage": "https://bitbucket.org/MihaOo/easycontent.io-html-handler", 47 "support": { 48 "source": "https://bitbucket.org/MihaOo/easycontent.io-html-handler/src/96f713f4fbda252e46f6ade18e4c90e21a583f27/?at=master" 49 }, 46 50 "install-path": "../mihaoo/easycontent-html-handler" 47 51 } -
easycontent/trunk/vendor/composer/installed.php
r2822815 r2825124 25 25 'type' => 'library', 26 26 'install_path' => __DIR__ . '/../mihaoo/easycontent-html-handler', 27 'aliases' => array(), 28 'reference' => '8ce1853f7b33dd3c3b0d30b105d71b5c55ea89b6', 27 'aliases' => array( 28 0 => '9999999-dev', 29 ), 30 'reference' => '96f713f4fbda252e46f6ade18e4c90e21a583f27', 29 31 'dev_requirement' => false, 30 32 ), -
easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/DOM/Document.php
r2614777 r2825124 3 3 namespace PhpGangsters\EasyContent\HtmlHandler\DOM; 4 4 5 use PhpGangsters\EasyContent\HtmlHandler\DataTypes\Str;6 5 use PhpGangsters\EasyContent\HtmlHandler\DataTypes\Url; 7 6 use PhpGangsters\EasyContent\HtmlHandler\FileList; 8 7 9 class Document extends \DOMDocument8 final class Document extends \DOMDocument 10 9 { 11 10 /** @var array|\LibXMLError[] $loadingErrors */ 12 pr otected$loadingErrors = [];13 14 protected static $nodeNamesToProcess= [11 private $loadingErrors = []; 12 13 const NODE_NAMES_TO_PROCESS = [ 15 14 'a' => ['href' => Url::ANY_URL], 16 15 'area' => ['href' => Url::ANY_URL], … … 37 36 * @var FileList $filesList 38 37 */ 39 pr otected$filesList;38 private $filesList; 40 39 41 40 /** 42 41 * @var array|Node[] $nodes 43 42 */ 44 pr otected$nodes = [];43 private $nodes = []; 45 44 46 45 /** 47 46 * @var int $processedNodes 48 47 */ 49 pr otected$processedNodes = 0;48 private $processedNodes = 0; 50 49 51 50 /** 52 51 * @var float $parsingTime 53 52 */ 54 pr otected$parsingTime = 0;53 private $parsingTime = 0; 55 54 56 55 /** 57 56 * @var string $urlBase 58 57 */ 59 protected $urlBase = ''; 60 58 private $urlBase = ''; 61 59 62 60 public function __construct($version = '', $encoding = '', $urlBase = Url::LIVE_BASE) … … 75 73 } 76 74 77 78 protected function reset() 75 private function reset() 79 76 { 80 77 $this->processedNodes = 0; … … 84 81 } 85 82 86 87 83 /** 88 84 * @param string $source The HTML string … … 112 108 } 113 109 114 115 110 public function saveHTML($node = null) 116 111 { … … 121 116 } 122 117 123 124 /**125 * Removes node but saves all child nodes on removed node's place126 *127 * @param \DOMElement $node128 */129 public function removeChildOuter($node)130 {131 if (!$node->parentNode) {132 // This is probably root node and we unable to delete it133 return;134 }135 136 $sibling = $node->firstChild;137 138 do {139 $next = $sibling->nextSibling;140 $node->parentNode->insertBefore($sibling, $node);141 } while ($sibling = $next);142 143 $node->parentNode->removeChild($node);144 }145 146 147 118 public function removeAnnotations() 148 119 { … … 152 123 /** @var \DOMElement $spanNode*/ 153 124 foreach ($spans as $spanNode) { 154 $classesString = $spanNode->getAttribute('class'); 155 156 if (!$classesString) { 157 continue; 158 } 159 160 $classesString = (new Str($classesString))->removeExtraWhitespaces()->getValue(); 161 162 $classes = explode(' ', $classesString); 163 164 if (in_array('annotation', $classes)) { 165 $this->removeChildOuter($spanNode); 125 if (Helper::isOldAnnotationsNode($spanNode)) { 126 Helper::removeChildOuter($spanNode); 166 127 } 167 128 } … … 169 130 /** @var \DOMElement $markNode*/ 170 131 foreach ($marks as $markNode) { 171 if ($this->isNewAnnotationsNode($markNode)) { 172 $this->removeChildOuter($markNode); 173 } 174 } 175 } 176 177 private function isNewAnnotationsNode(\DOMElement $node) 178 { 179 if (!($classesString = $node->getAttribute('class'))) { 180 return false; 181 } 182 183 $classesString = (new Str($classesString))->removeExtraWhitespaces()->getValue(); 184 $classes = explode(' ', $classesString); 185 186 return in_array('assignment-comment', $classes, true); 132 if (Helper::isNewAnnotationsNode($markNode)) { 133 Helper::removeChildOuter($markNode); 134 } 135 } 187 136 } 188 137 … … 192 141 } 193 142 194 195 143 public function getProcessedNodesNumber() 196 144 { … … 198 146 } 199 147 200 201 148 public function getDOMParsingTime() 202 149 { … … 204 151 } 205 152 206 207 153 public function getFilesList() 208 154 { … … 210 156 } 211 157 212 213 158 public function getNodes() 214 159 { 215 160 return $this->nodes; 216 161 } 217 218 162 219 163 public function parse() … … 227 171 } 228 172 229 230 /** 231 * @param \DOMElement $node 232 */ 233 protected function processNode($node) 173 private function processNode(\DOMElement $node) 234 174 { 235 175 ++$this->processedNodes; … … 247 187 $nodeName = strtolower($node->nodeName); 248 188 249 $nodeAttributesToProcess = isset(Document::$nodeNamesToProcess[$nodeName])250 ? Document::$nodeNamesToProcess[$nodeName]189 $nodeAttributesToProcess = array_key_exists($nodeName, self::NODE_NAMES_TO_PROCESS) 190 ? self::NODE_NAMES_TO_PROCESS[$nodeName] 251 191 : []; 252 192 253 if ($nodeAttributesToProcess) { 254 foreach ($nodeAttributesToProcess as $attributeName => $urlType) { 255 $attributeValue = $node->getAttribute($attributeName); 256 257 if (!$attributeValue) { 258 continue; 259 } 260 261 $attribute = new NodeAttribute($attributeName, $attributeValue, $urlType); 262 $detectedFiles = $attribute->parse($this->urlBase); 263 264 if (!$attribute->noUrlsFound()) { 265 $this->filesList->merge($detectedFiles); 266 $nodeObject->addAttribute($attribute); 267 } 268 } 193 foreach ($nodeAttributesToProcess as $attributeName => $urlType) { 194 if (!$attributeValue = $node->getAttribute($attributeName)) { 195 continue; 196 } 197 198 $attribute = new NodeAttribute($attributeName, $attributeValue, $urlType); 199 $detectedFiles = $attribute->parse($this->urlBase); 200 201 if ($attribute->noUrlsFound()) { 202 continue; 203 } 204 205 $this->filesList->merge($detectedFiles); 206 $nodeObject->addAttribute($attribute); 269 207 } 270 208 -
easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/DOM/Node.php
r2547693 r2825124 3 3 namespace PhpGangsters\EasyContent\HtmlHandler\DOM; 4 4 5 class Node5 final class Node 6 6 { 7 7 /** @var \DOMElement $sourceNode */ 8 pr otected$sourceNode;8 private $sourceNode; 9 9 10 10 /** @var NodeAttributeList $attributes */ 11 pr otected$attributes;11 private $attributes; 12 12 13 14 public function __construct($node) 13 public function __construct(\DOMElement $node) 15 14 { 16 15 $this->sourceNode = $node; … … 18 17 } 19 18 20 21 /** 22 * @param NodeAttribute $attribute 23 */ 24 public function addAttribute($attribute) 19 public function addAttribute(NodeAttribute $attribute) 25 20 { 26 21 $this->attributes->addAttribute($attribute); 27 22 } 28 29 23 30 24 public function isAttributesListEmpty() … … 33 27 } 34 28 35 36 29 public function getSourceNode() 37 30 { 38 31 return $this->sourceNode; 39 32 } 40 41 33 42 34 public function getAttributeList() -
easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/DOM/NodeAttribute.php
r2547693 r2825124 8 8 use PhpGangsters\EasyContent\HtmlHandler\Parsers\SrcsetParser; 9 9 10 class NodeAttribute10 final class NodeAttribute 11 11 { 12 12 const SRC = 'src'; … … 18 18 19 19 /** @var string $name */ 20 pr otected$name;20 private $name; 21 21 22 22 /** @var string $value */ 23 pr otected$value;23 private $value; 24 24 25 25 /** @var FileList $filesList */ 26 pr otected$filesList;26 private $filesList; 27 27 28 28 /** @var int $expectedUrlType */ 29 protected $expectedUrlType; 30 29 private $expectedUrlType; 31 30 32 31 public function __construct($name, $value, $expectedUrlType) … … 38 37 } 39 38 40 41 39 public function getName() 42 40 { 43 41 return $this->name; 44 42 } 45 46 43 47 44 public function getValue() … … 50 47 } 51 48 52 53 49 public function getFileList() 54 50 { … … 56 52 } 57 53 58 59 54 public function getExpectedUrlType() 60 55 { 61 56 return $this->expectedUrlType; 62 57 } 63 64 58 65 59 public function parse($base = Url::LIVE_BASE) … … 72 66 } 73 67 74 75 68 public function noUrlsFound() 76 69 { -
easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/DOM/NodeAttributeList.php
r2547693 r2825124 3 3 namespace PhpGangsters\EasyContent\HtmlHandler\DOM; 4 4 5 class NodeAttributeList implements \IteratorAggregate, \Countable, \ArrayAccess5 final class NodeAttributeList implements \IteratorAggregate, \Countable, \ArrayAccess 6 6 { 7 7 /** @var array|NodeAttribute[] $items */ 8 protected $items = []; 9 8 private $items = []; 10 9 11 10 public function getIterator() … … 14 13 } 15 14 16 17 15 public function count() 18 16 { 19 17 return count($this->items); 20 18 } 21 22 19 23 20 public function offsetExists($attributeName) … … 26 23 } 27 24 28 29 25 public function offsetGet($attributeName) 30 26 { 31 27 return $this->get($attributeName); 32 28 } 33 34 29 35 30 public function offsetSet($attributeName, $nodeAttribute) … … 38 33 } 39 34 40 41 35 public function offsetUnset($url) { } 42 43 36 44 37 public function has($attributeName) … … 47 40 } 48 41 49 50 42 public function get($attributeName) 51 43 { … … 53 45 } 54 46 55 56 47 /** 57 48 * @param string $attributeName 58 49 * @param NodeAttribute $nodeAttribute 59 50 */ 60 public function add($attributeName, $nodeAttribute)51 public function add($attributeName, NodeAttribute $nodeAttribute) 61 52 { 62 53 if ($this->has($attributeName)) { … … 68 59 } 69 60 70 71 /** 72 * @param NodeAttribute $attribute 73 */ 74 public function addAttribute($attribute) 61 public function addAttribute(NodeAttribute $attribute) 75 62 { 76 63 $this->add($attribute->getName(), $attribute); 77 64 } 78 79 65 80 66 public function isEmpty() -
easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/DataTypes/Str.php
r2547693 r2825124 3 3 namespace PhpGangsters\EasyContent\HtmlHandler\DataTypes; 4 4 5 class Str5 final class Str 6 6 { 7 /** 8 * @var string $sourceString 9 */ 10 protected $sourceString; 11 12 13 public function __construct($str) 7 public static function removeExtraWhitespaces($str) 14 8 { 15 $this->sourceString = $str; 16 } 17 18 19 public function __toString() 20 { 21 return $this->getValue(); 22 } 23 24 25 public function getValue() 26 { 27 return $this->sourceString; 28 } 29 30 31 public function removeExtraWhitespaces() 32 { 33 $processedString = mb_ereg_replace("[ \t\n\r\0\x0B]+", ' ', $this->sourceString); 34 $this->sourceString = trim($processedString); 35 36 return $this; 9 $processedString = mb_ereg_replace("[ \t\n\r\0\x0B]+", ' ', $str); 10 return trim($processedString); 37 11 } 38 12 } -
easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/DataTypes/Url.php
r2614777 r2825124 3 3 namespace PhpGangsters\EasyContent\HtmlHandler\DataTypes; 4 4 5 class Url5 final class Url 6 6 { 7 7 const LOCAL_BASE = 'ec-local-attachments.s3.amazonaws.com'; … … 9 9 const LIVE_BASE = 'easycontent-attachments.s3.amazonaws.com'; 10 10 11 const IMAGES_URL = 0b1000; 12 const DOCUMENTS_URL = 0b0100; 13 const AUDIO_URL = 0b0010; 14 const VIDEO_URL = 0b0001; 15 const ANY_URL = 0b1111; 11 const IMAGES_URL = 0b1000; // 8 12 const DOCUMENTS_URL = 0b0100; // 4 13 const AUDIO_URL = 0b0010; // 2 14 const VIDEO_URL = 0b0001; // 1 15 const ANY_URL = 0b1111; // 15 16 16 17 17 const EXTENSIONS = [ … … 22 22 ]; 23 23 24 /** @var string $value */ 25 private $value; 24 26 25 /** 26 * @var Str $stringObject 27 */ 28 protected $stringObject; 27 /** @var int $type */ 28 private $type; 29 29 30 /** 31 * @var int $type 32 */ 33 protected $type; 34 35 36 public function __construct($urlString, $type = 0b1111) 30 public function __construct($urlString, $type = self::ANY_URL) 37 31 { 38 $this-> stringObject = new Str($urlString);32 $this->value = Str::removeExtraWhitespaces($urlString); 39 33 $this->type = $type; 40 34 } 41 42 35 43 36 public function getValuableExtensionsArray() … … 64 57 } 65 58 66 67 public function getRegularExpresion($base) 59 public function getRegularExpression($base) 68 60 { 69 $escapedBase = preg_replace('/[\$\.\+\*\(\)\/\?]/', '\\\\$0', $base); 70 61 $escapedBase = preg_quote($base, '/'); 71 62 $valuableExtensions = $this->getValuableExtensionsArray(); 72 63 $extensionPattern = '(' . implode('|', $valuableExtensions) . ')'; … … 75 66 } 76 67 77 78 public function matchesRegularExpresion($base) 68 public function matchesRegularExpression($base) 79 69 { 80 $trimmedUrl = trim($this-> stringObject->removeExtraWhitespaces()->getValue(), '/');81 $urlRegex = $this->getRegularExpres ion($base);70 $trimmedUrl = trim($this->value, '/'); 71 $urlRegex = $this->getRegularExpression($base); 82 72 $pattern = "/^{$urlRegex}$/i"; 83 73 84 return 1 === preg_match($pattern, $trimmedUrl); // Url matches regular expres ion74 return 1 === preg_match($pattern, $trimmedUrl); // Url matches regular expression 85 75 86 76 // TODO: Maybe process url on different languages -
easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/File.php
r2547693 r2825124 3 3 namespace PhpGangsters\EasyContent\HtmlHandler; 4 4 5 class File5 final class File 6 6 { 7 7 /** @var string $s3Url */ 8 pr otected$s3Url;8 private $s3Url; 9 9 10 10 /** @var null|string $wpUrl */ 11 protected $wpUrl; 12 11 private $wpUrl; 13 12 14 13 public function __construct($s3Url) … … 17 16 } 18 17 19 20 18 public function getS3Url() 21 19 { 22 20 return $this->s3Url; 23 21 } 24 25 22 26 23 public function getWPUrl() … … 29 26 } 30 27 31 32 28 public function setWPUrl($url) 33 29 { 34 30 $this->wpUrl = $url; 35 31 } 36 37 32 38 33 public static function getFileNameFromS3Url($url) -
easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/FileList.php
r2547693 r2825124 3 3 namespace PhpGangsters\EasyContent\HtmlHandler; 4 4 5 class FileList implements \IteratorAggregate, \Countable, \ArrayAccess5 final class FileList implements \IteratorAggregate, \Countable, \ArrayAccess 6 6 { 7 7 /** @var File[] $items */ 8 protected $items = []; 9 8 private $items = []; 10 9 11 10 public function getIterator() … … 14 13 } 15 14 16 17 15 public function count() 18 16 { 19 17 return count($this->items); 20 18 } 21 22 19 23 20 public function offsetExists($url) … … 26 23 } 27 24 28 29 25 public function offsetGet($url) 30 26 { 31 27 return $this->get($url); 32 28 } 33 34 29 35 30 public function offsetSet($url, $file) … … 38 33 } 39 34 40 41 35 public function offsetUnset($url) { } 42 43 36 44 37 public function has($url) … … 47 40 } 48 41 49 50 42 public function get($url) 51 43 { 52 44 return $this->has($url) ? $this->items[$url] : null; 53 45 } 54 55 46 56 47 public function add($url, $file) … … 63 54 } 64 55 65 66 56 /** 67 57 * @param File $file … … 71 61 $this->add($file->getS3Url(), $file); 72 62 } 73 74 63 75 64 public function getFileNames() … … 81 70 } 82 71 83 84 72 public function isEmpty() 85 73 { … … 87 75 } 88 76 89 90 public function addFilesFromArray($urls) 77 public function addFilesFromArray(array $urls) 91 78 { 92 79 foreach ($urls as $url) { … … 95 82 } 96 83 97 98 84 public function getItems() 99 85 { 100 86 return $this->items; 101 87 } 102 103 88 104 89 /** -
easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/Parsers/BaseParser.php
r2547693 r2825124 11 11 protected $s3UrlBase; 12 12 13 14 13 public function __construct($base) 15 14 { … … 17 16 } 18 17 19 20 18 /** 21 19 * @param NodeAttribute $nodeAttribute 22 20 * @return array|string[] 23 21 */ 24 public function parse( $nodeAttribute)22 public function parse(NodeAttribute $nodeAttribute) 25 23 { 26 24 $matches = (new Url($nodeAttribute->getValue(), $nodeAttribute->getExpectedUrlType())) 27 ->matchesRegularExpres ion($this->s3UrlBase);25 ->matchesRegularExpression($this->s3UrlBase); 28 26 29 27 return $matches ? [$nodeAttribute->getValue()] : []; -
easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/Parsers/SrcsetParser.php
r2547693 r2825124 7 7 use PhpGangsters\EasyContent\HtmlHandler\DOM\NodeAttribute; 8 8 9 class SrcsetParser extends BaseParser9 final class SrcsetParser extends BaseParser 10 10 { 11 11 /** … … 13 13 * @return array|string[] 14 14 */ 15 public function parse( $nodeAttribute)15 public function parse(NodeAttribute $nodeAttribute) 16 16 { 17 17 $urlRegex = (new Url('', $nodeAttribute->getExpectedUrlType())) 18 ->getRegularExpres ion($this->s3UrlBase);18 ->getRegularExpression($this->s3UrlBase); 19 19 20 20 $pattern = "^ ?({$urlRegex})( [1-9][0-9]*(w|x))?$"; 21 22 $normalizedAttributeValue = (new Str($nodeAttribute->getValue()))->removeExtraWhitespaces()->getValue(); 21 $normalizedAttributeValue = Str::removeExtraWhitespaces($nodeAttribute->getValue()); 23 22 24 23 $urls = []; -
easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/Parsers/StyleParser.php
r2547693 r2825124 3 3 namespace PhpGangsters\EasyContent\HtmlHandler\Parsers; 4 4 5 class StyleParser extends BaseParser 5 use PhpGangsters\EasyContent\HtmlHandler\DOM\NodeAttribute; 6 7 final class StyleParser extends BaseParser 6 8 { 7 public function parse( $string, $type = 0b1111)9 public function parse(NodeAttribute $nodeAttribute) 8 10 { 9 11 // TODO: Too hard for now. Implement later -
easycontent/trunk/vendor/mihaoo/easycontent-html-handler/tests/Unit/DOM/DocumentTest.php
r2547693 r2825124 5 5 use PhpGangsters\EasyContent\HtmlHandler\DataTypes\Url; 6 6 use PhpGangsters\EasyContent\HtmlHandler\DOM\Document; 7 use PhpGangsters\EasyContent\HtmlHandler\DOM\Helper; 7 8 use PhpGangsters\EasyContent\HtmlHandler\FileList; 8 9 use PHPUnit\Framework\TestCase; … … 43 44 { 44 45 $spanToDelete = $this->document->getElementById('node-to-delete'); 45 $this->document->removeChildOuter($spanToDelete);46 Helper::removeChildOuter($spanToDelete); 46 47 47 48 $this->assertEquals( … … 143 144 144 145 $this->assertEquals( 145 '< html><body>Lorem ipsum dolor sit amet</body></html>',146 '<p>Lorem ipsum dolor sit amet</p>', 146 147 $document->saveHTML() 147 148 ); -
easycontent/trunk/vendor/mihaoo/easycontent-html-handler/tests/Unit/DataTypes/UrlTest.php
r2547693 r2825124 26 26 $combinedUrlObject = new Url('http://google.com/lol.png', Url::IMAGES_URL | Url::AUDIO_URL); 27 27 28 $regex = $imagesUrlObject->getRegularExpres ion('google.com');29 $complexRegex = $combinedUrlObject->getRegularExpres ion('s3.aws.com');28 $regex = $imagesUrlObject->getRegularExpression('google.com'); 29 $complexRegex = $combinedUrlObject->getRegularExpression('s3.aws.com'); 30 30 31 31 $expectedRegex = 'https?:\/\/google\.com.*(jpg|jpeg|png|gif|ico)'; … … 45 45 ); 46 46 47 $result = $imagesUrlObject->matchesRegularExpres ion('ec-local-attachments.s3.amazonaws.com');48 $badResult = $imagesUrlObject->matchesRegularExpres ion('google.com');47 $result = $imagesUrlObject->matchesRegularExpression('ec-local-attachments.s3.amazonaws.com'); 48 $badResult = $imagesUrlObject->matchesRegularExpression('google.com'); 49 49 50 50 $this->assertTrue($result);
Note: See TracChangeset
for help on using the changeset viewer.