Plugin Directory

Changeset 2825124


Ignore:
Timestamp:
11/28/2022 09:51:26 AM (3 years ago)
Author:
easycontent
Message:

v1.1.1 fixes

Location:
easycontent
Files:
2 added
38 edited

Legend:

Unmodified
Added
Removed
  • easycontent/tags/1.1.1/vendor/autoload.php

    r2824032 r2825124  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit171f7f6a422bd3f6c7e858105a134c3a::getLoader();
     7return ComposerAutoloaderInitdedf6cdf3e9e2575a2973d3cb52d50d1::getLoader();
  • easycontent/tags/1.1.1/vendor/composer/autoload_classmap.php

    r2822817 r2825124  
    99    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
    1010    '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',
    1134    'EasyContent\\WordPress\\Implementation\\Container' => $baseDir . '/app/Implementation/Container.php',
    1235    'EasyContent\\WordPress\\Implementation\\Db\\Migration' => $baseDir . '/app/Implementation/Db/Migration.php',
     
    4669    'EasyContent\\WordPress\\Implementation\\Http\\Exception\\NotFoundException' => $baseDir . '/app/Implementation/Http/Exception/NotFoundException.php',
    4770    'EasyContent\\WordPress\\Implementation\\Http\\Method' => $baseDir . '/app/Implementation/Http/Method.php',
     71    'EasyContent\\WordPress\\Infrastructure\\SeoPackPostRepository' => $baseDir . '/app/Infrastructure/SeoPackPostRepository.php',
    4872    'EasyContent\\WordPress\\ListTableManager' => $baseDir . '/app/ListTableManager.php',
    4973    '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',
    5076    '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',
    5182    'EasyContent\\WordPress\\Plugin' => $baseDir . '/app/Plugin.php',
    5283    'EasyContent\\WordPress\\Post' => $baseDir . '/app/Post.php',
    5384    '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',
    5496    'EasyContent\\WordPress\\Singleton' => $baseDir . '/app/Singleton.php',
    5597    'EasyContent\\WordPress\\Source\\Api\\Entity\\Article' => $baseDir . '/app/Source/Api/Entity/Article.php',
     
    103145    'EasyContent\\WordPress\\Source\\UseCase\\SetNewStatus\\Command' => $baseDir . '/app/Source/UseCase/SetNewStatus/Command.php',
    104146    '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',
    105152    'EasyContent\\WordPress\\ValueObjects\\AttachmentPost' => $baseDir . '/app/ValueObjects/AttachmentPost.php',
    106153    'EasyContent\\WordPress\\ValueObjects\\PostStatus' => $baseDir . '/app/ValueObjects/PostStatus.php',
     
    109156    'EasyContent\\WordPress\\WP_List_Table' => $baseDir . '/app/WP_List_Table.php',
    110157    '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',
    111159    'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\Node' => $vendorDir . '/mihaoo/easycontent-html-handler/src/DOM/Node.php',
    112160    '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  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit171f7f6a422bd3f6c7e858105a134c3a
     5class ComposerAutoloaderInitdedf6cdf3e9e2575a2973d3cb52d50d1
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit171f7f6a422bd3f6c7e858105a134c3a', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitdedf6cdf3e9e2575a2973d3cb52d50d1', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit171f7f6a422bd3f6c7e858105a134c3a', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitdedf6cdf3e9e2575a2973d3cb52d50d1', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInit171f7f6a422bd3f6c7e858105a134c3a::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
  • easycontent/tags/1.1.1/vendor/composer/autoload_static.php

    r2824032 r2825124  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit171f7f6a422bd3f6c7e858105a134c3a
     7class ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    3232        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
    3333        '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',
    3457        'EasyContent\\WordPress\\Implementation\\Container' => __DIR__ . '/../..' . '/app/Implementation/Container.php',
    3558        'EasyContent\\WordPress\\Implementation\\Db\\Migration' => __DIR__ . '/../..' . '/app/Implementation/Db/Migration.php',
     
    6992        'EasyContent\\WordPress\\Implementation\\Http\\Exception\\NotFoundException' => __DIR__ . '/../..' . '/app/Implementation/Http/Exception/NotFoundException.php',
    7093        'EasyContent\\WordPress\\Implementation\\Http\\Method' => __DIR__ . '/../..' . '/app/Implementation/Http/Method.php',
     94        'EasyContent\\WordPress\\Infrastructure\\SeoPackPostRepository' => __DIR__ . '/../..' . '/app/Infrastructure/SeoPackPostRepository.php',
    7195        'EasyContent\\WordPress\\ListTableManager' => __DIR__ . '/../..' . '/app/ListTableManager.php',
    7296        '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',
    7399        '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',
    74105        'EasyContent\\WordPress\\Plugin' => __DIR__ . '/../..' . '/app/Plugin.php',
    75106        'EasyContent\\WordPress\\Post' => __DIR__ . '/../..' . '/app/Post.php',
    76107        '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',
    77119        'EasyContent\\WordPress\\Singleton' => __DIR__ . '/../..' . '/app/Singleton.php',
    78120        'EasyContent\\WordPress\\Source\\Api\\Entity\\Article' => __DIR__ . '/../..' . '/app/Source/Api/Entity/Article.php',
     
    126168        'EasyContent\\WordPress\\Source\\UseCase\\SetNewStatus\\Command' => __DIR__ . '/../..' . '/app/Source/UseCase/SetNewStatus/Command.php',
    127169        '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',
    128175        'EasyContent\\WordPress\\ValueObjects\\AttachmentPost' => __DIR__ . '/../..' . '/app/ValueObjects/AttachmentPost.php',
    129176        'EasyContent\\WordPress\\ValueObjects\\PostStatus' => __DIR__ . '/../..' . '/app/ValueObjects/PostStatus.php',
     
    132179        'EasyContent\\WordPress\\WP_List_Table' => __DIR__ . '/../..' . '/app/WP_List_Table.php',
    133180        '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',
    134182        'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\Node' => __DIR__ . '/..' . '/mihaoo/easycontent-html-handler/src/DOM/Node.php',
    135183        'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\NodeAttribute' => __DIR__ . '/..' . '/mihaoo/easycontent-html-handler/src/DOM/NodeAttribute.php',
     
    147195    {
    148196        return \Closure::bind(function () use ($loader) {
    149             $loader->prefixLengthsPsr4 = ComposerStaticInit171f7f6a422bd3f6c7e858105a134c3a::$prefixLengthsPsr4;
    150             $loader->prefixDirsPsr4 = ComposerStaticInit171f7f6a422bd3f6c7e858105a134c3a::$prefixDirsPsr4;
    151             $loader->classMap = ComposerStaticInit171f7f6a422bd3f6c7e858105a134c3a::$classMap;
     197            $loader->prefixLengthsPsr4 = ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1::$prefixLengthsPsr4;
     198            $loader->prefixDirsPsr4 = ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1::$prefixDirsPsr4;
     199            $loader->classMap = ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1::$classMap;
    152200
    153201        }, null, ClassLoader::class);
  • easycontent/tags/1.1.1/vendor/composer/installed.json

    r2822817 r2825124  
    88                "type": "git",
    99                "url": "https://bitbucket.org/MihaOo/easycontent.io-html-handler.git",
    10                 "reference": "8ce1853f7b33dd3c3b0d30b105d71b5c55ea89b6"
     10                "reference": "96f713f4fbda252e46f6ade18e4c90e21a583f27"
    1111            },
    1212            "dist": {
    1313                "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",
    1616                "shasum": ""
    1717            },
     
    2424                "phpunit/phpunit": "7.5.13"
    2525            },
    26             "time": "2021-05-13T13:15:58+00:00",
     26            "time": "2022-11-21T11:55:45+00:00",
     27            "default-branch": true,
    2728            "type": "library",
    2829            "installation-source": "dist",
     
    4445            "description": "Tool to perform DOM manipulations with articles that was written with easyContent.io",
    4546            "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            },
    4650            "install-path": "../mihaoo/easycontent-html-handler"
    4751        }
  • easycontent/tags/1.1.1/vendor/composer/installed.php

    r2822817 r2825124  
    2525            'type' => 'library',
    2626            'install_path' => __DIR__ . '/../mihaoo/easycontent-html-handler',
    27             'aliases' => array(),
    28             'reference' => '8ce1853f7b33dd3c3b0d30b105d71b5c55ea89b6',
     27            'aliases' => array(
     28                0 => '9999999-dev',
     29            ),
     30            'reference' => '96f713f4fbda252e46f6ade18e4c90e21a583f27',
    2931            'dev_requirement' => false,
    3032        ),
  • easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DOM/Document.php

    r2614777 r2825124  
    33namespace PhpGangsters\EasyContent\HtmlHandler\DOM;
    44
    5 use PhpGangsters\EasyContent\HtmlHandler\DataTypes\Str;
    65use PhpGangsters\EasyContent\HtmlHandler\DataTypes\Url;
    76use PhpGangsters\EasyContent\HtmlHandler\FileList;
    87
    9 class Document extends \DOMDocument
     8final class Document extends \DOMDocument
    109{
    1110    /** @var array|\LibXMLError[] $loadingErrors */
    12     protected $loadingErrors = [];
    13 
    14     protected static $nodeNamesToProcess = [
     11    private $loadingErrors = [];
     12
     13    const NODE_NAMES_TO_PROCESS = [
    1514        'a'      => ['href' => Url::ANY_URL],
    1615        'area'   => ['href' => Url::ANY_URL],
     
    3736     * @var FileList $filesList
    3837     */
    39     protected $filesList;
     38    private $filesList;
    4039
    4140    /**
    4241     * @var array|Node[] $nodes
    4342     */
    44     protected $nodes = [];
     43    private $nodes = [];
    4544
    4645    /**
    4746     * @var int $processedNodes
    4847     */
    49     protected $processedNodes = 0;
     48    private $processedNodes = 0;
    5049
    5150    /**
    5251     * @var float $parsingTime
    5352     */
    54     protected $parsingTime = 0;
     53    private $parsingTime = 0;
    5554
    5655    /**
    5756     * @var string $urlBase
    5857     */
    59     protected $urlBase = '';
    60 
     58    private $urlBase = '';
    6159
    6260    public function __construct($version = '', $encoding = '', $urlBase = Url::LIVE_BASE)
     
    7573    }
    7674
    77 
    78     protected function reset()
     75    private function reset()
    7976    {
    8077        $this->processedNodes = 0;
     
    8481    }
    8582
    86 
    8783    /**
    8884     * @param string $source The HTML string
     
    112108    }
    113109
    114 
    115110    public function saveHTML($node = null)
    116111    {
     
    121116    }
    122117
    123 
    124     /**
    125      * Removes node but saves all child nodes on removed node's place
    126      *
    127      * @param \DOMElement $node
    128      */
    129     public function removeChildOuter($node)
    130     {
    131         if (!$node->parentNode) {
    132             // This is probably root node and we unable to delete it
    133             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 
    147118    public function removeAnnotations()
    148119    {
     
    152123        /** @var \DOMElement $spanNode*/
    153124        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);
    166127            }
    167128        }
     
    169130        /** @var \DOMElement $markNode*/
    170131        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        }
    187136    }
    188137
     
    192141    }
    193142
    194 
    195143    public function getProcessedNodesNumber()
    196144    {
     
    198146    }
    199147
    200 
    201148    public function getDOMParsingTime()
    202149    {
     
    204151    }
    205152
    206 
    207153    public function getFilesList()
    208154    {
     
    210156    }
    211157
    212 
    213158    public function getNodes()
    214159    {
    215160        return $this->nodes;
    216161    }
    217 
    218162
    219163    public function parse()
     
    227171    }
    228172
    229 
    230     /**
    231      * @param \DOMElement $node
    232      */
    233     protected function processNode($node)
     173    private function processNode(\DOMElement $node)
    234174    {
    235175        ++$this->processedNodes;
     
    247187        $nodeName = strtolower($node->nodeName);
    248188
    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]
    251191            : [];
    252192
    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);
    269207        }
    270208
  • easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DOM/Node.php

    r2547693 r2825124  
    33namespace PhpGangsters\EasyContent\HtmlHandler\DOM;
    44
    5 class Node
     5final class Node
    66{
    77    /** @var \DOMElement $sourceNode */
    8     protected $sourceNode;
     8    private $sourceNode;
    99
    1010    /** @var NodeAttributeList $attributes */
    11     protected $attributes;
     11    private $attributes;
    1212
    13 
    14     public function __construct($node)
     13    public function __construct(\DOMElement $node)
    1514    {
    1615        $this->sourceNode = $node;
     
    1817    }
    1918
    20 
    21     /**
    22      * @param NodeAttribute $attribute
    23      */
    24     public function addAttribute($attribute)
     19    public function addAttribute(NodeAttribute $attribute)
    2520    {
    2621        $this->attributes->addAttribute($attribute);
    2722    }
    28 
    2923
    3024    public function isAttributesListEmpty()
     
    3327    }
    3428
    35 
    3629    public function getSourceNode()
    3730    {
    3831        return $this->sourceNode;
    3932    }
    40 
    4133
    4234    public function getAttributeList()
  • easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DOM/NodeAttribute.php

    r2547693 r2825124  
    88use PhpGangsters\EasyContent\HtmlHandler\Parsers\SrcsetParser;
    99
    10 class NodeAttribute
     10final class NodeAttribute
    1111{
    1212    const SRC    = 'src';
     
    1818
    1919    /** @var string $name */
    20     protected $name;
     20    private $name;
    2121
    2222    /** @var string $value */
    23     protected $value;
     23    private $value;
    2424
    2525    /** @var FileList $filesList */
    26     protected $filesList;
     26    private $filesList;
    2727
    2828    /** @var int $expectedUrlType */
    29     protected $expectedUrlType;
    30 
     29    private $expectedUrlType;
    3130
    3231    public function __construct($name, $value, $expectedUrlType)
     
    3837    }
    3938
    40 
    4139    public function getName()
    4240    {
    4341        return $this->name;
    4442    }
    45 
    4643
    4744    public function getValue()
     
    5047    }
    5148
    52 
    5349    public function getFileList()
    5450    {
     
    5652    }
    5753
    58 
    5954    public function getExpectedUrlType()
    6055    {
    6156        return $this->expectedUrlType;
    6257    }
    63 
    6458
    6559    public function parse($base = Url::LIVE_BASE)
     
    7266    }
    7367
    74 
    7568    public function noUrlsFound()
    7669    {
  • easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DOM/NodeAttributeList.php

    r2547693 r2825124  
    33namespace PhpGangsters\EasyContent\HtmlHandler\DOM;
    44
    5 class NodeAttributeList implements \IteratorAggregate, \Countable, \ArrayAccess
     5final class NodeAttributeList implements \IteratorAggregate, \Countable, \ArrayAccess
    66{
    77    /** @var array|NodeAttribute[] $items */
    8     protected $items = [];
    9 
     8    private $items = [];
    109
    1110    public function getIterator()
     
    1413    }
    1514
    16 
    1715    public function count()
    1816    {
    1917        return count($this->items);
    2018    }
    21 
    2219
    2320    public function offsetExists($attributeName)
     
    2623    }
    2724
    28 
    2925    public function offsetGet($attributeName)
    3026    {
    3127        return $this->get($attributeName);
    3228    }
    33 
    3429
    3530    public function offsetSet($attributeName, $nodeAttribute)
     
    3833    }
    3934
    40 
    4135    public function offsetUnset($url) { }
    42 
    4336
    4437    public function has($attributeName)
     
    4740    }
    4841
    49 
    5042    public function get($attributeName)
    5143    {
     
    5345    }
    5446
    55 
    5647    /**
    5748     * @param string $attributeName
    5849     * @param NodeAttribute $nodeAttribute
    5950     */
    60     public function add($attributeName, $nodeAttribute)
     51    public function add($attributeName, NodeAttribute $nodeAttribute)
    6152    {
    6253        if ($this->has($attributeName)) {
     
    6859    }
    6960
    70 
    71     /**
    72      * @param NodeAttribute $attribute
    73      */
    74     public function addAttribute($attribute)
     61    public function addAttribute(NodeAttribute $attribute)
    7562    {
    7663        $this->add($attribute->getName(), $attribute);
    7764    }
    78 
    7965
    8066    public function isEmpty()
  • easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DataTypes/Str.php

    r2547693 r2825124  
    33namespace PhpGangsters\EasyContent\HtmlHandler\DataTypes;
    44
    5 class Str
     5final class Str
    66{
    7     /**
    8      * @var string $sourceString
    9      */
    10     protected $sourceString;
    11 
    12 
    13     public function __construct($str)
     7    public static function removeExtraWhitespaces($str)
    148    {
    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);
    3711    }
    3812}
  • easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/DataTypes/Url.php

    r2614777 r2825124  
    33namespace PhpGangsters\EasyContent\HtmlHandler\DataTypes;
    44
    5 class Url
     5final class Url
    66{
    77    const LOCAL_BASE = 'ec-local-attachments.s3.amazonaws.com';
     
    99    const LIVE_BASE  = 'easycontent-attachments.s3.amazonaws.com';
    1010
    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
    1616
    1717    const EXTENSIONS = [
     
    2222    ];
    2323
     24    /** @var string $value */
     25    private $value;
    2426
    25     /**
    26      * @var Str $stringObject
    27      */
    28     protected $stringObject;
     27    /** @var int $type */
     28    private $type;
    2929
    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)
    3731    {
    38         $this->stringObject = new Str($urlString);
     32        $this->value = Str::removeExtraWhitespaces($urlString);
    3933        $this->type = $type;
    4034    }
    41 
    4235
    4336    public function getValuableExtensionsArray()
     
    6457    }
    6558
    66 
    67     public function getRegularExpresion($base)
     59    public function getRegularExpression($base)
    6860    {
    69         $escapedBase = preg_replace('/[\$\.\+\*\(\)\/\?]/', '\\\\$0', $base);
    70 
     61        $escapedBase = preg_quote($base, '/');
    7162        $valuableExtensions = $this->getValuableExtensionsArray();
    7263        $extensionPattern = '(' . implode('|', $valuableExtensions) . ')';
     
    7566    }
    7667
    77 
    78     public function matchesRegularExpresion($base)
     68    public function matchesRegularExpression($base)
    7969    {
    80         $trimmedUrl = trim($this->stringObject->removeExtraWhitespaces()->getValue(), '/');
    81         $urlRegex = $this->getRegularExpresion($base);
     70        $trimmedUrl = trim($this->value, '/');
     71        $urlRegex = $this->getRegularExpression($base);
    8272        $pattern = "/^{$urlRegex}$/i";
    8373
    84         return 1 === preg_match($pattern, $trimmedUrl); // Url matches regular expresion
     74        return 1 === preg_match($pattern, $trimmedUrl); // Url matches regular expression
    8575
    8676        // TODO: Maybe process url on different languages
  • easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/File.php

    r2547693 r2825124  
    33namespace PhpGangsters\EasyContent\HtmlHandler;
    44
    5 class File
     5final class File
    66{
    77    /** @var string $s3Url */
    8     protected $s3Url;
     8    private $s3Url;
    99
    1010    /** @var null|string $wpUrl */
    11     protected $wpUrl;
    12 
     11    private $wpUrl;
    1312
    1413    public function __construct($s3Url)
     
    1716    }
    1817
    19 
    2018    public function getS3Url()
    2119    {
    2220        return $this->s3Url;
    2321    }
    24 
    2522
    2623    public function getWPUrl()
     
    2926    }
    3027
    31 
    3228    public function setWPUrl($url)
    3329    {
    3430        $this->wpUrl = $url;
    3531    }
    36 
    3732
    3833    public static function getFileNameFromS3Url($url)
  • easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/FileList.php

    r2547693 r2825124  
    33namespace PhpGangsters\EasyContent\HtmlHandler;
    44
    5 class FileList implements \IteratorAggregate, \Countable, \ArrayAccess
     5final class FileList implements \IteratorAggregate, \Countable, \ArrayAccess
    66{
    77    /** @var File[] $items */
    8     protected $items = [];
    9 
     8    private $items = [];
    109
    1110    public function getIterator()
     
    1413    }
    1514
    16 
    1715    public function count()
    1816    {
    1917        return count($this->items);
    2018    }
    21 
    2219
    2320    public function offsetExists($url)
     
    2623    }
    2724
    28 
    2925    public function offsetGet($url)
    3026    {
    3127        return $this->get($url);
    3228    }
    33 
    3429
    3530    public function offsetSet($url, $file)
     
    3833    }
    3934
    40 
    4135    public function offsetUnset($url) { }
    42 
    4336
    4437    public function has($url)
     
    4740    }
    4841
    49 
    5042    public function get($url)
    5143    {
    5244        return $this->has($url) ? $this->items[$url] : null;
    5345    }
    54 
    5546
    5647    public function add($url, $file)
     
    6354    }
    6455
    65 
    6656    /**
    6757     * @param File $file
     
    7161        $this->add($file->getS3Url(), $file);
    7262    }
    73 
    7463
    7564    public function getFileNames()
     
    8170    }
    8271
    83 
    8472    public function isEmpty()
    8573    {
     
    8775    }
    8876
    89 
    90     public function addFilesFromArray($urls)
     77    public function addFilesFromArray(array $urls)
    9178    {
    9279        foreach ($urls as $url) {
     
    9582    }
    9683
    97 
    9884    public function getItems()
    9985    {
    10086        return $this->items;
    10187    }
    102 
    10388
    10489    /**
  • easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/Parsers/BaseParser.php

    r2547693 r2825124  
    1111    protected $s3UrlBase;
    1212
    13 
    1413    public function __construct($base)
    1514    {
     
    1716    }
    1817
    19 
    2018    /**
    2119     * @param NodeAttribute $nodeAttribute
    2220     * @return array|string[]
    2321     */
    24     public function parse($nodeAttribute)
     22    public function parse(NodeAttribute $nodeAttribute)
    2523    {
    2624        $matches = (new Url($nodeAttribute->getValue(), $nodeAttribute->getExpectedUrlType()))
    27             ->matchesRegularExpresion($this->s3UrlBase);
     25            ->matchesRegularExpression($this->s3UrlBase);
    2826
    2927        return $matches ? [$nodeAttribute->getValue()] : [];
  • easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/Parsers/SrcsetParser.php

    r2547693 r2825124  
    77use PhpGangsters\EasyContent\HtmlHandler\DOM\NodeAttribute;
    88
    9 class SrcsetParser extends BaseParser
     9final class SrcsetParser extends BaseParser
    1010{
    1111    /**
     
    1313     * @return array|string[]
    1414     */
    15     public function parse($nodeAttribute)
     15    public function parse(NodeAttribute $nodeAttribute)
    1616    {
    1717        $urlRegex = (new Url('', $nodeAttribute->getExpectedUrlType()))
    18             ->getRegularExpresion($this->s3UrlBase);
     18            ->getRegularExpression($this->s3UrlBase);
    1919
    2020        $pattern = "^ ?({$urlRegex})( [1-9][0-9]*(w|x))?$";
    21 
    22         $normalizedAttributeValue = (new Str($nodeAttribute->getValue()))->removeExtraWhitespaces()->getValue();
     21        $normalizedAttributeValue = Str::removeExtraWhitespaces($nodeAttribute->getValue());
    2322
    2423        $urls = [];
  • easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/src/Parsers/StyleParser.php

    r2547693 r2825124  
    33namespace PhpGangsters\EasyContent\HtmlHandler\Parsers;
    44
    5 class StyleParser extends BaseParser
     5use PhpGangsters\EasyContent\HtmlHandler\DOM\NodeAttribute;
     6
     7final class StyleParser extends BaseParser
    68{
    7     public function parse($string, $type = 0b1111)
     9    public function parse(NodeAttribute $nodeAttribute)
    810    {
    911        // TODO: Too hard for now. Implement later
  • easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/tests/Unit/DOM/DocumentTest.php

    r2547693 r2825124  
    55use PhpGangsters\EasyContent\HtmlHandler\DataTypes\Url;
    66use PhpGangsters\EasyContent\HtmlHandler\DOM\Document;
     7use PhpGangsters\EasyContent\HtmlHandler\DOM\Helper;
    78use PhpGangsters\EasyContent\HtmlHandler\FileList;
    89use PHPUnit\Framework\TestCase;
     
    4344    {
    4445        $spanToDelete = $this->document->getElementById('node-to-delete');
    45         $this->document->removeChildOuter($spanToDelete);
     46        Helper::removeChildOuter($spanToDelete);
    4647
    4748        $this->assertEquals(
     
    143144
    144145        $this->assertEquals(
    145             '<html><body>Lorem ipsum dolor sit amet</body></html>',
     146            '<p>Lorem ipsum dolor sit amet</p>',
    146147            $document->saveHTML()
    147148        );
  • easycontent/tags/1.1.1/vendor/mihaoo/easycontent-html-handler/tests/Unit/DataTypes/UrlTest.php

    r2547693 r2825124  
    2626        $combinedUrlObject = new Url('http://google.com/lol.png', Url::IMAGES_URL | Url::AUDIO_URL);
    2727
    28         $regex = $imagesUrlObject->getRegularExpresion('google.com');
    29         $complexRegex = $combinedUrlObject->getRegularExpresion('s3.aws.com');
     28        $regex = $imagesUrlObject->getRegularExpression('google.com');
     29        $complexRegex = $combinedUrlObject->getRegularExpression('s3.aws.com');
    3030
    3131        $expectedRegex = 'https?:\/\/google\.com.*(jpg|jpeg|png|gif|ico)';
     
    4545        );
    4646
    47         $result = $imagesUrlObject->matchesRegularExpresion('ec-local-attachments.s3.amazonaws.com');
    48         $badResult = $imagesUrlObject->matchesRegularExpresion('google.com');
     47        $result = $imagesUrlObject->matchesRegularExpression('ec-local-attachments.s3.amazonaws.com');
     48        $badResult = $imagesUrlObject->matchesRegularExpression('google.com');
    4949
    5050        $this->assertTrue($result);
  • easycontent/trunk/vendor/autoload.php

    r2824032 r2825124  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit171f7f6a422bd3f6c7e858105a134c3a::getLoader();
     7return ComposerAutoloaderInitdedf6cdf3e9e2575a2973d3cb52d50d1::getLoader();
  • easycontent/trunk/vendor/composer/autoload_classmap.php

    r2822815 r2825124  
    99    'Composer\\InstalledVersions' => $vendorDir . '/composer/InstalledVersions.php',
    1010    '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',
    1134    'EasyContent\\WordPress\\Implementation\\Container' => $baseDir . '/app/Implementation/Container.php',
    1235    'EasyContent\\WordPress\\Implementation\\Db\\Migration' => $baseDir . '/app/Implementation/Db/Migration.php',
     
    4669    'EasyContent\\WordPress\\Implementation\\Http\\Exception\\NotFoundException' => $baseDir . '/app/Implementation/Http/Exception/NotFoundException.php',
    4770    'EasyContent\\WordPress\\Implementation\\Http\\Method' => $baseDir . '/app/Implementation/Http/Method.php',
     71    'EasyContent\\WordPress\\Infrastructure\\SeoPackPostRepository' => $baseDir . '/app/Infrastructure/SeoPackPostRepository.php',
    4872    'EasyContent\\WordPress\\ListTableManager' => $baseDir . '/app/ListTableManager.php',
    4973    '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',
    5076    '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',
    5182    'EasyContent\\WordPress\\Plugin' => $baseDir . '/app/Plugin.php',
    5283    'EasyContent\\WordPress\\Post' => $baseDir . '/app/Post.php',
    5384    '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',
    5496    'EasyContent\\WordPress\\Singleton' => $baseDir . '/app/Singleton.php',
    5597    'EasyContent\\WordPress\\Source\\Api\\Entity\\Article' => $baseDir . '/app/Source/Api/Entity/Article.php',
     
    103145    'EasyContent\\WordPress\\Source\\UseCase\\SetNewStatus\\Command' => $baseDir . '/app/Source/UseCase/SetNewStatus/Command.php',
    104146    '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',
    105152    'EasyContent\\WordPress\\ValueObjects\\AttachmentPost' => $baseDir . '/app/ValueObjects/AttachmentPost.php',
    106153    'EasyContent\\WordPress\\ValueObjects\\PostStatus' => $baseDir . '/app/ValueObjects/PostStatus.php',
     
    109156    'EasyContent\\WordPress\\WP_List_Table' => $baseDir . '/app/WP_List_Table.php',
    110157    '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',
    111159    'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\Node' => $vendorDir . '/mihaoo/easycontent-html-handler/src/DOM/Node.php',
    112160    'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\NodeAttribute' => $vendorDir . '/mihaoo/easycontent-html-handler/src/DOM/NodeAttribute.php',
  • easycontent/trunk/vendor/composer/autoload_real.php

    r2824032 r2825124  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit171f7f6a422bd3f6c7e858105a134c3a
     5class ComposerAutoloaderInitdedf6cdf3e9e2575a2973d3cb52d50d1
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit171f7f6a422bd3f6c7e858105a134c3a', 'loadClassLoader'), true, true);
     27        spl_autoload_register(array('ComposerAutoloaderInitdedf6cdf3e9e2575a2973d3cb52d50d1', 'loadClassLoader'), true, true);
    2828        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit171f7f6a422bd3f6c7e858105a134c3a', 'loadClassLoader'));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitdedf6cdf3e9e2575a2973d3cb52d50d1', 'loadClassLoader'));
    3030
    3131        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3333            require __DIR__ . '/autoload_static.php';
    3434
    35             call_user_func(\Composer\Autoload\ComposerStaticInit171f7f6a422bd3f6c7e858105a134c3a::getInitializer($loader));
     35            call_user_func(\Composer\Autoload\ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1::getInitializer($loader));
    3636        } else {
    3737            $map = require __DIR__ . '/autoload_namespaces.php';
  • easycontent/trunk/vendor/composer/autoload_static.php

    r2824032 r2825124  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit171f7f6a422bd3f6c7e858105a134c3a
     7class ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    3232        'Composer\\InstalledVersions' => __DIR__ . '/..' . '/composer/InstalledVersions.php',
    3333        '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',
    3457        'EasyContent\\WordPress\\Implementation\\Container' => __DIR__ . '/../..' . '/app/Implementation/Container.php',
    3558        'EasyContent\\WordPress\\Implementation\\Db\\Migration' => __DIR__ . '/../..' . '/app/Implementation/Db/Migration.php',
     
    6992        'EasyContent\\WordPress\\Implementation\\Http\\Exception\\NotFoundException' => __DIR__ . '/../..' . '/app/Implementation/Http/Exception/NotFoundException.php',
    7093        'EasyContent\\WordPress\\Implementation\\Http\\Method' => __DIR__ . '/../..' . '/app/Implementation/Http/Method.php',
     94        'EasyContent\\WordPress\\Infrastructure\\SeoPackPostRepository' => __DIR__ . '/../..' . '/app/Infrastructure/SeoPackPostRepository.php',
    7195        'EasyContent\\WordPress\\ListTableManager' => __DIR__ . '/../..' . '/app/ListTableManager.php',
    7296        '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',
    7399        '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',
    74105        'EasyContent\\WordPress\\Plugin' => __DIR__ . '/../..' . '/app/Plugin.php',
    75106        'EasyContent\\WordPress\\Post' => __DIR__ . '/../..' . '/app/Post.php',
    76107        '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',
    77119        'EasyContent\\WordPress\\Singleton' => __DIR__ . '/../..' . '/app/Singleton.php',
    78120        'EasyContent\\WordPress\\Source\\Api\\Entity\\Article' => __DIR__ . '/../..' . '/app/Source/Api/Entity/Article.php',
     
    126168        'EasyContent\\WordPress\\Source\\UseCase\\SetNewStatus\\Command' => __DIR__ . '/../..' . '/app/Source/UseCase/SetNewStatus/Command.php',
    127169        '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',
    128175        'EasyContent\\WordPress\\ValueObjects\\AttachmentPost' => __DIR__ . '/../..' . '/app/ValueObjects/AttachmentPost.php',
    129176        'EasyContent\\WordPress\\ValueObjects\\PostStatus' => __DIR__ . '/../..' . '/app/ValueObjects/PostStatus.php',
     
    132179        'EasyContent\\WordPress\\WP_List_Table' => __DIR__ . '/../..' . '/app/WP_List_Table.php',
    133180        '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',
    134182        'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\Node' => __DIR__ . '/..' . '/mihaoo/easycontent-html-handler/src/DOM/Node.php',
    135183        'PhpGangsters\\EasyContent\\HtmlHandler\\DOM\\NodeAttribute' => __DIR__ . '/..' . '/mihaoo/easycontent-html-handler/src/DOM/NodeAttribute.php',
     
    147195    {
    148196        return \Closure::bind(function () use ($loader) {
    149             $loader->prefixLengthsPsr4 = ComposerStaticInit171f7f6a422bd3f6c7e858105a134c3a::$prefixLengthsPsr4;
    150             $loader->prefixDirsPsr4 = ComposerStaticInit171f7f6a422bd3f6c7e858105a134c3a::$prefixDirsPsr4;
    151             $loader->classMap = ComposerStaticInit171f7f6a422bd3f6c7e858105a134c3a::$classMap;
     197            $loader->prefixLengthsPsr4 = ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1::$prefixLengthsPsr4;
     198            $loader->prefixDirsPsr4 = ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1::$prefixDirsPsr4;
     199            $loader->classMap = ComposerStaticInitdedf6cdf3e9e2575a2973d3cb52d50d1::$classMap;
    152200
    153201        }, null, ClassLoader::class);
  • easycontent/trunk/vendor/composer/installed.json

    r2822815 r2825124  
    88                "type": "git",
    99                "url": "https://bitbucket.org/MihaOo/easycontent.io-html-handler.git",
    10                 "reference": "8ce1853f7b33dd3c3b0d30b105d71b5c55ea89b6"
     10                "reference": "96f713f4fbda252e46f6ade18e4c90e21a583f27"
    1111            },
    1212            "dist": {
    1313                "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",
    1616                "shasum": ""
    1717            },
     
    2424                "phpunit/phpunit": "7.5.13"
    2525            },
    26             "time": "2021-05-13T13:15:58+00:00",
     26            "time": "2022-11-21T11:55:45+00:00",
     27            "default-branch": true,
    2728            "type": "library",
    2829            "installation-source": "dist",
     
    4445            "description": "Tool to perform DOM manipulations with articles that was written with easyContent.io",
    4546            "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            },
    4650            "install-path": "../mihaoo/easycontent-html-handler"
    4751        }
  • easycontent/trunk/vendor/composer/installed.php

    r2822815 r2825124  
    2525            'type' => 'library',
    2626            'install_path' => __DIR__ . '/../mihaoo/easycontent-html-handler',
    27             'aliases' => array(),
    28             'reference' => '8ce1853f7b33dd3c3b0d30b105d71b5c55ea89b6',
     27            'aliases' => array(
     28                0 => '9999999-dev',
     29            ),
     30            'reference' => '96f713f4fbda252e46f6ade18e4c90e21a583f27',
    2931            'dev_requirement' => false,
    3032        ),
  • easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/DOM/Document.php

    r2614777 r2825124  
    33namespace PhpGangsters\EasyContent\HtmlHandler\DOM;
    44
    5 use PhpGangsters\EasyContent\HtmlHandler\DataTypes\Str;
    65use PhpGangsters\EasyContent\HtmlHandler\DataTypes\Url;
    76use PhpGangsters\EasyContent\HtmlHandler\FileList;
    87
    9 class Document extends \DOMDocument
     8final class Document extends \DOMDocument
    109{
    1110    /** @var array|\LibXMLError[] $loadingErrors */
    12     protected $loadingErrors = [];
    13 
    14     protected static $nodeNamesToProcess = [
     11    private $loadingErrors = [];
     12
     13    const NODE_NAMES_TO_PROCESS = [
    1514        'a'      => ['href' => Url::ANY_URL],
    1615        'area'   => ['href' => Url::ANY_URL],
     
    3736     * @var FileList $filesList
    3837     */
    39     protected $filesList;
     38    private $filesList;
    4039
    4140    /**
    4241     * @var array|Node[] $nodes
    4342     */
    44     protected $nodes = [];
     43    private $nodes = [];
    4544
    4645    /**
    4746     * @var int $processedNodes
    4847     */
    49     protected $processedNodes = 0;
     48    private $processedNodes = 0;
    5049
    5150    /**
    5251     * @var float $parsingTime
    5352     */
    54     protected $parsingTime = 0;
     53    private $parsingTime = 0;
    5554
    5655    /**
    5756     * @var string $urlBase
    5857     */
    59     protected $urlBase = '';
    60 
     58    private $urlBase = '';
    6159
    6260    public function __construct($version = '', $encoding = '', $urlBase = Url::LIVE_BASE)
     
    7573    }
    7674
    77 
    78     protected function reset()
     75    private function reset()
    7976    {
    8077        $this->processedNodes = 0;
     
    8481    }
    8582
    86 
    8783    /**
    8884     * @param string $source The HTML string
     
    112108    }
    113109
    114 
    115110    public function saveHTML($node = null)
    116111    {
     
    121116    }
    122117
    123 
    124     /**
    125      * Removes node but saves all child nodes on removed node's place
    126      *
    127      * @param \DOMElement $node
    128      */
    129     public function removeChildOuter($node)
    130     {
    131         if (!$node->parentNode) {
    132             // This is probably root node and we unable to delete it
    133             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 
    147118    public function removeAnnotations()
    148119    {
     
    152123        /** @var \DOMElement $spanNode*/
    153124        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);
    166127            }
    167128        }
     
    169130        /** @var \DOMElement $markNode*/
    170131        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        }
    187136    }
    188137
     
    192141    }
    193142
    194 
    195143    public function getProcessedNodesNumber()
    196144    {
     
    198146    }
    199147
    200 
    201148    public function getDOMParsingTime()
    202149    {
     
    204151    }
    205152
    206 
    207153    public function getFilesList()
    208154    {
     
    210156    }
    211157
    212 
    213158    public function getNodes()
    214159    {
    215160        return $this->nodes;
    216161    }
    217 
    218162
    219163    public function parse()
     
    227171    }
    228172
    229 
    230     /**
    231      * @param \DOMElement $node
    232      */
    233     protected function processNode($node)
     173    private function processNode(\DOMElement $node)
    234174    {
    235175        ++$this->processedNodes;
     
    247187        $nodeName = strtolower($node->nodeName);
    248188
    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]
    251191            : [];
    252192
    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);
    269207        }
    270208
  • easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/DOM/Node.php

    r2547693 r2825124  
    33namespace PhpGangsters\EasyContent\HtmlHandler\DOM;
    44
    5 class Node
     5final class Node
    66{
    77    /** @var \DOMElement $sourceNode */
    8     protected $sourceNode;
     8    private $sourceNode;
    99
    1010    /** @var NodeAttributeList $attributes */
    11     protected $attributes;
     11    private $attributes;
    1212
    13 
    14     public function __construct($node)
     13    public function __construct(\DOMElement $node)
    1514    {
    1615        $this->sourceNode = $node;
     
    1817    }
    1918
    20 
    21     /**
    22      * @param NodeAttribute $attribute
    23      */
    24     public function addAttribute($attribute)
     19    public function addAttribute(NodeAttribute $attribute)
    2520    {
    2621        $this->attributes->addAttribute($attribute);
    2722    }
    28 
    2923
    3024    public function isAttributesListEmpty()
     
    3327    }
    3428
    35 
    3629    public function getSourceNode()
    3730    {
    3831        return $this->sourceNode;
    3932    }
    40 
    4133
    4234    public function getAttributeList()
  • easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/DOM/NodeAttribute.php

    r2547693 r2825124  
    88use PhpGangsters\EasyContent\HtmlHandler\Parsers\SrcsetParser;
    99
    10 class NodeAttribute
     10final class NodeAttribute
    1111{
    1212    const SRC    = 'src';
     
    1818
    1919    /** @var string $name */
    20     protected $name;
     20    private $name;
    2121
    2222    /** @var string $value */
    23     protected $value;
     23    private $value;
    2424
    2525    /** @var FileList $filesList */
    26     protected $filesList;
     26    private $filesList;
    2727
    2828    /** @var int $expectedUrlType */
    29     protected $expectedUrlType;
    30 
     29    private $expectedUrlType;
    3130
    3231    public function __construct($name, $value, $expectedUrlType)
     
    3837    }
    3938
    40 
    4139    public function getName()
    4240    {
    4341        return $this->name;
    4442    }
    45 
    4643
    4744    public function getValue()
     
    5047    }
    5148
    52 
    5349    public function getFileList()
    5450    {
     
    5652    }
    5753
    58 
    5954    public function getExpectedUrlType()
    6055    {
    6156        return $this->expectedUrlType;
    6257    }
    63 
    6458
    6559    public function parse($base = Url::LIVE_BASE)
     
    7266    }
    7367
    74 
    7568    public function noUrlsFound()
    7669    {
  • easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/DOM/NodeAttributeList.php

    r2547693 r2825124  
    33namespace PhpGangsters\EasyContent\HtmlHandler\DOM;
    44
    5 class NodeAttributeList implements \IteratorAggregate, \Countable, \ArrayAccess
     5final class NodeAttributeList implements \IteratorAggregate, \Countable, \ArrayAccess
    66{
    77    /** @var array|NodeAttribute[] $items */
    8     protected $items = [];
    9 
     8    private $items = [];
    109
    1110    public function getIterator()
     
    1413    }
    1514
    16 
    1715    public function count()
    1816    {
    1917        return count($this->items);
    2018    }
    21 
    2219
    2320    public function offsetExists($attributeName)
     
    2623    }
    2724
    28 
    2925    public function offsetGet($attributeName)
    3026    {
    3127        return $this->get($attributeName);
    3228    }
    33 
    3429
    3530    public function offsetSet($attributeName, $nodeAttribute)
     
    3833    }
    3934
    40 
    4135    public function offsetUnset($url) { }
    42 
    4336
    4437    public function has($attributeName)
     
    4740    }
    4841
    49 
    5042    public function get($attributeName)
    5143    {
     
    5345    }
    5446
    55 
    5647    /**
    5748     * @param string $attributeName
    5849     * @param NodeAttribute $nodeAttribute
    5950     */
    60     public function add($attributeName, $nodeAttribute)
     51    public function add($attributeName, NodeAttribute $nodeAttribute)
    6152    {
    6253        if ($this->has($attributeName)) {
     
    6859    }
    6960
    70 
    71     /**
    72      * @param NodeAttribute $attribute
    73      */
    74     public function addAttribute($attribute)
     61    public function addAttribute(NodeAttribute $attribute)
    7562    {
    7663        $this->add($attribute->getName(), $attribute);
    7764    }
    78 
    7965
    8066    public function isEmpty()
  • easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/DataTypes/Str.php

    r2547693 r2825124  
    33namespace PhpGangsters\EasyContent\HtmlHandler\DataTypes;
    44
    5 class Str
     5final class Str
    66{
    7     /**
    8      * @var string $sourceString
    9      */
    10     protected $sourceString;
    11 
    12 
    13     public function __construct($str)
     7    public static function removeExtraWhitespaces($str)
    148    {
    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);
    3711    }
    3812}
  • easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/DataTypes/Url.php

    r2614777 r2825124  
    33namespace PhpGangsters\EasyContent\HtmlHandler\DataTypes;
    44
    5 class Url
     5final class Url
    66{
    77    const LOCAL_BASE = 'ec-local-attachments.s3.amazonaws.com';
     
    99    const LIVE_BASE  = 'easycontent-attachments.s3.amazonaws.com';
    1010
    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
    1616
    1717    const EXTENSIONS = [
     
    2222    ];
    2323
     24    /** @var string $value */
     25    private $value;
    2426
    25     /**
    26      * @var Str $stringObject
    27      */
    28     protected $stringObject;
     27    /** @var int $type */
     28    private $type;
    2929
    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)
    3731    {
    38         $this->stringObject = new Str($urlString);
     32        $this->value = Str::removeExtraWhitespaces($urlString);
    3933        $this->type = $type;
    4034    }
    41 
    4235
    4336    public function getValuableExtensionsArray()
     
    6457    }
    6558
    66 
    67     public function getRegularExpresion($base)
     59    public function getRegularExpression($base)
    6860    {
    69         $escapedBase = preg_replace('/[\$\.\+\*\(\)\/\?]/', '\\\\$0', $base);
    70 
     61        $escapedBase = preg_quote($base, '/');
    7162        $valuableExtensions = $this->getValuableExtensionsArray();
    7263        $extensionPattern = '(' . implode('|', $valuableExtensions) . ')';
     
    7566    }
    7667
    77 
    78     public function matchesRegularExpresion($base)
     68    public function matchesRegularExpression($base)
    7969    {
    80         $trimmedUrl = trim($this->stringObject->removeExtraWhitespaces()->getValue(), '/');
    81         $urlRegex = $this->getRegularExpresion($base);
     70        $trimmedUrl = trim($this->value, '/');
     71        $urlRegex = $this->getRegularExpression($base);
    8272        $pattern = "/^{$urlRegex}$/i";
    8373
    84         return 1 === preg_match($pattern, $trimmedUrl); // Url matches regular expresion
     74        return 1 === preg_match($pattern, $trimmedUrl); // Url matches regular expression
    8575
    8676        // TODO: Maybe process url on different languages
  • easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/File.php

    r2547693 r2825124  
    33namespace PhpGangsters\EasyContent\HtmlHandler;
    44
    5 class File
     5final class File
    66{
    77    /** @var string $s3Url */
    8     protected $s3Url;
     8    private $s3Url;
    99
    1010    /** @var null|string $wpUrl */
    11     protected $wpUrl;
    12 
     11    private $wpUrl;
    1312
    1413    public function __construct($s3Url)
     
    1716    }
    1817
    19 
    2018    public function getS3Url()
    2119    {
    2220        return $this->s3Url;
    2321    }
    24 
    2522
    2623    public function getWPUrl()
     
    2926    }
    3027
    31 
    3228    public function setWPUrl($url)
    3329    {
    3430        $this->wpUrl = $url;
    3531    }
    36 
    3732
    3833    public static function getFileNameFromS3Url($url)
  • easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/FileList.php

    r2547693 r2825124  
    33namespace PhpGangsters\EasyContent\HtmlHandler;
    44
    5 class FileList implements \IteratorAggregate, \Countable, \ArrayAccess
     5final class FileList implements \IteratorAggregate, \Countable, \ArrayAccess
    66{
    77    /** @var File[] $items */
    8     protected $items = [];
    9 
     8    private $items = [];
    109
    1110    public function getIterator()
     
    1413    }
    1514
    16 
    1715    public function count()
    1816    {
    1917        return count($this->items);
    2018    }
    21 
    2219
    2320    public function offsetExists($url)
     
    2623    }
    2724
    28 
    2925    public function offsetGet($url)
    3026    {
    3127        return $this->get($url);
    3228    }
    33 
    3429
    3530    public function offsetSet($url, $file)
     
    3833    }
    3934
    40 
    4135    public function offsetUnset($url) { }
    42 
    4336
    4437    public function has($url)
     
    4740    }
    4841
    49 
    5042    public function get($url)
    5143    {
    5244        return $this->has($url) ? $this->items[$url] : null;
    5345    }
    54 
    5546
    5647    public function add($url, $file)
     
    6354    }
    6455
    65 
    6656    /**
    6757     * @param File $file
     
    7161        $this->add($file->getS3Url(), $file);
    7262    }
    73 
    7463
    7564    public function getFileNames()
     
    8170    }
    8271
    83 
    8472    public function isEmpty()
    8573    {
     
    8775    }
    8876
    89 
    90     public function addFilesFromArray($urls)
     77    public function addFilesFromArray(array $urls)
    9178    {
    9279        foreach ($urls as $url) {
     
    9582    }
    9683
    97 
    9884    public function getItems()
    9985    {
    10086        return $this->items;
    10187    }
    102 
    10388
    10489    /**
  • easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/Parsers/BaseParser.php

    r2547693 r2825124  
    1111    protected $s3UrlBase;
    1212
    13 
    1413    public function __construct($base)
    1514    {
     
    1716    }
    1817
    19 
    2018    /**
    2119     * @param NodeAttribute $nodeAttribute
    2220     * @return array|string[]
    2321     */
    24     public function parse($nodeAttribute)
     22    public function parse(NodeAttribute $nodeAttribute)
    2523    {
    2624        $matches = (new Url($nodeAttribute->getValue(), $nodeAttribute->getExpectedUrlType()))
    27             ->matchesRegularExpresion($this->s3UrlBase);
     25            ->matchesRegularExpression($this->s3UrlBase);
    2826
    2927        return $matches ? [$nodeAttribute->getValue()] : [];
  • easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/Parsers/SrcsetParser.php

    r2547693 r2825124  
    77use PhpGangsters\EasyContent\HtmlHandler\DOM\NodeAttribute;
    88
    9 class SrcsetParser extends BaseParser
     9final class SrcsetParser extends BaseParser
    1010{
    1111    /**
     
    1313     * @return array|string[]
    1414     */
    15     public function parse($nodeAttribute)
     15    public function parse(NodeAttribute $nodeAttribute)
    1616    {
    1717        $urlRegex = (new Url('', $nodeAttribute->getExpectedUrlType()))
    18             ->getRegularExpresion($this->s3UrlBase);
     18            ->getRegularExpression($this->s3UrlBase);
    1919
    2020        $pattern = "^ ?({$urlRegex})( [1-9][0-9]*(w|x))?$";
    21 
    22         $normalizedAttributeValue = (new Str($nodeAttribute->getValue()))->removeExtraWhitespaces()->getValue();
     21        $normalizedAttributeValue = Str::removeExtraWhitespaces($nodeAttribute->getValue());
    2322
    2423        $urls = [];
  • easycontent/trunk/vendor/mihaoo/easycontent-html-handler/src/Parsers/StyleParser.php

    r2547693 r2825124  
    33namespace PhpGangsters\EasyContent\HtmlHandler\Parsers;
    44
    5 class StyleParser extends BaseParser
     5use PhpGangsters\EasyContent\HtmlHandler\DOM\NodeAttribute;
     6
     7final class StyleParser extends BaseParser
    68{
    7     public function parse($string, $type = 0b1111)
     9    public function parse(NodeAttribute $nodeAttribute)
    810    {
    911        // TODO: Too hard for now. Implement later
  • easycontent/trunk/vendor/mihaoo/easycontent-html-handler/tests/Unit/DOM/DocumentTest.php

    r2547693 r2825124  
    55use PhpGangsters\EasyContent\HtmlHandler\DataTypes\Url;
    66use PhpGangsters\EasyContent\HtmlHandler\DOM\Document;
     7use PhpGangsters\EasyContent\HtmlHandler\DOM\Helper;
    78use PhpGangsters\EasyContent\HtmlHandler\FileList;
    89use PHPUnit\Framework\TestCase;
     
    4344    {
    4445        $spanToDelete = $this->document->getElementById('node-to-delete');
    45         $this->document->removeChildOuter($spanToDelete);
     46        Helper::removeChildOuter($spanToDelete);
    4647
    4748        $this->assertEquals(
     
    143144
    144145        $this->assertEquals(
    145             '<html><body>Lorem ipsum dolor sit amet</body></html>',
     146            '<p>Lorem ipsum dolor sit amet</p>',
    146147            $document->saveHTML()
    147148        );
  • easycontent/trunk/vendor/mihaoo/easycontent-html-handler/tests/Unit/DataTypes/UrlTest.php

    r2547693 r2825124  
    2626        $combinedUrlObject = new Url('http://google.com/lol.png', Url::IMAGES_URL | Url::AUDIO_URL);
    2727
    28         $regex = $imagesUrlObject->getRegularExpresion('google.com');
    29         $complexRegex = $combinedUrlObject->getRegularExpresion('s3.aws.com');
     28        $regex = $imagesUrlObject->getRegularExpression('google.com');
     29        $complexRegex = $combinedUrlObject->getRegularExpression('s3.aws.com');
    3030
    3131        $expectedRegex = 'https?:\/\/google\.com.*(jpg|jpeg|png|gif|ico)';
     
    4545        );
    4646
    47         $result = $imagesUrlObject->matchesRegularExpresion('ec-local-attachments.s3.amazonaws.com');
    48         $badResult = $imagesUrlObject->matchesRegularExpresion('google.com');
     47        $result = $imagesUrlObject->matchesRegularExpression('ec-local-attachments.s3.amazonaws.com');
     48        $badResult = $imagesUrlObject->matchesRegularExpression('google.com');
    4949
    5050        $this->assertTrue($result);
Note: See TracChangeset for help on using the changeset viewer.