Plugin Directory

Changeset 2687512


Ignore:
Timestamp:
03/02/2022 01:10:12 PM (4 years ago)
Author:
questpass
Message:

Release 2.0.3

Location:
questpass/trunk
Files:
5 added
13 edited

Legend:

Unmodified
Added
Removed
  • questpass/trunk/readme.txt

    r2653235 r2687512  
    5050== Changelog ==
    5151
     52= 2.0.3 (2022-03-02) =
     53* Fixed constants prefixed by php-scoper
     54
    5255= 2.0.2 (2022-01-05) =
    5356* Fixed refreshing JavaScript code for widget
  • questpass/trunk/vendor/autoload.php

    r2653235 r2687512  
    55require_once __DIR__ . '/composer/autoload_real.php';
    66
    7 return ComposerAutoloaderInit3a186aabbdc52f5e64d54f6d489b71c2::getLoader();
     7return ComposerAutoloaderInit708051363b81f601d72a518eaa1a4f87::getLoader();
  • questpass/trunk/vendor/composer/ClassLoader.php

    r2653235 r2687512  
    150150    /**
    151151     * @return string[] Array of classname => path
    152      * @psalm-var array<string, string>
     152     * @psalm-return array<string, string>
    153153     */
    154154    public function getClassMap()
  • questpass/trunk/vendor/composer/autoload_classmap.php

    r2653235 r2687512  
    240240    'Questpass\\Settings\\Option\\OptionIntegration' => $baseDir . '/src/Settings/Option/OptionIntegration.php',
    241241    'Questpass\\Settings\\Option\\OptionInterface' => $baseDir . '/src/Settings/Option/OptionInterface.php',
    242     'Questpass\\Settings\\Option\\PostTypesOption' => $baseDir . '/src/Settings/Option/PosttypesOption.php',
     242    'Questpass\\Settings\\Option\\PostTypesOption' => $baseDir . '/src/Settings/Option/PostTypesOption.php',
    243243    'Questpass\\Settings\\PluginSettingsPage' => $baseDir . '/src/Settings/PluginSettingsPage.php',
    244244    'Questpass\\Settings\\PostSettingsForm' => $baseDir . '/src/Settings/PostSettingsForm.php',
  • questpass/trunk/vendor/composer/autoload_real.php

    r2653235 r2687512  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit3a186aabbdc52f5e64d54f6d489b71c2
     5class ComposerAutoloaderInit708051363b81f601d72a518eaa1a4f87
    66{
    77    private static $loader;
     
    2323        }
    2424
    25         spl_autoload_register(array('ComposerAutoloaderInit3a186aabbdc52f5e64d54f6d489b71c2', 'loadClassLoader'), true, true);
     25        spl_autoload_register(array('ComposerAutoloaderInit708051363b81f601d72a518eaa1a4f87', 'loadClassLoader'), true, true);
    2626        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    27         spl_autoload_unregister(array('ComposerAutoloaderInit3a186aabbdc52f5e64d54f6d489b71c2', 'loadClassLoader'));
     27        spl_autoload_unregister(array('ComposerAutoloaderInit708051363b81f601d72a518eaa1a4f87', 'loadClassLoader'));
    2828
    2929        $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
     
    3131            require __DIR__ . '/autoload_static.php';
    3232
    33             call_user_func(\Composer\Autoload\ComposerStaticInit3a186aabbdc52f5e64d54f6d489b71c2::getInitializer($loader));
     33            call_user_func(\Composer\Autoload\ComposerStaticInit708051363b81f601d72a518eaa1a4f87::getInitializer($loader));
    3434        } else {
    3535            $map = require __DIR__ . '/autoload_namespaces.php';
  • questpass/trunk/vendor/composer/autoload_static.php

    r2653235 r2687512  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit3a186aabbdc52f5e64d54f6d489b71c2
     7class ComposerStaticInit708051363b81f601d72a518eaa1a4f87
    88{
    99    public static $prefixLengthsPsr4 = array (
     
    255255        'Questpass\\Settings\\Option\\OptionIntegration' => __DIR__ . '/../..' . '/src/Settings/Option/OptionIntegration.php',
    256256        'Questpass\\Settings\\Option\\OptionInterface' => __DIR__ . '/../..' . '/src/Settings/Option/OptionInterface.php',
    257         'Questpass\\Settings\\Option\\PostTypesOption' => __DIR__ . '/../..' . '/src/Settings/Option/PosttypesOption.php',
     257        'Questpass\\Settings\\Option\\PostTypesOption' => __DIR__ . '/../..' . '/src/Settings/Option/PostTypesOption.php',
    258258        'Questpass\\Settings\\PluginSettingsPage' => __DIR__ . '/../..' . '/src/Settings/PluginSettingsPage.php',
    259259        'Questpass\\Settings\\PostSettingsForm' => __DIR__ . '/../..' . '/src/Settings/PostSettingsForm.php',
     
    264264    {
    265265        return \Closure::bind(function () use ($loader) {
    266             $loader->prefixLengthsPsr4 = ComposerStaticInit3a186aabbdc52f5e64d54f6d489b71c2::$prefixLengthsPsr4;
    267             $loader->prefixDirsPsr4 = ComposerStaticInit3a186aabbdc52f5e64d54f6d489b71c2::$prefixDirsPsr4;
    268             $loader->classMap = ComposerStaticInit3a186aabbdc52f5e64d54f6d489b71c2::$classMap;
     266            $loader->prefixLengthsPsr4 = ComposerStaticInit708051363b81f601d72a518eaa1a4f87::$prefixLengthsPsr4;
     267            $loader->prefixDirsPsr4 = ComposerStaticInit708051363b81f601d72a518eaa1a4f87::$prefixDirsPsr4;
     268            $loader->classMap = ComposerStaticInit708051363b81f601d72a518eaa1a4f87::$classMap;
    269269
    270270        }, null, ClassLoader::class);
  • questpass/trunk/vendor/composer/installed.php

    r2653235 r2687512  
    11<?php return array(
    22    'root' => array(
    3         'pretty_version' => 'dev-develop',
    4         'version' => 'dev-develop',
     3        'pretty_version' => '1.0.0+no-version-set',
     4        'version' => '1.0.0.0',
    55        'type' => 'library',
    66        'install_path' => __DIR__ . '/../../',
    77        'aliases' => array(),
    8         'reference' => 'be0347c4509d407579a1cd8892264a0808d94b3d',
     8        'reference' => NULL,
    99        'name' => 'questpass/questpass',
    1010        'dev' => false,
     
    120120        ),
    121121        'questpass/questpass' => array(
    122             'pretty_version' => 'dev-develop',
    123             'version' => 'dev-develop',
     122            'pretty_version' => '1.0.0+no-version-set',
     123            'version' => '1.0.0.0',
    124124            'type' => 'library',
    125125            'install_path' => __DIR__ . '/../../',
    126126            'aliases' => array(),
    127             'reference' => 'be0347c4509d407579a1cd8892264a0808d94b3d',
     127            'reference' => NULL,
    128128            'dev_requirement' => false,
    129129        ),
  • questpass/trunk/vendor_prefixed/adquesto/adquesto-php-sdk/examples/example_autoprepare.php

    r2611365 r2687512  
    1515use QuestpassVendor\Adquesto\SDK\ElementsContextProvider;
    1616const API_URL = 'https://api.adquesto.com/v1/publishers/services/';
    17 $adquesto = new Content(\API_URL, '__paste Service UUID here__', new InMemoryStorage(), new CurlHttpClient(), PositioningSettings::factory(PositioningSettings::STRATEGY_UPPER));
     17$adquesto = new Content(\QuestpassVendor\API_URL, '__paste Service UUID here__', new InMemoryStorage(), new CurlHttpClient(), PositioningSettings::factory(PositioningSettings::STRATEGY_UPPER));
    1818try {
    1919    $javascript = $adquesto->javascript([$elementsProvider = new ElementsContextProvider(null, null, 0, $hasActiveCampaigns)]);
  • questpass/trunk/vendor_prefixed/adquesto/adquesto-php-sdk/examples/example_manualprepare.php

    r2611365 r2687512  
    1515use QuestpassVendor\Adquesto\SDK\ElementsContextProvider;
    1616const API_URL = 'https://api.adquesto.com/v1/publishers/services/';
    17 $adquesto = new Content(\API_URL, '__paste Service UUID here__', new InMemoryStorage(), new CurlHttpClient(), PositioningSettings::factory(PositioningSettings::STRATEGY_UPPER));
     17$adquesto = new Content(\QuestpassVendor\API_URL, '__paste Service UUID here__', new InMemoryStorage(), new CurlHttpClient(), PositioningSettings::factory(PositioningSettings::STRATEGY_UPPER));
    1818try {
    1919    $javascript = $adquesto->javascript([$elementsProvider = new ElementsContextProvider(null, null, 0, $hasActiveCampaigns)]);
  • questpass/trunk/vendor_prefixed/adquesto/adquesto-php-sdk/examples/example_webhook.php

    r2611365 r2687512  
    3232    case 'questo_update_service_status_option':
    3333    case 'questo_update_subscription_option':
    34         $service = new \QuestpassVendor\Adquesto\SDK\Service(new \QuestpassVendor\Adquesto\SDK\ServiceAPIUrl(\API_URL, \SERVICE_UUID), new CurlHttpClient());
     34        $service = new \QuestpassVendor\Adquesto\SDK\Service(new \QuestpassVendor\Adquesto\SDK\ServiceAPIUrl(\QuestpassVendor\API_URL, \QuestpassVendor\SERVICE_UUID), new CurlHttpClient());
    3535        $serviceStatusResponse = $service->fetchStatus();
    3636        if (!$serviceStatusResponse) {
     
    4444        break;
    4545    case 'questo_force_update_javascript':
    46         $adquesto = new Content(\API_URL, \SERVICE_UUID, new InMemoryStorage(), new CurlHttpClient(), PositioningSettings::factory(PositioningSettings::STRATEGY_UPPER));
     46        $adquesto = new Content(\QuestpassVendor\API_URL, \QuestpassVendor\SERVICE_UUID, new InMemoryStorage(), new CurlHttpClient(), PositioningSettings::factory(PositioningSettings::STRATEGY_UPPER));
    4747        try {
    4848            $javascript = $adquesto->requestJavascript(\true);
  • questpass/trunk/vendor_prefixed/adquesto/adquesto-php-sdk/src/Content.php

    r2653235 r2687512  
    235235        $wrapperId = 'adquestoWrapper';
    236236        $str = \sprintf('<div id="%s">%s</div>', $wrapperId, $content);
    237         $dom = HtmlDomParser::str_get_html($str, $lowercase = \true, $forceTagsClosed = \true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN = \false);
     237        $dom = HtmlDomParser::str_get_html($str, $lowercase = \true, $forceTagsClosed = \true, $target_charset = \DEFAULT_TARGET_CHARSET, $stripRN = \false);
    238238        // ->childNodes() removes text tags like [ngg] that's why we use ->nodes here
    239239        return $dom->getElementById($wrapperId)->nodes;
  • questpass/trunk/vendor_prefixed/kub-at/php-simple-html-dom-parser/src/KubAT/PhpSimple/lib/simple_html_dom.php

    r2611365 r2687512  
    4646\defined('MAX_FILE_SIZE') || \define('MAX_FILE_SIZE', 600000);
    4747\define('HDOM_SMARTY_AS_TEXT', 1);
    48 function file_get_html($url, $use_include_path = \false, $context = null, $offset = 0, $maxLen = -1, $lowercase = \true, $forceTagsClosed = \true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN = \true, $defaultBRText = DEFAULT_BR_TEXT, $defaultSpanText = DEFAULT_SPAN_TEXT)
     48function file_get_html($url, $use_include_path = \false, $context = null, $offset = 0, $maxLen = -1, $lowercase = \true, $forceTagsClosed = \true, $target_charset = \DEFAULT_TARGET_CHARSET, $stripRN = \true, $defaultBRText = \DEFAULT_BR_TEXT, $defaultSpanText = \DEFAULT_SPAN_TEXT)
    4949{
    5050    if ($maxLen <= 0) {
    51         $maxLen = MAX_FILE_SIZE;
     51        $maxLen = \MAX_FILE_SIZE;
    5252    }
    5353    $dom = new simple_html_dom(null, $lowercase, $forceTagsClosed, $target_charset, $stripRN, $defaultBRText, $defaultSpanText);
     
    6464    return $dom->load($contents, $lowercase, $stripRN);
    6565}
    66 function str_get_html($str, $lowercase = \true, $forceTagsClosed = \true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN = \true, $defaultBRText = DEFAULT_BR_TEXT, $defaultSpanText = DEFAULT_SPAN_TEXT)
     66function str_get_html($str, $lowercase = \true, $forceTagsClosed = \true, $target_charset = \DEFAULT_TARGET_CHARSET, $stripRN = \true, $defaultBRText = \DEFAULT_BR_TEXT, $defaultSpanText = \DEFAULT_SPAN_TEXT)
    6767{
    6868    $dom = new simple_html_dom(null, $lowercase, $forceTagsClosed, $target_charset, $stripRN, $defaultBRText, $defaultSpanText);
    69     if (empty($str) || \strlen($str) > MAX_FILE_SIZE) {
     69    if (empty($str) || \strlen($str) > \MAX_FILE_SIZE) {
    7070        $dom->clear();
    7171        return \false;
     
    7979class simple_html_dom_node
    8080{
    81     public $nodetype = HDOM_TYPE_TEXT;
     81    public $nodetype = \HDOM_TYPE_TEXT;
    8282    public $tag = 'text';
    8383    public $attr = array();
     
    154154        }
    155155        $string .= ' HDOM_INNER_INFO: ';
    156         if (isset($node->_[HDOM_INFO_INNER])) {
    157             $string .= "'" . $node->_[HDOM_INFO_INNER] . "'";
     156        if (isset($node->_[\HDOM_INFO_INNER])) {
     157            $string .= "'" . $node->_[\HDOM_INFO_INNER] . "'";
    158158        } else {
    159159            $string .= ' NULL ';
     
    255255    function innertext()
    256256    {
    257         if (isset($this->_[HDOM_INFO_INNER])) {
    258             return $this->_[HDOM_INFO_INNER];
    259         }
    260         if (isset($this->_[HDOM_INFO_TEXT])) {
    261             return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]);
     257        if (isset($this->_[\HDOM_INFO_INNER])) {
     258            return $this->_[\HDOM_INFO_INNER];
     259        }
     260        if (isset($this->_[\HDOM_INFO_TEXT])) {
     261            return $this->dom->restore_noise($this->_[\HDOM_INFO_TEXT]);
    262262        }
    263263        $ret = '';
     
    286286            \call_user_func_array($this->dom->callback, array($this));
    287287        }
    288         if (isset($this->_[HDOM_INFO_OUTER])) {
    289             return $this->_[HDOM_INFO_OUTER];
    290         }
    291         if (isset($this->_[HDOM_INFO_TEXT])) {
    292             return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]);
     288        if (isset($this->_[\HDOM_INFO_OUTER])) {
     289            return $this->_[\HDOM_INFO_OUTER];
     290        }
     291        if (isset($this->_[\HDOM_INFO_TEXT])) {
     292            return $this->dom->restore_noise($this->_[\HDOM_INFO_TEXT]);
    293293        }
    294294        $ret = '';
    295         if ($this->dom && $this->dom->nodes[$this->_[HDOM_INFO_BEGIN]]) {
    296             $ret = $this->dom->nodes[$this->_[HDOM_INFO_BEGIN]]->makeup();
    297         }
    298         if (isset($this->_[HDOM_INFO_INNER])) {
     295        if ($this->dom && $this->dom->nodes[$this->_[\HDOM_INFO_BEGIN]]) {
     296            $ret = $this->dom->nodes[$this->_[\HDOM_INFO_BEGIN]]->makeup();
     297        }
     298        if (isset($this->_[\HDOM_INFO_INNER])) {
    299299            // todo: <br> should either never have HDOM_INFO_INNER or always
    300300            if ($this->tag !== 'br') {
    301                 $ret .= $this->_[HDOM_INFO_INNER];
     301                $ret .= $this->_[\HDOM_INFO_INNER];
    302302            }
    303303        } elseif ($this->nodes) {
     
    306306            }
    307307        }
    308         if (isset($this->_[HDOM_INFO_END]) && $this->_[HDOM_INFO_END] != 0) {
     308        if (isset($this->_[\HDOM_INFO_END]) && $this->_[\HDOM_INFO_END] != 0) {
    309309            $ret .= '</' . $this->tag . '>';
    310310        }
     
    313313    function text()
    314314    {
    315         if (isset($this->_[HDOM_INFO_INNER])) {
    316             return $this->_[HDOM_INFO_INNER];
     315        if (isset($this->_[\HDOM_INFO_INNER])) {
     316            return $this->_[\HDOM_INFO_INNER];
    317317        }
    318318        switch ($this->nodetype) {
    319             case HDOM_TYPE_TEXT:
    320                 return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]);
    321             case HDOM_TYPE_COMMENT:
     319            case \HDOM_TYPE_TEXT:
     320                return $this->dom->restore_noise($this->_[\HDOM_INFO_TEXT]);
     321            case \HDOM_TYPE_COMMENT:
    322322                return '';
    323             case HDOM_TYPE_UNKNOWN:
     323            case \HDOM_TYPE_UNKNOWN:
    324324                return '';
    325325        }
     
    363363    {
    364364        // text, comment, unknown
    365         if (isset($this->_[HDOM_INFO_TEXT])) {
    366             return $this->dom->restore_noise($this->_[HDOM_INFO_TEXT]);
     365        if (isset($this->_[\HDOM_INFO_TEXT])) {
     366            return $this->dom->restore_noise($this->_[\HDOM_INFO_TEXT]);
    367367        }
    368368        $ret = '<' . $this->tag;
     
    374374                continue;
    375375            }
    376             $ret .= $this->_[HDOM_INFO_SPACE][$i][0];
     376            $ret .= $this->_[\HDOM_INFO_SPACE][$i][0];
    377377            //no value attr: nowrap, checked selected...
    378378            if ($val === \true) {
    379379                $ret .= $key;
    380380            } else {
    381                 switch ($this->_[HDOM_INFO_QUOTE][$i]) {
    382                     case HDOM_QUOTE_DOUBLE:
     381                switch ($this->_[\HDOM_INFO_QUOTE][$i]) {
     382                    case \HDOM_QUOTE_DOUBLE:
    383383                        $quote = '"';
    384384                        break;
    385                     case HDOM_QUOTE_SINGLE:
     385                    case \HDOM_QUOTE_SINGLE:
    386386                        $quote = '\'';
    387387                        break;
     
    389389                        $quote = '';
    390390                }
    391                 $ret .= $key . $this->_[HDOM_INFO_SPACE][$i][1] . '=' . $this->_[HDOM_INFO_SPACE][$i][2] . $quote . $val . $quote;
     391                $ret .= $key . $this->_[\HDOM_INFO_SPACE][$i][1] . '=' . $this->_[\HDOM_INFO_SPACE][$i][2] . $quote . $val . $quote;
    392392            }
    393393        }
    394394        $ret = $this->dom->restore_noise($ret);
    395         return $ret . $this->_[HDOM_INFO_ENDSPACE] . '>';
     395        return $ret . $this->_[\HDOM_INFO_ENDSPACE] . '>';
    396396    }
    397397    function find($selector, $idx = null, $lowercase = \false)
     
    410410                return array();
    411411            }
    412             if (!isset($this->_[HDOM_INFO_BEGIN])) {
     412            if (!isset($this->_[\HDOM_INFO_BEGIN])) {
    413413                return array();
    414414            }
    415             $head = array($this->_[HDOM_INFO_BEGIN] => 1);
     415            $head = array($this->_[\HDOM_INFO_BEGIN] => 1);
    416416            $cmd = ' ';
    417417            // Combinator
     
    460460            // Find parent closing tag if the current element doesn't have a closing
    461461            // tag (i.e. void element)
    462             $end = !empty($this->_[HDOM_INFO_END]) ? $this->_[HDOM_INFO_END] : 0;
     462            $end = !empty($this->_[\HDOM_INFO_END]) ? $this->_[\HDOM_INFO_END] : 0;
    463463            if ($end == 0) {
    464464                $parent = $this->parent;
    465                 while (!isset($parent->_[HDOM_INFO_END]) && $parent !== null) {
     465                while (!isset($parent->_[\HDOM_INFO_END]) && $parent !== null) {
    466466                    $end -= 1;
    467467                    $parent = $parent->parent;
    468468                }
    469                 $end += $parent->_[HDOM_INFO_END];
     469                $end += $parent->_[\HDOM_INFO_END];
    470470            }
    471471            // Get list of target nodes
    472             $nodes_start = $this->_[HDOM_INFO_BEGIN] + 1;
     472            $nodes_start = $this->_[\HDOM_INFO_BEGIN] + 1;
    473473            $nodes_count = $end - $nodes_start;
    474474            $nodes = \array_slice($this->dom->nodes, $nodes_start, $nodes_count, \true);
     
    617617            // Found a match. Add to list and clear node
    618618            if ($pass) {
    619                 $ret[$node->_[HDOM_INFO_BEGIN]] = 1;
     619                $ret[$node->_[\HDOM_INFO_BEGIN]] = 1;
    620620            }
    621621            unset($node);
     
    831831        switch ($name) {
    832832            case 'outertext':
    833                 return $this->_[HDOM_INFO_OUTER] = $value;
     833                return $this->_[\HDOM_INFO_OUTER] = $value;
    834834            case 'innertext':
    835                 if (isset($this->_[HDOM_INFO_TEXT])) {
    836                     return $this->_[HDOM_INFO_TEXT] = $value;
    837                 }
    838                 return $this->_[HDOM_INFO_INNER] = $value;
     835                if (isset($this->_[\HDOM_INFO_TEXT])) {
     836                    return $this->_[\HDOM_INFO_TEXT] = $value;
     837                }
     838                return $this->_[\HDOM_INFO_INNER] = $value;
    839839        }
    840840        if (!isset($this->attr[$name])) {
    841             $this->_[HDOM_INFO_SPACE][] = array(' ', '', '');
    842             $this->_[HDOM_INFO_QUOTE][] = HDOM_QUOTE_DOUBLE;
     841            $this->_[\HDOM_INFO_SPACE][] = array(' ', '', '');
     842            $this->_[\HDOM_INFO_QUOTE][] = \HDOM_QUOTE_DOUBLE;
    843843        }
    844844        $this->attr[$name] = $value;
     
    12091209        'tr' => array('td' => 1, 'th' => 1, 'tr' => 1),
    12101210    );
    1211     function __construct($str = null, $lowercase = \true, $forceTagsClosed = \true, $target_charset = DEFAULT_TARGET_CHARSET, $stripRN = \true, $defaultBRText = DEFAULT_BR_TEXT, $defaultSpanText = DEFAULT_SPAN_TEXT, $options = 0)
     1211    function __construct($str = null, $lowercase = \true, $forceTagsClosed = \true, $target_charset = \DEFAULT_TARGET_CHARSET, $stripRN = \true, $defaultBRText = \DEFAULT_BR_TEXT, $defaultSpanText = \DEFAULT_SPAN_TEXT, $options = 0)
    12121212    {
    12131213        if ($str) {
     
    12291229        $this->clear();
    12301230    }
    1231     function load($str, $lowercase = \true, $stripRN = \true, $defaultBRText = DEFAULT_BR_TEXT, $defaultSpanText = DEFAULT_SPAN_TEXT, $options = 0)
     1231    function load($str, $lowercase = \true, $stripRN = \true, $defaultBRText = \DEFAULT_BR_TEXT, $defaultSpanText = \DEFAULT_SPAN_TEXT, $options = 0)
    12321232    {
    12331233        global $debug_object;
     
    12571257        // strip out server side scripts
    12581258        $this->remove_noise("'(<\\?)(.*?)(\\?>)'s", \true);
    1259         if ($options & HDOM_SMARTY_AS_TEXT) {
     1259        if ($options & \HDOM_SMARTY_AS_TEXT) {
    12601260            // Strip Smarty scripts
    12611261            $this->remove_noise("'(\\{\\w)(.*?)(\\})'s", \true);
     
    12641264        $this->parse();
    12651265        // end
    1266         $this->root->_[HDOM_INFO_END] = $this->cursor;
     1266        $this->root->_[\HDOM_INFO_END] = $this->cursor;
    12671267        $this->parse_charset();
    12681268        // make load function chainable
     
    13301330        $this->root->dump($show_attr);
    13311331    }
    1332     protected function prepare($str, $lowercase = \true, $defaultBRText = DEFAULT_BR_TEXT, $defaultSpanText = DEFAULT_SPAN_TEXT)
     1332    protected function prepare($str, $lowercase = \true, $defaultBRText = \DEFAULT_BR_TEXT, $defaultSpanText = \DEFAULT_SPAN_TEXT)
    13331333    {
    13341334        $this->clear();
     
    13461346        $this->root = new simple_html_dom_node($this);
    13471347        $this->root->tag = 'root';
    1348         $this->root->_[HDOM_INFO_BEGIN] = -1;
    1349         $this->root->nodetype = HDOM_TYPE_ROOT;
     1348        $this->root->_[\HDOM_INFO_BEGIN] = -1;
     1349        $this->root->nodetype = \HDOM_TYPE_ROOT;
    13501350        $this->parent = $this->root;
    13511351        if ($this->size > 0) {
     
    13681368            $node = new simple_html_dom_node($this);
    13691369            ++$this->cursor;
    1370             $node->_[HDOM_INFO_TEXT] = $s;
     1370            $node->_[\HDOM_INFO_TEXT] = $s;
    13711371            $this->link_nodes($node, \false);
    13721372        }
     
    14791479        // Set end position if no further tags found
    14801480        if ($this->char !== '<') {
    1481             $this->root->_[HDOM_INFO_END] = $this->cursor;
     1481            $this->root->_[\HDOM_INFO_END] = $this->cursor;
    14821482            return \false;
    14831483        }
     
    15041504                // Current tag is a block tag, so it may close an ancestor
    15051505                if (isset($this->optional_closing_tags[$parent_lower]) && isset($this->block_tags[$tag_lower])) {
    1506                     $this->parent->_[HDOM_INFO_END] = 0;
     1506                    $this->parent->_[\HDOM_INFO_END] = 0;
    15071507                    $org_parent = $this->parent;
    15081508                    // Traverse ancestors to find a matching opening tag
     
    15181518                            $this->parent = $this->parent->parent;
    15191519                        }
    1520                         $this->parent->_[HDOM_INFO_END] = $this->cursor;
     1520                        $this->parent->_[\HDOM_INFO_END] = $this->cursor;
    15211521                        return $this->as_text_node($tag);
    15221522                    }
     
    15241524                    // Grandparent exists and current tag is a block tag, so our
    15251525                    // parent doesn't have an end tag
    1526                     $this->parent->_[HDOM_INFO_END] = 0;
     1526                    $this->parent->_[\HDOM_INFO_END] = 0;
    15271527                    // No end tag
    15281528                    $org_parent = $this->parent;
     
    15361536                        $this->parent = $org_parent;
    15371537                        // restore origonal parent
    1538                         $this->parent->_[HDOM_INFO_END] = $this->cursor;
     1538                        $this->parent->_[\HDOM_INFO_END] = $this->cursor;
    15391539                        return $this->as_text_node($tag);
    15401540                    }
    15411541                } elseif ($this->parent->parent && \strtolower($this->parent->parent->tag) === $tag_lower) {
    15421542                    // Grandparent exists and current tag closes it
    1543                     $this->parent->_[HDOM_INFO_END] = 0;
     1543                    $this->parent->_[\HDOM_INFO_END] = 0;
    15441544                    $this->parent = $this->parent->parent;
    15451545                } else {
     
    15491549            }
    15501550            // Set end position of parent tag to current cursor position
    1551             $this->parent->_[HDOM_INFO_END] = $this->cursor;
     1551            $this->parent->_[\HDOM_INFO_END] = $this->cursor;
    15521552            if ($this->parent->parent) {
    15531553                $this->parent = $this->parent->parent;
     
    15591559        // start tag
    15601560        $node = new simple_html_dom_node($this);
    1561         $node->_[HDOM_INFO_BEGIN] = $this->cursor;
     1561        $node->_[\HDOM_INFO_BEGIN] = $this->cursor;
    15621562        ++$this->cursor;
    15631563        $tag = $this->copy_until($this->token_slash);
     
    15691569        // <!-- Comment -->
    15701570        if (isset($tag[0]) && $tag[0] === '!') {
    1571             $node->_[HDOM_INFO_TEXT] = '<' . $tag . $this->copy_until_char('>');
     1571            $node->_[\HDOM_INFO_TEXT] = '<' . $tag . $this->copy_until_char('>');
    15721572            if (isset($tag[2]) && $tag[1] === '-' && $tag[2] === '-') {
    15731573                // Comment ("<!--")
    1574                 $node->nodetype = HDOM_TYPE_COMMENT;
     1574                $node->nodetype = \HDOM_TYPE_COMMENT;
    15751575                $node->tag = 'comment';
    15761576            } else {
    15771577                // Could be doctype or CDATA but we don't care
    1578                 $node->nodetype = HDOM_TYPE_UNKNOWN;
     1578                $node->nodetype = \HDOM_TYPE_UNKNOWN;
    15791579                $node->tag = 'unknown';
    15801580            }
    15811581            if ($this->char === '>') {
    1582                 $node->_[HDOM_INFO_TEXT] .= '>';
     1582                $node->_[\HDOM_INFO_TEXT] .= '>';
    15831583            }
    15841584            $this->link_nodes($node, \true);
     
    15911591        if ($pos = \strpos($tag, '<') !== \false) {
    15921592            $tag = '<' . \substr($tag, 0, -1);
    1593             $node->_[HDOM_INFO_TEXT] = $tag;
     1593            $node->_[\HDOM_INFO_TEXT] = $tag;
    15941594            $this->link_nodes($node, \false);
    15951595            $this->char = $this->doc[--$this->pos];
     
    15991599        // Handle invalid tag names (i.e. "<html#doc>")
    16001600        if (!\preg_match('/^\\w[\\w:-]*$/', $tag)) {
    1601             $node->_[HDOM_INFO_TEXT] = '<' . $tag . $this->copy_until('<>');
     1601            $node->_[\HDOM_INFO_TEXT] = '<' . $tag . $this->copy_until('<>');
    16021602            // Next char is the beginning of a new tag, don't touch it.
    16031603            if ($this->char === '<') {
     
    16071607            // Next char closes current tag, add and be done with it.
    16081608            if ($this->char === '>') {
    1609                 $node->_[HDOM_INFO_TEXT] .= '>';
     1609                $node->_[\HDOM_INFO_TEXT] .= '>';
    16101610            }
    16111611            $this->link_nodes($node, \false);
     
    16151615        }
    16161616        // begin tag, add new node
    1617         $node->nodetype = HDOM_TYPE_ELEMENT;
     1617        $node->nodetype = \HDOM_TYPE_ELEMENT;
    16181618        $tag_lower = \strtolower($tag);
    16191619        $node->tag = $this->lowercase ? $tag_lower : $tag;
     
    16221622            // Traverse ancestors to close all optional closing tags
    16231623            while (isset($this->optional_closing_tags[$tag_lower][\strtolower($this->parent->tag)])) {
    1624                 $this->parent->_[HDOM_INFO_END] = 0;
     1624                $this->parent->_[\HDOM_INFO_END] = 0;
    16251625                $this->parent = $this->parent->parent;
    16261626            }
     
    16481648            // Out of bounds before the tag ended
    16491649            if ($this->pos >= $this->size - 1 && $this->char !== '>') {
    1650                 $node->nodetype = HDOM_TYPE_TEXT;
    1651                 $node->_[HDOM_INFO_END] = 0;
    1652                 $node->_[HDOM_INFO_TEXT] = '<' . $tag . $space[0] . $name;
     1650                $node->nodetype = \HDOM_TYPE_TEXT;
     1651                $node->_[\HDOM_INFO_END] = 0;
     1652                $node->_[\HDOM_INFO_TEXT] = '<' . $tag . $space[0] . $name;
    16531653                $node->tag = 'text';
    16541654                $this->link_nodes($node, \false);
     
    16581658            // Attributes cannot start after opening tag
    16591659            if ($this->doc[$this->pos - 1] == '<') {
    1660                 $node->nodetype = HDOM_TYPE_TEXT;
     1660                $node->nodetype = \HDOM_TYPE_TEXT;
    16611661                $node->tag = 'text';
    16621662                $node->attr = array();
    1663                 $node->_[HDOM_INFO_END] = 0;
    1664                 $node->_[HDOM_INFO_TEXT] = \substr($this->doc, $begin_tag_pos, $this->pos - $begin_tag_pos - 1);
     1663                $node->_[\HDOM_INFO_END] = 0;
     1664                $node->_[\HDOM_INFO_TEXT] = \substr($this->doc, $begin_tag_pos, $this->pos - $begin_tag_pos - 1);
    16651665                $this->pos -= 2;
    16661666                $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null;
     
    16861686                } else {
    16871687                    //no value attr: nowrap, checked selected...
    1688                     $node->_[HDOM_INFO_QUOTE][] = HDOM_QUOTE_NO;
     1688                    $node->_[\HDOM_INFO_QUOTE][] = \HDOM_QUOTE_NO;
    16891689                    $node->attr[$name] = \true;
    16901690                    if ($this->char != '>') {
     
    16931693                    // prev
    16941694                }
    1695                 $node->_[HDOM_INFO_SPACE][] = $space;
     1695                $node->_[\HDOM_INFO_SPACE][] = $space;
    16961696                // prepare for next attribute
    16971697                $space = array($this->copy_skip($this->token_blank), '', '');
     
    17031703        // go until the tag ended
    17041704        $this->link_nodes($node, \true);
    1705         $node->_[HDOM_INFO_ENDSPACE] = $space[0];
     1705        $node->_[\HDOM_INFO_ENDSPACE] = $space[0];
    17061706        // handle empty tags (i.e. "<div/>")
    17071707        if ($this->copy_until_char('>') === '/') {
    1708             $node->_[HDOM_INFO_ENDSPACE] .= '/';
    1709             $node->_[HDOM_INFO_END] = 0;
     1708            $node->_[\HDOM_INFO_ENDSPACE] .= '/';
     1709            $node->_[\HDOM_INFO_END] = 0;
    17101710        } else {
    17111711            // reset parent
     
    17201720        // since a br tag never has sub nodes, this works well.
    17211721        if ($node->tag === 'br') {
    1722             $node->_[HDOM_INFO_INNER] = $this->default_br_text;
     1722            $node->_[\HDOM_INFO_INNER] = $this->default_br_text;
    17231723        }
    17241724        return \true;
     
    17331733        switch ($this->char) {
    17341734            case '"':
    1735                 $quote_type = HDOM_QUOTE_DOUBLE;
     1735                $quote_type = \HDOM_QUOTE_DOUBLE;
    17361736                $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null;
    17371737                // next
     
    17411741                break;
    17421742            case '\'':
    1743                 $quote_type = HDOM_QUOTE_SINGLE;
     1743                $quote_type = \HDOM_QUOTE_SINGLE;
    17441744                $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null;
    17451745                // next
     
    17491749                break;
    17501750            default:
    1751                 $quote_type = HDOM_QUOTE_NO;
     1751                $quote_type = \HDOM_QUOTE_NO;
    17521752                $value = $this->copy_until($this->token_attr);
    17531753        }
     
    17631763        }
    17641764        if (!$is_duplicate) {
    1765             $node->_[HDOM_INFO_QUOTE][] = $quote_type;
     1765            $node->_[\HDOM_INFO_QUOTE][] = $quote_type;
    17661766            $node->attr[$name] = $value;
    17671767        }
     
    17791779        $node = new simple_html_dom_node($this);
    17801780        ++$this->cursor;
    1781         $node->_[HDOM_INFO_TEXT] = '</' . $tag . '>';
     1781        $node->_[\HDOM_INFO_TEXT] = '</' . $tag . '>';
    17821782        $this->link_nodes($node, \false);
    17831783        $this->char = ++$this->pos < $this->size ? $this->doc[$this->pos] : null;
  • questpass/trunk/vendor_prefixed/league/oauth2-client/src/Token/AccessTokenInterface.php

    r2653235 r2687512  
    1616
    1717use JsonSerializable;
    18 use QuestpassVendor\ReturnTypeWillChange;
     18use ReturnTypeWillChange;
    1919use RuntimeException;
    2020interface AccessTokenInterface extends JsonSerializable
Note: See TracChangeset for help on using the changeset viewer.