Plugin Directory

Changeset 3153225


Ignore:
Timestamp:
09/17/2024 10:52:08 AM (19 months ago)
Author:
vincent06
Message:

New 1.1.4 Version update - Tested up to WP 6.6.2

Location:
kolorweb-log-manager/trunk
Files:
4 added
59 deleted
29 edited

Legend:

Unmodified
Added
Removed
  • kolorweb-log-manager/trunk/kw-log-manager.php

    r2733580 r3153225  
    44 * Plugin URI:  https://github.com/vincenzocasu/kwlogmanager
    55 * Description: WordPress Debug log Manager
    6  * Version:     1.1.3
     6 * Version:     1.1.4
    77 * Author:      Vincenzo Casu
    88 * Author URI:  https://kolorweb.it
     
    3939 * Define Constants.
    4040 */
    41 define( 'KWLOGMANAGER_VERSION', '1.1.3' );
     41define( 'KWLOGMANAGER_VERSION', '1.1.4' );
    4242define( 'KWLOGMANAGER_BASE', dirname( __FILE__ ) . '/' );
    4343define( 'KWLOGMANAGER_URL', plugin_dir_url( __FILE__ ) );
  • kolorweb-log-manager/trunk/libs/class-plugin.php

    r2732944 r3153225  
    154154
    155155            // Javascript files.
    156             wp_enqueue_script( 'kwlogmanager-js', KWLOGMANAGER_URL . 'assets/js/main.' . KWLOGMANAGER_VERSION . '.min.js', false, KWLOGMANAGER_VERSION, true );
     156            wp_enqueue_script( 'kwlogmanager-react-js', KWLOGMANAGER_URL . 'assets/js/react-framework.min.js', false, KWLOGMANAGER_VERSION, true );
     157
     158            wp_enqueue_script( 'kwlogmanager-js', KWLOGMANAGER_URL . 'assets/js/main.' . KWLOGMANAGER_VERSION . '.min.js', array( 'kwlogmanager-react-js' ), KWLOGMANAGER_VERSION, true );
    157159
    158160            // Localize variables.
    159161            wp_localize_script( 'kwlogmanager-js', 'KWLOGMANAGER', $localized );
    160 
    161162        }
    162163    }
  • kolorweb-log-manager/trunk/readme.txt

    r3137459 r3153225  
    55Tags: debug, wp_debug, error log, log, debug tool, debugger, debugging, error, development, display errors, error logging, free debugging, plugin testing, react, react plugin, search log, sort errors, sort log, test, testing, widget error, wordpress error log, wp error, wp error log, wp log viewer
    66Requires at least: 3.9
    7 Tested up to: 6.6.1
    8 Stable tag: 1.1.3
     7Tested up to: 6.6.2
     8Stable tag: 1.1.4
    99
    1010Really one click enable/disable debugging, clear debug.log, search, sort, and filter errors. See new errors automatically without refreshing.
     
    224224
    225225All notable changes will be tracked in this change log.
     226
     227= 1.1.4 =
     228
     229* Dependency Update
     230* Fix: Load React only if not loaded by other plugins. This fixes some loading issues with plugins that load React unconditionally such as Yoast SEO.
     231
     232= 1.1.3 =
     233
     234* Dependencies Update
     235
    226236= 1.1.2 =
    227237Release date: 2022-05-27
  • kolorweb-log-manager/trunk/vendor/autoload.php

    r2692326 r3153225  
    33// autoload.php @generated by Composer
    44
     5if (PHP_VERSION_ID < 50600) {
     6    if (!headers_sent()) {
     7        header('HTTP/1.1 500 Internal Server Error');
     8    }
     9    $err = 'Composer 2.3.0 dropped support for autoloading on PHP <5.6 and you are running '.PHP_VERSION.', please upgrade PHP or use Composer 2.2 LTS via "composer self-update --2.2". Aborting.'.PHP_EOL;
     10    if (!ini_get('display_errors')) {
     11        if (PHP_SAPI === 'cli' || PHP_SAPI === 'phpdbg') {
     12            fwrite(STDERR, $err);
     13        } elseif (!headers_sent()) {
     14            echo $err;
     15        }
     16    }
     17    trigger_error(
     18        $err,
     19        E_USER_ERROR
     20    );
     21}
     22
    523require_once __DIR__ . '/composer/autoload_real.php';
    624
    7 return ComposerAutoloaderInit8b8a6de80977d49a318e9afdafdd8cf9::getLoader();
     25return ComposerAutoloaderInitf6fdf756dd7c3794f45d2b04c02df09d::getLoader();
  • kolorweb-log-manager/trunk/vendor/composer/ClassLoader.php

    r2692326 r3153225  
    4343class ClassLoader
    4444{
     45    /** @var \Closure(string):void */
     46    private static $includeFile;
     47
     48    /** @var string|null */
    4549    private $vendorDir;
    4650
    4751    // PSR-4
     52    /**
     53     * @var array<string, array<string, int>>
     54     */
    4855    private $prefixLengthsPsr4 = array();
     56    /**
     57     * @var array<string, list<string>>
     58     */
    4959    private $prefixDirsPsr4 = array();
     60    /**
     61     * @var list<string>
     62     */
    5063    private $fallbackDirsPsr4 = array();
    5164
    5265    // PSR-0
     66    /**
     67     * List of PSR-0 prefixes
     68     *
     69     * Structured as array('F (first letter)' => array('Foo\Bar (full prefix)' => array('path', 'path2')))
     70     *
     71     * @var array<string, array<string, list<string>>>
     72     */
    5373    private $prefixesPsr0 = array();
     74    /**
     75     * @var list<string>
     76     */
    5477    private $fallbackDirsPsr0 = array();
    5578
     79    /** @var bool */
    5680    private $useIncludePath = false;
     81
     82    /**
     83     * @var array<string, string>
     84     */
    5785    private $classMap = array();
     86
     87    /** @var bool */
    5888    private $classMapAuthoritative = false;
     89
     90    /**
     91     * @var array<string, bool>
     92     */
    5993    private $missingClasses = array();
     94
     95    /** @var string|null */
    6096    private $apcuPrefix;
    6197
     98    /**
     99     * @var array<string, self>
     100     */
    62101    private static $registeredLoaders = array();
    63102
     103    /**
     104     * @param string|null $vendorDir
     105     */
    64106    public function __construct($vendorDir = null)
    65107    {
    66108        $this->vendorDir = $vendorDir;
    67     }
    68 
     109        self::initializeIncludeClosure();
     110    }
     111
     112    /**
     113     * @return array<string, list<string>>
     114     */
    69115    public function getPrefixes()
    70116    {
     
    76122    }
    77123
     124    /**
     125     * @return array<string, list<string>>
     126     */
    78127    public function getPrefixesPsr4()
    79128    {
     
    81130    }
    82131
     132    /**
     133     * @return list<string>
     134     */
    83135    public function getFallbackDirs()
    84136    {
     
    86138    }
    87139
     140    /**
     141     * @return list<string>
     142     */
    88143    public function getFallbackDirsPsr4()
    89144    {
     
    91146    }
    92147
     148    /**
     149     * @return array<string, string> Array of classname => path
     150     */
    93151    public function getClassMap()
    94152    {
     
    97155
    98156    /**
    99      * @param array $classMap Class to filename map
     157     * @param array<string, string> $classMap Class to filename map
     158     *
     159     * @return void
    100160     */
    101161    public function addClassMap(array $classMap)
     
    112172     * appending or prepending to the ones previously set for this prefix.
    113173     *
    114      * @param string       $prefix  The prefix
    115      * @param array|string $paths   The PSR-0 root directories
    116      * @param bool         $prepend Whether to prepend the directories
     174     * @param string              $prefix  The prefix
     175     * @param list<string>|string $paths   The PSR-0 root directories
     176     * @param bool                $prepend Whether to prepend the directories
     177     *
     178     * @return void
    117179     */
    118180    public function add($prefix, $paths, $prepend = false)
    119181    {
     182        $paths = (array) $paths;
    120183        if (!$prefix) {
    121184            if ($prepend) {
    122185                $this->fallbackDirsPsr0 = array_merge(
    123                     (array) $paths,
     186                    $paths,
    124187                    $this->fallbackDirsPsr0
    125188                );
     
    127190                $this->fallbackDirsPsr0 = array_merge(
    128191                    $this->fallbackDirsPsr0,
    129                     (array) $paths
     192                    $paths
    130193                );
    131194            }
     
    136199        $first = $prefix[0];
    137200        if (!isset($this->prefixesPsr0[$first][$prefix])) {
    138             $this->prefixesPsr0[$first][$prefix] = (array) $paths;
     201            $this->prefixesPsr0[$first][$prefix] = $paths;
    139202
    140203            return;
     
    142205        if ($prepend) {
    143206            $this->prefixesPsr0[$first][$prefix] = array_merge(
    144                 (array) $paths,
     207                $paths,
    145208                $this->prefixesPsr0[$first][$prefix]
    146209            );
     
    148211            $this->prefixesPsr0[$first][$prefix] = array_merge(
    149212                $this->prefixesPsr0[$first][$prefix],
    150                 (array) $paths
     213                $paths
    151214            );
    152215        }
     
    157220     * appending or prepending to the ones previously set for this namespace.
    158221     *
    159      * @param string       $prefix  The prefix/namespace, with trailing '\\'
    160      * @param array|string $paths   The PSR-4 base directories
    161      * @param bool         $prepend Whether to prepend the directories
     222     * @param string              $prefix  The prefix/namespace, with trailing '\\'
     223     * @param list<string>|string $paths   The PSR-4 base directories
     224     * @param bool                $prepend Whether to prepend the directories
    162225     *
    163226     * @throws \InvalidArgumentException
     227     *
     228     * @return void
    164229     */
    165230    public function addPsr4($prefix, $paths, $prepend = false)
    166231    {
     232        $paths = (array) $paths;
    167233        if (!$prefix) {
    168234            // Register directories for the root namespace.
    169235            if ($prepend) {
    170236                $this->fallbackDirsPsr4 = array_merge(
    171                     (array) $paths,
     237                    $paths,
    172238                    $this->fallbackDirsPsr4
    173239                );
     
    175241                $this->fallbackDirsPsr4 = array_merge(
    176242                    $this->fallbackDirsPsr4,
    177                     (array) $paths
     243                    $paths
    178244                );
    179245            }
     
    185251            }
    186252            $this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
    187             $this->prefixDirsPsr4[$prefix] = (array) $paths;
     253            $this->prefixDirsPsr4[$prefix] = $paths;
    188254        } elseif ($prepend) {
    189255            // Prepend directories for an already registered namespace.
    190256            $this->prefixDirsPsr4[$prefix] = array_merge(
    191                 (array) $paths,
     257                $paths,
    192258                $this->prefixDirsPsr4[$prefix]
    193259            );
     
    196262            $this->prefixDirsPsr4[$prefix] = array_merge(
    197263                $this->prefixDirsPsr4[$prefix],
    198                 (array) $paths
     264                $paths
    199265            );
    200266        }
     
    205271     * replacing any others previously set for this prefix.
    206272     *
    207      * @param string       $prefix The prefix
    208      * @param array|string $paths  The PSR-0 base directories
     273     * @param string              $prefix The prefix
     274     * @param list<string>|string $paths  The PSR-0 base directories
     275     *
     276     * @return void
    209277     */
    210278    public function set($prefix, $paths)
     
    221289     * replacing any others previously set for this namespace.
    222290     *
    223      * @param string       $prefix The prefix/namespace, with trailing '\\'
    224      * @param array|string $paths  The PSR-4 base directories
     291     * @param string              $prefix The prefix/namespace, with trailing '\\'
     292     * @param list<string>|string $paths  The PSR-4 base directories
    225293     *
    226294     * @throws \InvalidArgumentException
     295     *
     296     * @return void
    227297     */
    228298    public function setPsr4($prefix, $paths)
     
    244314     *
    245315     * @param bool $useIncludePath
     316     *
     317     * @return void
    246318     */
    247319    public function setUseIncludePath($useIncludePath)
     
    266338     *
    267339     * @param bool $classMapAuthoritative
     340     *
     341     * @return void
    268342     */
    269343    public function setClassMapAuthoritative($classMapAuthoritative)
     
    286360     *
    287361     * @param string|null $apcuPrefix
     362     *
     363     * @return void
    288364     */
    289365    public function setApcuPrefix($apcuPrefix)
     
    306382     *
    307383     * @param bool $prepend Whether to prepend the autoloader or not
     384     *
     385     * @return void
    308386     */
    309387    public function register($prepend = false)
     
    325403    /**
    326404     * Unregisters this instance as an autoloader.
     405     *
     406     * @return void
    327407     */
    328408    public function unregister()
     
    344424    {
    345425        if ($file = $this->findFile($class)) {
    346             includeFile($file);
     426            $includeFile = self::$includeFile;
     427            $includeFile($file);
    347428
    348429            return true;
     
    395476
    396477    /**
    397      * Returns the currently registered loaders indexed by their corresponding vendor directories.
    398      *
    399      * @return self[]
     478     * Returns the currently registered loaders keyed by their corresponding vendor directories.
     479     *
     480     * @return array<string, self>
    400481     */
    401482    public static function getRegisteredLoaders()
     
    404485    }
    405486
     487    /**
     488     * @param  string       $class
     489     * @param  string       $ext
     490     * @return string|false
     491     */
    406492    private function findFileWithExtension($class, $ext)
    407493    {
     
    469555        return false;
    470556    }
     557
     558    /**
     559     * @return void
     560     */
     561    private static function initializeIncludeClosure()
     562    {
     563        if (self::$includeFile !== null) {
     564            return;
     565        }
     566
     567        /**
     568         * Scope isolated include.
     569         *
     570         * Prevents access to $this/self from included files.
     571         *
     572         * @param  string $file
     573         * @return void
     574         */
     575        self::$includeFile = \Closure::bind(static function($file) {
     576            include $file;
     577        }, null, null);
     578    }
    471579}
    472 
    473 /**
    474  * Scope isolated include.
    475  *
    476  * Prevents access to $this/self from included files.
    477  */
    478 function includeFile($file)
    479 {
    480     include $file;
    481 }
  • kolorweb-log-manager/trunk/vendor/composer/InstalledVersions.php

    r2732944 r3153225  
    2121 * See also https://getcomposer.org/doc/07-runtime.md#installed-versions
    2222 *
    23  * To require it's presence, you can require `composer-runtime-api ^2.0`
     23 * To require its presence, you can require `composer-runtime-api ^2.0`
     24 *
     25 * @final
    2426 */
    2527class InstalledVersions
    2628{
     29    /**
     30     * @var mixed[]|null
     31     * @psalm-var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}|array{}|null
     32     */
    2733    private static $installed;
     34
     35    /**
     36     * @var bool|null
     37     */
    2838    private static $canGetVendors;
     39
     40    /**
     41     * @var array[]
     42     * @psalm-var array<string, array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
     43     */
    2944    private static $installedByVendor = array();
    3045
     
    8499        foreach (self::getInstalled() as $installed) {
    85100            if (isset($installed['versions'][$packageName])) {
    86                 return $includeDevRequirements || empty($installed['versions'][$packageName]['dev_requirement']);
     101                return $includeDevRequirements || !isset($installed['versions'][$packageName]['dev_requirement']) || $installed['versions'][$packageName]['dev_requirement'] === false;
    87102            }
    88103        }
     
    105120    public static function satisfies(VersionParser $parser, $packageName, $constraint)
    106121    {
    107         $constraint = $parser->parseConstraints($constraint);
     122        $constraint = $parser->parseConstraints((string) $constraint);
    108123        $provided = $parser->parseConstraints(self::getVersionRanges($packageName));
    109124
     
    229244    /**
    230245     * @return array
    231      * @psalm-return array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}
     246     * @psalm-return array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}
    232247     */
    233248    public static function getRootPackage()
     
    243258     * @deprecated Use getAllRawData() instead which returns all datasets for all autoloaders present in the process. getRawData only returns the first dataset loaded, which may not be what you expect.
    244259     * @return array[]
    245      * @psalm-return array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}
     260     * @psalm-return array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}
    246261     */
    247262    public static function getRawData()
     
    266281     *
    267282     * @return array[]
    268      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}>
     283     * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
    269284     */
    270285    public static function getAllRawData()
     
    289304     * @return void
    290305     *
    291      * @psalm-param array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>} $data
     306     * @psalm-param array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $data
    292307     */
    293308    public static function reload($data)
     
    299314    /**
    300315     * @return array[]
    301      * @psalm-return list<array{root: array{name: string, version: string, reference: string, pretty_version: string, aliases: string[], dev: bool, install_path: string}, versions: array<string, array{dev_requirement: bool, pretty_version?: string, version?: string, aliases?: string[], reference?: string, replaced?: string[], provided?: string[], install_path?: string}>}>
     316     * @psalm-return list<array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>}>
    302317     */
    303318    private static function getInstalled()
     
    314329                    $installed[] = self::$installedByVendor[$vendorDir];
    315330                } elseif (is_file($vendorDir.'/composer/installed.php')) {
    316                     $installed[] = self::$installedByVendor[$vendorDir] = require $vendorDir.'/composer/installed.php';
     331                    /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     332                    $required = require $vendorDir.'/composer/installed.php';
     333                    $installed[] = self::$installedByVendor[$vendorDir] = $required;
    317334                    if (null === self::$installed && strtr($vendorDir.'/composer', '\\', '/') === strtr(__DIR__, '\\', '/')) {
    318335                        self::$installed = $installed[count($installed) - 1];
     
    326343            // and not from its source location in the composer/composer package, see https://github.com/composer/composer/issues/9937
    327344            if (substr(__DIR__, -8, 1) !== 'C') {
    328                 self::$installed = require __DIR__ . '/installed.php';
     345                /** @var array{root: array{name: string, pretty_version: string, version: string, reference: string|null, type: string, install_path: string, aliases: string[], dev: bool}, versions: array<string, array{pretty_version?: string, version?: string, reference?: string|null, type?: string, install_path?: string, aliases?: string[], dev_requirement: bool, replaced?: string[], provided?: string[]}>} $required */
     346                $required = require __DIR__ . '/installed.php';
     347                self::$installed = $required;
    329348            } else {
    330349                self::$installed = array();
    331350            }
    332351        }
    333         $installed[] = self::$installed;
     352
     353        if (self::$installed !== array()) {
     354            $installed[] = self::$installed;
     355        }
    334356
    335357        return $installed;
  • kolorweb-log-manager/trunk/vendor/composer/autoload_classmap.php

    r2733580 r3153225  
    33// autoload_classmap.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • kolorweb-log-manager/trunk/vendor/composer/autoload_files.php

    r2732944 r3153225  
    33// autoload_files.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • kolorweb-log-manager/trunk/vendor/composer/autoload_namespaces.php

    r2732944 r3153225  
    33// autoload_namespaces.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • kolorweb-log-manager/trunk/vendor/composer/autoload_psr4.php

    r2732944 r3153225  
    33// autoload_psr4.php @generated by Composer
    44
    5 $vendorDir = dirname(dirname(__FILE__));
     5$vendorDir = dirname(__DIR__);
    66$baseDir = dirname($vendorDir);
    77
  • kolorweb-log-manager/trunk/vendor/composer/autoload_real.php

    r2692326 r3153225  
    33// autoload_real.php @generated by Composer
    44
    5 class ComposerAutoloaderInit8b8a6de80977d49a318e9afdafdd8cf9
     5class ComposerAutoloaderInitf6fdf756dd7c3794f45d2b04c02df09d
    66{
    77    private static $loader;
     
    2525        require __DIR__ . '/platform_check.php';
    2626
    27         spl_autoload_register(array('ComposerAutoloaderInit8b8a6de80977d49a318e9afdafdd8cf9', 'loadClassLoader'), true, true);
    28         self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(\dirname(__FILE__)));
    29         spl_autoload_unregister(array('ComposerAutoloaderInit8b8a6de80977d49a318e9afdafdd8cf9', 'loadClassLoader'));
     27        spl_autoload_register(array('ComposerAutoloaderInitf6fdf756dd7c3794f45d2b04c02df09d', 'loadClassLoader'), true, true);
     28        self::$loader = $loader = new \Composer\Autoload\ClassLoader(\dirname(__DIR__));
     29        spl_autoload_unregister(array('ComposerAutoloaderInitf6fdf756dd7c3794f45d2b04c02df09d', 'loadClassLoader'));
    3030
    31         $useStaticLoader = PHP_VERSION_ID >= 50600 && !defined('HHVM_VERSION') && (!function_exists('zend_loader_file_encoded') || !zend_loader_file_encoded());
    32         if ($useStaticLoader) {
    33             require __DIR__ . '/autoload_static.php';
    34 
    35             call_user_func(\Composer\Autoload\ComposerStaticInit8b8a6de80977d49a318e9afdafdd8cf9::getInitializer($loader));
    36         } else {
    37             $map = require __DIR__ . '/autoload_namespaces.php';
    38             foreach ($map as $namespace => $path) {
    39                 $loader->set($namespace, $path);
    40             }
    41 
    42             $map = require __DIR__ . '/autoload_psr4.php';
    43             foreach ($map as $namespace => $path) {
    44                 $loader->setPsr4($namespace, $path);
    45             }
    46 
    47             $classMap = require __DIR__ . '/autoload_classmap.php';
    48             if ($classMap) {
    49                 $loader->addClassMap($classMap);
    50             }
    51         }
     31        require __DIR__ . '/autoload_static.php';
     32        call_user_func(\Composer\Autoload\ComposerStaticInitf6fdf756dd7c3794f45d2b04c02df09d::getInitializer($loader));
    5233
    5334        $loader->register(true);
    5435
    55         if ($useStaticLoader) {
    56             $includeFiles = Composer\Autoload\ComposerStaticInit8b8a6de80977d49a318e9afdafdd8cf9::$files;
    57         } else {
    58             $includeFiles = require __DIR__ . '/autoload_files.php';
    59         }
    60         foreach ($includeFiles as $fileIdentifier => $file) {
    61             composerRequire8b8a6de80977d49a318e9afdafdd8cf9($fileIdentifier, $file);
     36        $filesToLoad = \Composer\Autoload\ComposerStaticInitf6fdf756dd7c3794f45d2b04c02df09d::$files;
     37        $requireFile = \Closure::bind(static function ($fileIdentifier, $file) {
     38            if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
     39                $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
     40
     41                require $file;
     42            }
     43        }, null, null);
     44        foreach ($filesToLoad as $fileIdentifier => $file) {
     45            $requireFile($fileIdentifier, $file);
    6246        }
    6347
     
    6549    }
    6650}
    67 
    68 function composerRequire8b8a6de80977d49a318e9afdafdd8cf9($fileIdentifier, $file)
    69 {
    70     if (empty($GLOBALS['__composer_autoload_files'][$fileIdentifier])) {
    71         require $file;
    72 
    73         $GLOBALS['__composer_autoload_files'][$fileIdentifier] = true;
    74     }
    75 }
  • kolorweb-log-manager/trunk/vendor/composer/autoload_static.php

    r2733580 r3153225  
    55namespace Composer\Autoload;
    66
    7 class ComposerStaticInit8b8a6de80977d49a318e9afdafdd8cf9
     7class ComposerStaticInitf6fdf756dd7c3794f45d2b04c02df09d
    88{
    99    public static $files = array (
     
    609609    {
    610610        return \Closure::bind(function () use ($loader) {
    611             $loader->prefixLengthsPsr4 = ComposerStaticInit8b8a6de80977d49a318e9afdafdd8cf9::$prefixLengthsPsr4;
    612             $loader->prefixDirsPsr4 = ComposerStaticInit8b8a6de80977d49a318e9afdafdd8cf9::$prefixDirsPsr4;
    613             $loader->prefixesPsr0 = ComposerStaticInit8b8a6de80977d49a318e9afdafdd8cf9::$prefixesPsr0;
    614             $loader->classMap = ComposerStaticInit8b8a6de80977d49a318e9afdafdd8cf9::$classMap;
     611            $loader->prefixLengthsPsr4 = ComposerStaticInitf6fdf756dd7c3794f45d2b04c02df09d::$prefixLengthsPsr4;
     612            $loader->prefixDirsPsr4 = ComposerStaticInitf6fdf756dd7c3794f45d2b04c02df09d::$prefixDirsPsr4;
     613            $loader->prefixesPsr0 = ComposerStaticInitf6fdf756dd7c3794f45d2b04c02df09d::$prefixesPsr0;
     614            $loader->classMap = ComposerStaticInitf6fdf756dd7c3794f45d2b04c02df09d::$classMap;
    615615
    616616        }, null, ClassLoader::class);
  • kolorweb-log-manager/trunk/vendor/composer/installed.json

    r2732944 r3153225  
    33        {
    44            "name": "doctrine/instantiator",
    5             "version": "1.4.1",
    6             "version_normalized": "1.4.1.0",
     5            "version": "1.5.0",
     6            "version_normalized": "1.5.0.0",
    77            "source": {
    88                "type": "git",
    99                "url": "https://github.com/doctrine/instantiator.git",
    10                 "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc"
    11             },
    12             "dist": {
    13                 "type": "zip",
    14                 "url": "https://api.github.com/repos/doctrine/instantiator/zipball/10dcfce151b967d20fde1b34ae6640712c3891bc",
    15                 "reference": "10dcfce151b967d20fde1b34ae6640712c3891bc",
     10                "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b"
     11            },
     12            "dist": {
     13                "type": "zip",
     14                "url": "https://api.github.com/repos/doctrine/instantiator/zipball/0a0fa9780f5d4e507415a065172d26a98d02047b",
     15                "reference": "0a0fa9780f5d4e507415a065172d26a98d02047b",
    1616                "shasum": ""
    1717            },
     
    2020            },
    2121            "require-dev": {
    22                 "doctrine/coding-standard": "^9",
     22                "doctrine/coding-standard": "^9 || ^11",
    2323                "ext-pdo": "*",
    2424                "ext-phar": "*",
     
    2727                "phpstan/phpstan-phpunit": "^1",
    2828                "phpunit/phpunit": "^7.5 || ^8.5 || ^9.5",
    29                 "vimeo/psalm": "^4.22"
    30             },
    31             "time": "2022-03-03T08:28:38+00:00",
     29                "vimeo/psalm": "^4.30 || ^5.4"
     30            },
     31            "time": "2022-12-30T00:15:36+00:00",
    3232            "type": "library",
    3333            "installation-source": "dist",
     
    5656            "support": {
    5757                "issues": "https://github.com/doctrine/instantiator/issues",
    58                 "source": "https://github.com/doctrine/instantiator/tree/1.4.1"
     58                "source": "https://github.com/doctrine/instantiator/tree/1.5.0"
    5959            },
    6060            "funding": [
     
    160160                {
    161161                    "name": "Chris Boulton",
    162                     "homepage": "http://github.com/chrisboulton",
    163                     "role": "Original developer"
     162                    "homepage": "http://github.com/chrisboulton"
    164163                }
    165164            ],
    166165            "description": "A comprehensive library for generating differences between two hashable objects (strings or arrays).",
     166            "support": {
     167                "source": "https://github.com/phpspec/php-diff/tree/v1.0.2"
     168            },
    167169            "install-path": "../phpspec/php-diff"
    168170        },
     
    246248                "tests"
    247249            ],
     250            "support": {
     251                "issues": "https://github.com/phpspec/phpspec/issues",
     252                "source": "https://github.com/phpspec/phpspec/tree/master"
     253            },
    248254            "install-path": "../phpspec/phpspec"
    249255        },
     
    760766                "source": "https://github.com/symfony/debug/tree/3.0"
    761767            },
     768            "abandoned": "symfony/error-handler",
    762769            "install-path": "../symfony/debug"
    763770        },
     
    885892        {
    886893            "name": "symfony/polyfill-ctype",
    887             "version": "v1.25.0",
    888             "version_normalized": "1.25.0.0",
     894            "version": "v1.31.0",
     895            "version_normalized": "1.31.0.0",
    889896            "source": {
    890897                "type": "git",
    891898                "url": "https://github.com/symfony/polyfill-ctype.git",
    892                 "reference": "30885182c981ab175d4d034db0f6f469898070ab"
    893             },
    894             "dist": {
    895                 "type": "zip",
    896                 "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/30885182c981ab175d4d034db0f6f469898070ab",
    897                 "reference": "30885182c981ab175d4d034db0f6f469898070ab",
    898                 "shasum": ""
    899             },
    900             "require": {
    901                 "php": ">=7.1"
     899                "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638"
     900            },
     901            "dist": {
     902                "type": "zip",
     903                "url": "https://api.github.com/repos/symfony/polyfill-ctype/zipball/a3cc8b044a6ea513310cbd48ef7333b384945638",
     904                "reference": "a3cc8b044a6ea513310cbd48ef7333b384945638",
     905                "shasum": ""
     906            },
     907            "require": {
     908                "php": ">=7.2"
    902909            },
    903910            "provide": {
     
    907914                "ext-ctype": "For best performance"
    908915            },
    909             "time": "2021-10-20T20:35:02+00:00",
    910             "type": "library",
    911             "extra": {
    912                 "branch-alias": {
    913                     "dev-main": "1.23-dev"
    914                 },
     916            "time": "2024-09-09T11:45:10+00:00",
     917            "type": "library",
     918            "extra": {
    915919                "thanks": {
    916920                    "name": "symfony/polyfill",
     
    950954            ],
    951955            "support": {
    952                 "source": "https://github.com/symfony/polyfill-ctype/tree/v1.25.0"
     956                "source": "https://github.com/symfony/polyfill-ctype/tree/v1.31.0"
    953957            },
    954958            "funding": [
     
    970974        {
    971975            "name": "symfony/polyfill-mbstring",
    972             "version": "v1.25.0",
    973             "version_normalized": "1.25.0.0",
     976            "version": "v1.31.0",
     977            "version_normalized": "1.31.0.0",
    974978            "source": {
    975979                "type": "git",
    976980                "url": "https://github.com/symfony/polyfill-mbstring.git",
    977                 "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825"
    978             },
    979             "dist": {
    980                 "type": "zip",
    981                 "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/0abb51d2f102e00a4eefcf46ba7fec406d245825",
    982                 "reference": "0abb51d2f102e00a4eefcf46ba7fec406d245825",
    983                 "shasum": ""
    984             },
    985             "require": {
    986                 "php": ">=7.1"
     981                "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341"
     982            },
     983            "dist": {
     984                "type": "zip",
     985                "url": "https://api.github.com/repos/symfony/polyfill-mbstring/zipball/85181ba99b2345b0ef10ce42ecac37612d9fd341",
     986                "reference": "85181ba99b2345b0ef10ce42ecac37612d9fd341",
     987                "shasum": ""
     988            },
     989            "require": {
     990                "php": ">=7.2"
    987991            },
    988992            "provide": {
     
    992996                "ext-mbstring": "For best performance"
    993997            },
    994             "time": "2021-11-30T18:21:41+00:00",
    995             "type": "library",
    996             "extra": {
    997                 "branch-alias": {
    998                     "dev-main": "1.23-dev"
    999                 },
     998            "time": "2024-09-09T11:45:10+00:00",
     999            "type": "library",
     1000            "extra": {
    10001001                "thanks": {
    10011002                    "name": "symfony/polyfill",
     
    10361037            ],
    10371038            "support": {
    1038                 "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.25.0"
     1039                "source": "https://github.com/symfony/polyfill-mbstring/tree/v1.31.0"
    10391040            },
    10401041            "funding": [
     
    11671168        {
    11681169            "name": "wp-cli/wp-config-transformer",
    1169             "version": "v1.3.0",
    1170             "version_normalized": "1.3.0.0",
     1170            "version": "v1.3.6",
     1171            "version_normalized": "1.3.6.0",
    11711172            "source": {
    11721173                "type": "git",
    11731174                "url": "https://github.com/wp-cli/wp-config-transformer.git",
    1174                 "reference": "2e90eefc6b8f5166f53aa5414fd8f1a572164ef1"
    1175             },
    1176             "dist": {
    1177                 "type": "zip",
    1178                 "url": "https://api.github.com/repos/wp-cli/wp-config-transformer/zipball/2e90eefc6b8f5166f53aa5414fd8f1a572164ef1",
    1179                 "reference": "2e90eefc6b8f5166f53aa5414fd8f1a572164ef1",
     1175                "reference": "88f516f44dce1660fc4b780da513e3ca12d7d24f"
     1176            },
     1177            "dist": {
     1178                "type": "zip",
     1179                "url": "https://api.github.com/repos/wp-cli/wp-config-transformer/zipball/88f516f44dce1660fc4b780da513e3ca12d7d24f",
     1180                "reference": "88f516f44dce1660fc4b780da513e3ca12d7d24f",
    11801181                "shasum": ""
    11811182            },
     
    11841185            },
    11851186            "require-dev": {
    1186                 "wp-cli/wp-cli-tests": "^3.1"
    1187             },
    1188             "time": "2022-01-10T18:37:52+00:00",
     1187                "wp-cli/wp-cli-tests": "^4.0"
     1188            },
     1189            "time": "2024-05-23T06:32:14+00:00",
    11891190            "type": "library",
    11901191            "installation-source": "dist",
     
    12081209            "support": {
    12091210                "issues": "https://github.com/wp-cli/wp-config-transformer/issues",
    1210                 "source": "https://github.com/wp-cli/wp-config-transformer/tree/v1.3.0"
     1211                "source": "https://github.com/wp-cli/wp-config-transformer/tree/v1.3.6"
    12111212            },
    12121213            "install-path": "../wp-cli/wp-config-transformer"
  • kolorweb-log-manager/trunk/vendor/composer/installed.php

    r2733580 r3153225  
    11<?php return array(
    22    'root' => array(
    3         'pretty_version' => 'dev-master',
    4         'version' => 'dev-master',
     3        'name' => '__root__',
     4        'pretty_version' => 'dev-main',
     5        'version' => 'dev-main',
     6        'reference' => 'f0464e4593ce2b49bf429a4c1384b003b25bbc04',
    57        'type' => 'library',
    68        'install_path' => __DIR__ . '/../../',
    79        'aliases' => array(),
    8         'reference' => 'b756d71d3e1310050657fadaabbf62889a1c7256',
    9         'name' => '__root__',
    1010        'dev' => true,
    1111    ),
    1212    'versions' => array(
    1313        '__root__' => array(
    14             'pretty_version' => 'dev-master',
    15             'version' => 'dev-master',
     14            'pretty_version' => 'dev-main',
     15            'version' => 'dev-main',
     16            'reference' => 'f0464e4593ce2b49bf429a4c1384b003b25bbc04',
    1617            'type' => 'library',
    1718            'install_path' => __DIR__ . '/../../',
    1819            'aliases' => array(),
    19             'reference' => 'b756d71d3e1310050657fadaabbf62889a1c7256',
    2020            'dev_requirement' => false,
    2121        ),
    2222        'doctrine/instantiator' => array(
    23             'pretty_version' => '1.4.1',
    24             'version' => '1.4.1.0',
     23            'pretty_version' => '1.5.0',
     24            'version' => '1.5.0.0',
     25            'reference' => '0a0fa9780f5d4e507415a065172d26a98d02047b',
    2526            'type' => 'library',
    2627            'install_path' => __DIR__ . '/../doctrine/instantiator',
    2728            'aliases' => array(),
    28             'reference' => '10dcfce151b967d20fde1b34ae6640712c3891bc',
    2929            'dev_requirement' => true,
    3030        ),
     
    3232            'pretty_version' => '2.0.5',
    3333            'version' => '2.0.5.0',
     34            'reference' => 'e6a969a640b00d8daa3c66518b0405fb41ae0c4b',
    3435            'type' => 'library',
    3536            'install_path' => __DIR__ . '/../phpdocumentor/reflection-docblock',
    3637            'aliases' => array(),
    37             'reference' => 'e6a969a640b00d8daa3c66518b0405fb41ae0c4b',
    3838            'dev_requirement' => true,
    3939        ),
     
    4141            'pretty_version' => 'v1.0.2',
    4242            'version' => '1.0.2.0',
     43            'reference' => '30e103d19519fe678ae64a60d77884ef3d71b28a',
    4344            'type' => 'library',
    4445            'install_path' => __DIR__ . '/../phpspec/php-diff',
    4546            'aliases' => array(),
    46             'reference' => '30e103d19519fe678ae64a60d77884ef3d71b28a',
    4747            'dev_requirement' => true,
    4848        ),
     
    5050            'pretty_version' => '2.2.0',
    5151            'version' => '2.2.0.0',
     52            'reference' => '9727d75919a00455433e867565bc022f0b985a39',
    5253            'type' => 'library',
    5354            'install_path' => __DIR__ . '/../phpspec/phpspec',
    5455            'aliases' => array(),
    55             'reference' => '9727d75919a00455433e867565bc022f0b985a39',
    5656            'dev_requirement' => true,
    5757        ),
     
    5959            'pretty_version' => 'v1.5.0',
    6060            'version' => '1.5.0.0',
     61            'reference' => '4745ded9307786b730d7a60df5cb5a6c43cf95f7',
    6162            'type' => 'library',
    6263            'install_path' => __DIR__ . '/../phpspec/prophecy',
    6364            'aliases' => array(),
    64             'reference' => '4745ded9307786b730d7a60df5cb5a6c43cf95f7',
    6565            'dev_requirement' => true,
    6666        ),
     
    6868            'pretty_version' => '1.1.4',
    6969            'version' => '1.1.4.0',
     70            'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11',
    7071            'type' => 'library',
    7172            'install_path' => __DIR__ . '/../psr/log',
    7273            'aliases' => array(),
    73             'reference' => 'd49695b909c3b7628b6289db5479a1c204601f11',
    7474            'dev_requirement' => true,
    7575        ),
     
    7777            'pretty_version' => '1.2.4',
    7878            'version' => '1.2.4.0',
     79            'reference' => '2b7424b55f5047b47ac6e5ccb20b2aea4011d9be',
    7980            'type' => 'library',
    8081            'install_path' => __DIR__ . '/../sebastian/comparator',
    8182            'aliases' => array(),
    82             'reference' => '2b7424b55f5047b47ac6e5ccb20b2aea4011d9be',
    8383            'dev_requirement' => true,
    8484        ),
     
    8686            'pretty_version' => '1.4.1',
    8787            'version' => '1.4.1.0',
     88            'reference' => '13edfd8706462032c2f52b4b862974dd46b71c9e',
    8889            'type' => 'library',
    8990            'install_path' => __DIR__ . '/../sebastian/diff',
    9091            'aliases' => array(),
    91             'reference' => '13edfd8706462032c2f52b4b862974dd46b71c9e',
    9292            'dev_requirement' => true,
    9393        ),
     
    9595            'pretty_version' => '1.2.2',
    9696            'version' => '1.2.2.0',
     97            'reference' => '42c4c2eec485ee3e159ec9884f95b431287edde4',
    9798            'type' => 'library',
    9899            'install_path' => __DIR__ . '/../sebastian/exporter',
    99100            'aliases' => array(),
    100             'reference' => '42c4c2eec485ee3e159ec9884f95b431287edde4',
    101101            'dev_requirement' => true,
    102102        ),
     
    104104            'pretty_version' => '1.0.5',
    105105            'version' => '1.0.5.0',
     106            'reference' => 'b19cc3298482a335a95f3016d2f8a6950f0fbcd7',
    106107            'type' => 'library',
    107108            'install_path' => __DIR__ . '/../sebastian/recursion-context',
    108109            'aliases' => array(),
    109             'reference' => 'b19cc3298482a335a95f3016d2f8a6950f0fbcd7',
    110110            'dev_requirement' => true,
    111111        ),
     
    113113            'pretty_version' => 'v2.8.52',
    114114            'version' => '2.8.52.0',
     115            'reference' => 'cbcf4b5e233af15cd2bbd50dee1ccc9b7927dc12',
    115116            'type' => 'library',
    116117            'install_path' => __DIR__ . '/../symfony/console',
    117118            'aliases' => array(),
    118             'reference' => 'cbcf4b5e233af15cd2bbd50dee1ccc9b7927dc12',
    119119            'dev_requirement' => true,
    120120        ),
     
    122122            'pretty_version' => 'v3.0.9',
    123123            'version' => '3.0.9.0',
     124            'reference' => '697c527acd9ea1b2d3efac34d9806bf255278b0a',
    124125            'type' => 'library',
    125126            'install_path' => __DIR__ . '/../symfony/debug',
    126127            'aliases' => array(),
    127             'reference' => '697c527acd9ea1b2d3efac34d9806bf255278b0a',
    128128            'dev_requirement' => true,
    129129        ),
     
    131131            'pretty_version' => 'v2.8.52',
    132132            'version' => '2.8.52.0',
     133            'reference' => 'a77e974a5fecb4398833b0709210e3d5e334ffb0',
    133134            'type' => 'library',
    134135            'install_path' => __DIR__ . '/../symfony/event-dispatcher',
    135136            'aliases' => array(),
    136             'reference' => 'a77e974a5fecb4398833b0709210e3d5e334ffb0',
    137137            'dev_requirement' => true,
    138138        ),
     
    140140            'pretty_version' => 'v2.8.52',
    141141            'version' => '2.8.52.0',
     142            'reference' => '1444eac52273e345d9b95129bf914639305a9ba4',
    142143            'type' => 'library',
    143144            'install_path' => __DIR__ . '/../symfony/finder',
    144145            'aliases' => array(),
    145             'reference' => '1444eac52273e345d9b95129bf914639305a9ba4',
    146146            'dev_requirement' => true,
    147147        ),
    148148        'symfony/polyfill-ctype' => array(
    149             'pretty_version' => 'v1.25.0',
    150             'version' => '1.25.0.0',
     149            'pretty_version' => 'v1.31.0',
     150            'version' => '1.31.0.0',
     151            'reference' => 'a3cc8b044a6ea513310cbd48ef7333b384945638',
    151152            'type' => 'library',
    152153            'install_path' => __DIR__ . '/../symfony/polyfill-ctype',
    153154            'aliases' => array(),
    154             'reference' => '30885182c981ab175d4d034db0f6f469898070ab',
    155155            'dev_requirement' => true,
    156156        ),
    157157        'symfony/polyfill-mbstring' => array(
    158             'pretty_version' => 'v1.25.0',
    159             'version' => '1.25.0.0',
     158            'pretty_version' => 'v1.31.0',
     159            'version' => '1.31.0.0',
     160            'reference' => '85181ba99b2345b0ef10ce42ecac37612d9fd341',
    160161            'type' => 'library',
    161162            'install_path' => __DIR__ . '/../symfony/polyfill-mbstring',
    162163            'aliases' => array(),
    163             'reference' => '0abb51d2f102e00a4eefcf46ba7fec406d245825',
    164164            'dev_requirement' => true,
    165165        ),
     
    167167            'pretty_version' => 'v2.8.52',
    168168            'version' => '2.8.52.0',
     169            'reference' => 'c3591a09c78639822b0b290d44edb69bf9f05dc8',
    169170            'type' => 'library',
    170171            'install_path' => __DIR__ . '/../symfony/process',
    171172            'aliases' => array(),
    172             'reference' => 'c3591a09c78639822b0b290d44edb69bf9f05dc8',
    173173            'dev_requirement' => true,
    174174        ),
     
    176176            'pretty_version' => 'v2.8.52',
    177177            'version' => '2.8.52.0',
     178            'reference' => '02c1859112aa779d9ab394ae4f3381911d84052b',
    178179            'type' => 'library',
    179180            'install_path' => __DIR__ . '/../symfony/yaml',
    180181            'aliases' => array(),
    181             'reference' => '02c1859112aa779d9ab394ae4f3381911d84052b',
    182182            'dev_requirement' => true,
    183183        ),
    184184        'wp-cli/wp-config-transformer' => array(
    185             'pretty_version' => 'v1.3.0',
    186             'version' => '1.3.0.0',
     185            'pretty_version' => 'v1.3.6',
     186            'version' => '1.3.6.0',
     187            'reference' => '88f516f44dce1660fc4b780da513e3ca12d7d24f',
    187188            'type' => 'library',
    188189            'install_path' => __DIR__ . '/../wp-cli/wp-config-transformer',
    189190            'aliases' => array(),
    190             'reference' => '2e90eefc6b8f5166f53aa5414fd8f1a572164ef1',
    191191            'dev_requirement' => false,
    192192        ),
  • kolorweb-log-manager/trunk/vendor/doctrine/instantiator/README.md

    r2732944 r3153225  
    1515
    1616```sh
    17 php composer.phar require "doctrine/instantiator:~1.0.3"
     17composer require doctrine/instantiator
    1818```
    1919
  • kolorweb-log-manager/trunk/vendor/doctrine/instantiator/composer.json

    r2732944 r3153225  
    2222        "ext-phar":                  "*",
    2323        "ext-pdo":                   "*",
    24         "doctrine/coding-standard":  "^9",
     24        "doctrine/coding-standard":  "^9 || ^11",
    2525        "phpbench/phpbench":         "^0.16 || ^1",
    2626        "phpstan/phpstan":           "^1.4",
    2727        "phpstan/phpstan-phpunit":   "^1",
    2828        "phpunit/phpunit":           "^7.5 || ^8.5 || ^9.5",
    29         "vimeo/psalm": "^4.22"
     29        "vimeo/psalm": "^4.30 || ^5.4"
    3030    },
    3131    "autoload": {
  • kolorweb-log-manager/trunk/vendor/doctrine/instantiator/psalm.xml

    r2733580 r3153225  
    22<psalm
    33    errorLevel="7"
    4     phpVersion="8.1"
     4    phpVersion="8.2"
    55    resolveFromConfigFile="true"
    66    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
  • kolorweb-log-manager/trunk/vendor/doctrine/instantiator/src/Doctrine/Instantiator/Instantiator.php

    r2732944 r3153225  
    2929     * the method {@see \Serializable::unserialize()} when dealing with classes implementing
    3030     * the {@see \Serializable} interface.
    31      */
    32     public const SERIALIZATION_FORMAT_USE_UNSERIALIZER   = 'C';
     31     *
     32     * @deprecated This constant will be private in 2.0
     33     */
     34    public const SERIALIZATION_FORMAT_USE_UNSERIALIZER = 'C';
     35
     36    /** @deprecated This constant will be private in 2.0 */
    3337    public const SERIALIZATION_FORMAT_AVOID_UNSERIALIZER = 'O';
    3438
     
    6165    {
    6266        if (isset(self::$cachedCloneables[$className])) {
    63             /**
    64              * @phpstan-var T
    65              */
     67            /** @phpstan-var T */
    6668            $cachedCloneable = self::$cachedCloneables[$className];
    6769
  • kolorweb-log-manager/trunk/vendor/phpspec/php-diff/lib/Diff/Renderer/Html/Array.php

    r2692326 r3153225  
    66 *
    77 * Copyright (c) 2009 Chris Boulton <chris.boulton@interspire.com>
    8  * 
     8 *
    99 * All rights reserved.
    10  * 
    11  * Redistribution and use in source and binary forms, with or without 
     10 *
     11 * Redistribution and use in source and binary forms, with or without
    1212 * modification, are permitted provided that the following conditions are met:
    1313 *
     
    1717 *    this list of conditions and the following disclaimer in the documentation
    1818 *    and/or other materials provided with the distribution.
    19  *  - Neither the name of the Chris Boulton nor the names of its contributors 
    20  *    may be used to endorse or promote products derived from this software 
     19 *  - Neither the name of the Chris Boulton nor the names of its contributors
     20 *    may be used to endorse or promote products derived from this software
    2121 *    without specific prior written permission.
    2222 *
    23  * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 
    24  * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 
    25  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 
    26  * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 
    27  * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 
    28  * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 
    29  * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 
    30  * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 
    31  * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 
    32  * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 
     23 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
     24 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
     25 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
     26 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
     27 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
     28 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
     29 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
     30 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
     31 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
     32 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
    3333 * POSSIBILITY OF SUCH DAMAGE.
    3434 *
     
    4141 */
    4242
    43 require_once dirname(__FILE__).'/../Abstract.php';
    44 
    45 class Diff_Renderer_Html_Array extends Diff_Renderer_Abstract
    46 {
     43require_once dirname( __FILE__ ) . '/../Abstract.php';
     44
     45class Diff_Renderer_Html_Array extends Diff_Renderer_Abstract {
     46
    4747    /**
    4848     * @var array Array of the default options that apply to this renderer.
    4949     */
    5050    protected $defaultOptions = array(
    51         'tabSize' => 4
     51        'tabSize' => 4,
    5252    );
    5353
     
    5959     * @return array An array of the generated chances, suitable for presentation in HTML.
    6060     */
    61     public function render()
    62     {
     61    public function render() {
    6362        // As we'll be modifying a & b to include our change markers,
    6463        // we need to get the contents and store them here. That way
     
    6968        $changes = array();
    7069        $opCodes = $this->diff->getGroupedOpcodes();
    71         foreach($opCodes as $group) {
    72             $blocks = array();
    73             $lastTag = null;
     70        foreach ( $opCodes as $group ) {
     71            $blocks    = array();
     72            $lastTag   = null;
    7473            $lastBlock = 0;
    75             foreach($group as $code) {
     74            foreach ( $group as $code ) {
    7675                list($tag, $i1, $i2, $j1, $j2) = $code;
    7776
    78                 if($tag == 'replace' && $i2 - $i1 == $j2 - $j1) {
    79                     for($i = 0; $i < ($i2 - $i1); ++$i) {
    80                         $fromLine = $a[$i1 + $i];
    81                         $toLine = $b[$j1 + $i];
    82 
    83                         list($start, $end) = $this->getChangeExtent($fromLine, $toLine);
    84                         if($start != 0 || $end != 0) {
    85                             $last = $end + strlen($fromLine);
    86                             $fromLine = substr_replace($fromLine, "\0", $start, 0);
    87                             $fromLine = substr_replace($fromLine, "\1", $last + 1, 0);
    88                             $last = $end + strlen($toLine);
    89                             $toLine = substr_replace($toLine, "\0", $start, 0);
    90                             $toLine = substr_replace($toLine, "\1", $last + 1, 0);
    91                             $a[$i1 + $i] = $fromLine;
    92                             $b[$j1 + $i] = $toLine;
     77                if ( $tag == 'replace' && $i2 - $i1 == $j2 - $j1 ) {
     78                    for ( $i = 0; $i < ( $i2 - $i1 ); ++$i ) {
     79                        $fromLine = $a[ $i1 + $i ];
     80                        $toLine   = $b[ $j1 + $i ];
     81
     82                        list($start, $end) = $this->getChangeExtent( $fromLine, $toLine );
     83                        if ( $start != 0 || $end != 0 ) {
     84                            $last          = $end + strlen( $fromLine );
     85                            $fromLine      = substr_replace( $fromLine, "\0", $start, 0 );
     86                            $fromLine      = substr_replace( $fromLine, "\1", $last + 1, 0 );
     87                            $last          = $end + strlen( $toLine );
     88                            $toLine        = substr_replace( $toLine, "\0", $start, 0 );
     89                            $toLine        = substr_replace( $toLine, "\1", $last + 1, 0 );
     90                            $a[ $i1 + $i ] = $fromLine;
     91                            $b[ $j1 + $i ] = $toLine;
    9392                        }
    9493                    }
    9594                }
    9695
    97                 if($tag != $lastTag) {
    98                     $blocks[] = array(
    99                         'tag' => $tag,
    100                         'base' => array(
     96                if ( $tag != $lastTag ) {
     97                    $blocks[]  = array(
     98                        'tag'     => $tag,
     99                        'base'    => array(
    101100                            'offset' => $i1,
    102                             'lines' => array()
     101                            'lines'  => array(),
    103102                        ),
    104103                        'changed' => array(
    105104                            'offset' => $j1,
    106                             'lines' => array()
    107                         )
     105                            'lines'  => array(),
     106                        ),
    108107                    );
    109                     $lastBlock = count($blocks)-1;
     108                    $lastBlock = count( $blocks ) - 1;
    110109                }
    111110
    112111                $lastTag = $tag;
    113112
    114                 if($tag == 'equal') {
    115                     $lines = array_slice($a, $i1, ($i2 - $i1));
    116                     $blocks[$lastBlock]['base']['lines'] += $this->formatLines($lines);
    117                     $lines = array_slice($b, $j1, ($j2 - $j1));
    118                     $blocks[$lastBlock]['changed']['lines'] +=  $this->formatLines($lines);
    119                 }
    120                 else {
    121                     if($tag == 'replace' || $tag == 'delete') {
    122                         $lines = array_slice($a, $i1, ($i2 - $i1));
    123                         $lines = $this->formatLines($lines);
    124                         $lines = str_replace(array("\0", "\1"), array('<del>', '</del>'), $lines);
    125                         $blocks[$lastBlock]['base']['lines'] += $lines;
     113                if ( $tag == 'equal' ) {
     114                    $lines                                     = array_slice( $a, $i1, ( $i2 - $i1 ) );
     115                    $blocks[ $lastBlock ]['base']['lines']    += $this->formatLines( $lines );
     116                    $lines                                     = array_slice( $b, $j1, ( $j2 - $j1 ) );
     117                    $blocks[ $lastBlock ]['changed']['lines'] += $this->formatLines( $lines );
     118                } else {
     119                    if ( $tag == 'replace' || $tag == 'delete' ) {
     120                        $lines                                  = array_slice( $a, $i1, ( $i2 - $i1 ) );
     121                        $lines                                  = $this->formatLines( $lines );
     122                        $lines                                  = str_replace( array( "\0", "\1" ), array( '<del>', '</del>' ), $lines );
     123                        $blocks[ $lastBlock ]['base']['lines'] += $lines;
    126124                    }
    127125
    128                     if($tag == 'replace' || $tag == 'insert') {
    129                         $lines = array_slice($b, $j1, ($j2 - $j1));
    130                         $lines =  $this->formatLines($lines);
    131                         $lines = str_replace(array("\0", "\1"), array('<ins>', '</ins>'), $lines);
    132                         $blocks[$lastBlock]['changed']['lines'] += $lines;
     126                    if ( $tag == 'replace' || $tag == 'insert' ) {
     127                        $lines                                     = array_slice( $b, $j1, ( $j2 - $j1 ) );
     128                        $lines                                     = $this->formatLines( $lines );
     129                        $lines                                     = str_replace( array( "\0", "\1" ), array( '<ins>', '</ins>' ), $lines );
     130                        $blocks[ $lastBlock ]['changed']['lines'] += $lines;
    133131                    }
    134132                }
     
    147145     * @return array Array containing the starting position (0 by default) and the ending position (-1 by default)
    148146     */
    149     private function getChangeExtent($fromLine, $toLine)
    150     {
     147    private function getChangeExtent( $fromLine, $toLine ) {
    151148        $start = 0;
    152         $limit = min(strlen($fromLine), strlen($toLine));
    153         while($start < $limit && $fromLine{$start} == $toLine{$start}) {
     149        $limit = min( strlen( $fromLine ), strlen( $toLine ) );
     150        while ( $start < $limit && $fromLine[ $start ] == $toLine[ $start ] ) {
    154151            ++$start;
    155152        }
    156         $end = -1;
     153        $end   = -1;
    157154        $limit = $limit - $start;
    158         while(-$end <= $limit && substr($fromLine, $end, 1) == substr($toLine, $end, 1)) {
     155        while ( -$end <= $limit && substr( $fromLine, $end, 1 ) == substr( $toLine, $end, 1 ) ) {
    159156            --$end;
    160157        }
    161158        return array(
    162159            $start,
    163             $end + 1
     160            $end + 1,
    164161        );
    165162    }
     
    173170     * @return array Array of the formatted lines.
    174171     */
    175     private function formatLines($lines)
    176     {
    177         $lines = array_map(array($this, 'ExpandTabs'), $lines);
    178         $lines = array_map(array($this, 'HtmlSafe'), $lines);
    179         foreach($lines as &$line) {
    180             $line = preg_replace_callback('# ( +)|^ #', __CLASS__."::fixSpaces", $line);
     172    private function formatLines( $lines ) {
     173        $lines = array_map( array( $this, 'ExpandTabs' ), $lines );
     174        $lines = array_map( array( $this, 'HtmlSafe' ), $lines );
     175        foreach ( $lines as &$line ) {
     176            $line = preg_replace_callback( '# ( +)|^ #', __CLASS__ . '::fixSpaces', $line );
    181177        }
    182178        return $lines;
     
    189185     * @return string The HTML representation of the string.
    190186     */
    191     public static function fixSpaces($matches)
    192     {
    193         $spaces = isset($matches[1]) ? $matches[1] : '';
    194         $count = strlen($spaces);
    195         if($count == 0) {
     187    public static function fixSpaces( $matches ) {
     188        $spaces = isset( $matches[1] ) ? $matches[1] : '';
     189        $count  = strlen( $spaces );
     190        if ( $count == 0 ) {
    196191            return '';
    197192        }
    198193
    199         $div = floor($count / 2);
     194        $div = floor( $count / 2 );
    200195        $mod = $count % 2;
    201         return str_repeat('&nbsp; ', $div).str_repeat('&nbsp;', $mod);
     196        return str_repeat( '&nbsp; ', $div ) . str_repeat( '&nbsp;', $mod );
    202197    }
    203198
     
    208203     * @return string The line with the tabs converted to spaces.
    209204     */
    210     private function expandTabs($line)
    211     {
    212         return str_replace("\t", str_repeat(' ', $this->options['tabSize']), $line);
     205    private function expandTabs( $line ) {
     206        return str_replace( "\t", str_repeat( ' ', $this->options['tabSize'] ), $line );
    213207    }
    214208
     
    219213     * @return string The string with the HTML characters replaced by entities.
    220214     */
    221     private function htmlSafe($string)
    222     {
    223         return htmlspecialchars($string, ENT_NOQUOTES, 'UTF-8');
     215    private function htmlSafe( $string ) {
     216        return htmlspecialchars( $string, ENT_NOQUOTES, 'UTF-8' );
    224217    }
    225218}
  • kolorweb-log-manager/trunk/vendor/symfony/polyfill-ctype/README.md

    r2733580 r3153225  
    55
    66More information can be found in the
    7 [main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md).
     7[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md).
    88
    99License
  • kolorweb-log-manager/trunk/vendor/symfony/polyfill-ctype/composer.json

    r2733580 r3153225  
    1717    ],
    1818    "require": {
    19         "php": ">=7.1"
     19        "php": ">=7.2"
    2020    },
    2121    "provide": {
     
    3131    "minimum-stability": "dev",
    3232    "extra": {
    33         "branch-alias": {
    34             "dev-main": "1.23-dev"
    35         },
    3633        "thanks": {
    3734            "name": "symfony/polyfill",
  • kolorweb-log-manager/trunk/vendor/symfony/polyfill-mbstring/Mbstring.php

    r2733580 r3153225  
    4949 * - mb_strwidth             - Return width of string
    5050 * - mb_substr_count         - Count the number of substring occurrences
     51 * - mb_ucfirst              - Make a string's first character uppercase
     52 * - mb_lcfirst              - Make a string's first character lowercase
     53 * - mb_trim                 - Strip whitespace (or other characters) from the beginning and end of a string
     54 * - mb_ltrim                - Strip whitespace (or other characters) from the beginning of a string
     55 * - mb_rtrim                - Strip whitespace (or other characters) from the end of a string
    5156 *
    5257 * Not implemented:
     
    7075    public const MB_CASE_FOLD = \PHP_INT_MAX;
    7176
    72     private const CASE_FOLD = [
     77    private const SIMPLE_CASE_FOLD = [
    7378        ['µ', 'ſ', "\xCD\x85", 'ς', "\xCF\x90", "\xCF\x91", "\xCF\x95", "\xCF\x96", "\xCF\xB0", "\xCF\xB1", "\xCF\xB5", "\xE1\xBA\x9B", "\xE1\xBE\xBE"],
    7479        ['μ', 's', 'ι',        'σ', 'β',        'θ',        'φ',        'π',        'κ',        'ρ',        'ε',        "\xE1\xB9\xA1", 'ι'],
     
    8186    public static function mb_convert_encoding($s, $toEncoding, $fromEncoding = null)
    8287    {
    83         if (\is_array($fromEncoding) || ($fromEncoding !== null && false !== strpos($fromEncoding, ','))) {
     88        if (\is_array($s)) {
     89            $r = [];
     90            foreach ($s as $str) {
     91                $r[] = self::mb_convert_encoding($str, $toEncoding, $fromEncoding);
     92            }
     93
     94            return $r;
     95        }
     96
     97        if (\is_array($fromEncoding) || (null !== $fromEncoding && false !== strpos($fromEncoding, ','))) {
    8498            $fromEncoding = self::mb_detect_encoding($s, $fromEncoding);
    8599        } else {
     
    103117            }
    104118            if ('UTF-8' !== $fromEncoding) {
    105                 $s = \iconv($fromEncoding, 'UTF-8//IGNORE', $s);
     119                $s = iconv($fromEncoding, 'UTF-8//IGNORE', $s);
    106120            }
    107121
     
    114128        }
    115129
    116         return \iconv($fromEncoding, $toEncoding.'//IGNORE', $s);
     130        return iconv($fromEncoding, $toEncoding.'//IGNORE', $s);
    117131    }
    118132
     
    131145    public static function mb_decode_mimeheader($s)
    132146    {
    133         return \iconv_mime_decode($s, 2, self::$internalEncoding);
     147        return iconv_mime_decode($s, 2, self::$internalEncoding);
    134148    }
    135149
     
    141155    public static function mb_decode_numericentity($s, $convmap, $encoding = null)
    142156    {
    143         if (null !== $s && !is_scalar($s) && !(\is_object($s) && method_exists($s, '__toString'))) {
     157        if (null !== $s && !\is_scalar($s) && !(\is_object($s) && method_exists($s, '__toString'))) {
    144158            trigger_error('mb_decode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', \E_USER_WARNING);
    145159
     
    151165        }
    152166
    153         if (null !== $encoding && !is_scalar($encoding)) {
     167        if (null !== $encoding && !\is_scalar($encoding)) {
    154168            trigger_error('mb_decode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', \E_USER_WARNING);
    155169
     
    167181            $encoding = null;
    168182            if (!preg_match('//u', $s)) {
    169                 $s = @\iconv('UTF-8', 'UTF-8//IGNORE', $s);
    170             }
    171         } else {
    172             $s = \iconv($encoding, 'UTF-8//IGNORE', $s);
     183                $s = @iconv('UTF-8', 'UTF-8//IGNORE', $s);
     184            }
     185        } else {
     186            $s = iconv($encoding, 'UTF-8//IGNORE', $s);
    173187        }
    174188
     
    196210        }
    197211
    198         return \iconv('UTF-8', $encoding.'//IGNORE', $s);
     212        return iconv('UTF-8', $encoding.'//IGNORE', $s);
    199213    }
    200214
    201215    public static function mb_encode_numericentity($s, $convmap, $encoding = null, $is_hex = false)
    202216    {
    203         if (null !== $s && !is_scalar($s) && !(\is_object($s) && method_exists($s, '__toString'))) {
     217        if (null !== $s && !\is_scalar($s) && !(\is_object($s) && method_exists($s, '__toString'))) {
    204218            trigger_error('mb_encode_numericentity() expects parameter 1 to be string, '.\gettype($s).' given', \E_USER_WARNING);
    205219
     
    211225        }
    212226
    213         if (null !== $encoding && !is_scalar($encoding)) {
     227        if (null !== $encoding && !\is_scalar($encoding)) {
    214228            trigger_error('mb_encode_numericentity() expects parameter 3 to be string, '.\gettype($s).' given', \E_USER_WARNING);
    215229
     
    217231        }
    218232
    219         if (null !== $is_hex && !is_scalar($is_hex)) {
     233        if (null !== $is_hex && !\is_scalar($is_hex)) {
    220234            trigger_error('mb_encode_numericentity() expects parameter 4 to be boolean, '.\gettype($s).' given', \E_USER_WARNING);
    221235
     
    233247            $encoding = null;
    234248            if (!preg_match('//u', $s)) {
    235                 $s = @\iconv('UTF-8', 'UTF-8//IGNORE', $s);
    236             }
    237         } else {
    238             $s = \iconv($encoding, 'UTF-8//IGNORE', $s);
     249                $s = @iconv('UTF-8', 'UTF-8//IGNORE', $s);
     250            }
     251        } else {
     252            $s = iconv($encoding, 'UTF-8//IGNORE', $s);
    239253        }
    240254
     
    266280        }
    267281
    268         return \iconv('UTF-8', $encoding.'//IGNORE', $result);
     282        return iconv('UTF-8', $encoding.'//IGNORE', $result);
    269283    }
    270284
     
    281295            $encoding = null;
    282296            if (!preg_match('//u', $s)) {
    283                 $s = @\iconv('UTF-8', 'UTF-8//IGNORE', $s);
    284             }
    285         } else {
    286             $s = \iconv($encoding, 'UTF-8//IGNORE', $s);
     297                $s = @iconv('UTF-8', 'UTF-8//IGNORE', $s);
     298            }
     299        } else {
     300            $s = iconv($encoding, 'UTF-8//IGNORE', $s);
    287301        }
    288302
     
    302316            } else {
    303317                if (self::MB_CASE_FOLD === $mode) {
    304                     $s = str_replace(self::CASE_FOLD[0], self::CASE_FOLD[1], $s);
     318                    static $caseFolding = null;
     319                    if (null === $caseFolding) {
     320                        $caseFolding = self::getData('caseFolding');
     321                    }
     322                    $s = strtr($s, $caseFolding);
    305323                }
    306324
     
    344362        }
    345363
    346         return \iconv('UTF-8', $encoding.'//IGNORE', $s);
     364        return iconv('UTF-8', $encoding.'//IGNORE', $s);
    347365    }
    348366
     
    355373        $normalizedEncoding = self::getEncoding($encoding);
    356374
    357         if ('UTF-8' === $normalizedEncoding || false !== @\iconv($normalizedEncoding, $normalizedEncoding, ' ')) {
     375        if ('UTF-8' === $normalizedEncoding || false !== @iconv($normalizedEncoding, $normalizedEncoding, ' ')) {
    358376            self::$internalEncoding = $normalizedEncoding;
    359377
     
    414432        }
    415433
    416         return self::mb_detect_encoding($var, [$encoding]) || false !== @\iconv($encoding, $encoding, $var);
     434        if (!\is_array($var)) {
     435            return self::mb_detect_encoding($var, [$encoding]) || false !== @iconv($encoding, $encoding, $var);
     436        }
     437
     438        foreach ($var as $key => $value) {
     439            if (!self::mb_check_encoding($key, $encoding)) {
     440                return false;
     441            }
     442            if (!self::mb_check_encoding($value, $encoding)) {
     443                return false;
     444            }
     445        }
     446
     447        return true;
    417448    }
    418449
     
    489520        }
    490521
    491         return @\iconv_strlen($s, $encoding);
     522        return @iconv_strlen($s, $encoding);
    492523    }
    493524
     
    510541        }
    511542
    512         return \iconv_strpos($haystack, $needle, $offset, $encoding);
     543        return iconv_strpos($haystack, $needle, $offset, $encoding);
    513544    }
    514545
     
    534565
    535566        $pos = '' !== $needle || 80000 > \PHP_VERSION_ID
    536             ? \iconv_strrpos($haystack, $needle, $encoding)
     567            ? iconv_strrpos($haystack, $needle, $encoding)
    537568            : self::mb_strlen($haystack, $encoding);
    538569
     
    542573    public static function mb_str_split($string, $split_length = 1, $encoding = null)
    543574    {
    544         if (null !== $string && !is_scalar($string) && !(\is_object($string) && method_exists($string, '__toString'))) {
     575        if (null !== $string && !\is_scalar($string) && !(\is_object($string) && method_exists($string, '__toString'))) {
    545576            trigger_error('mb_str_split() expects parameter 1 to be string, '.\gettype($string).' given', \E_USER_WARNING);
    546577
     
    551582            if (80000 > \PHP_VERSION_ID) {
    552583                trigger_error('The length of each segment must be greater than zero', \E_USER_WARNING);
     584
    553585                return false;
    554586            }
     
    569601            $rx .= '.{'.$split_length.'})/us';
    570602
    571             return preg_split($rx, $string, null, \PREG_SPLIT_DELIM_CAPTURE | \PREG_SPLIT_NO_EMPTY);
     603            return preg_split($rx, $string, -1, \PREG_SPLIT_DELIM_CAPTURE | \PREG_SPLIT_NO_EMPTY);
    572604        }
    573605
     
    618650
    619651        if ($start < 0) {
    620             $start = \iconv_strlen($s, $encoding) + $start;
     652            $start = iconv_strlen($s, $encoding) + $start;
    621653            if ($start < 0) {
    622654                $start = 0;
     
    627659            $length = 2147483647;
    628660        } elseif ($length < 0) {
    629             $length = \iconv_strlen($s, $encoding) + $length - $start;
     661            $length = iconv_strlen($s, $encoding) + $length - $start;
    630662            if ($length < 0) {
    631663                return '';
     
    633665        }
    634666
    635         return (string) \iconv_substr($s, $start, $length, $encoding);
     667        return (string) iconv_substr($s, $start, $length, $encoding);
    636668    }
    637669
    638670    public static function mb_stripos($haystack, $needle, $offset = 0, $encoding = null)
    639671    {
    640         $haystack = self::mb_convert_case($haystack, self::MB_CASE_FOLD, $encoding);
    641         $needle = self::mb_convert_case($needle, self::MB_CASE_FOLD, $encoding);
     672        [$haystack, $needle] = str_replace(self::SIMPLE_CASE_FOLD[0], self::SIMPLE_CASE_FOLD[1], [
     673            self::mb_convert_case($haystack, \MB_CASE_LOWER, $encoding),
     674            self::mb_convert_case($needle, \MB_CASE_LOWER, $encoding),
     675        ]);
    642676
    643677        return self::mb_strpos($haystack, $needle, $offset, $encoding);
     
    658692        } else {
    659693            $needle = self::mb_substr($needle, 0, 1, $encoding);
    660             $pos = \iconv_strrpos($haystack, $needle, $encoding);
     694            $pos = iconv_strrpos($haystack, $needle, $encoding);
    661695        }
    662696
     
    674708    public static function mb_strripos($haystack, $needle, $offset = 0, $encoding = null)
    675709    {
    676         $haystack = self::mb_convert_case($haystack, self::MB_CASE_FOLD, $encoding);
    677         $needle = self::mb_convert_case($needle, self::MB_CASE_FOLD, $encoding);
     710        $haystack = self::mb_convert_case($haystack, \MB_CASE_LOWER, $encoding);
     711        $needle = self::mb_convert_case($needle, \MB_CASE_LOWER, $encoding);
     712
     713        $haystack = str_replace(self::SIMPLE_CASE_FOLD[0], self::SIMPLE_CASE_FOLD[1], $haystack);
     714        $needle = str_replace(self::SIMPLE_CASE_FOLD[0], self::SIMPLE_CASE_FOLD[1], $needle);
    678715
    679716        return self::mb_strrpos($haystack, $needle, $offset, $encoding);
     
    737774
    738775        if ('UTF-8' !== $encoding) {
    739             $s = \iconv($encoding, 'UTF-8//IGNORE', $s);
     776            $s = iconv($encoding, 'UTF-8//IGNORE', $s);
    740777        }
    741778
    742779        $s = preg_replace('/[\x{1100}-\x{115F}\x{2329}\x{232A}\x{2E80}-\x{303E}\x{3040}-\x{A4CF}\x{AC00}-\x{D7A3}\x{F900}-\x{FAFF}\x{FE10}-\x{FE19}\x{FE30}-\x{FE6F}\x{FF00}-\x{FF60}\x{FFE0}-\x{FFE6}\x{20000}-\x{2FFFD}\x{30000}-\x{3FFFD}]/u', '', $s, -1, $wide);
    743780
    744         return ($wide << 1) + \iconv_strlen($s, 'UTF-8');
     781        return ($wide << 1) + iconv_strlen($s, 'UTF-8');
    745782    }
    746783
     
    798835    }
    799836
     837    public static function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = \STR_PAD_RIGHT, ?string $encoding = null): string
     838    {
     839        if (!\in_array($pad_type, [\STR_PAD_RIGHT, \STR_PAD_LEFT, \STR_PAD_BOTH], true)) {
     840            throw new \ValueError('mb_str_pad(): Argument #4 ($pad_type) must be STR_PAD_LEFT, STR_PAD_RIGHT, or STR_PAD_BOTH');
     841        }
     842
     843        if (null === $encoding) {
     844            $encoding = self::mb_internal_encoding();
     845        } else {
     846            self::assertEncoding($encoding, 'mb_str_pad(): Argument #5 ($encoding) must be a valid encoding, "%s" given');
     847        }
     848
     849        if (self::mb_strlen($pad_string, $encoding) <= 0) {
     850            throw new \ValueError('mb_str_pad(): Argument #3 ($pad_string) must be a non-empty string');
     851        }
     852
     853        $paddingRequired = $length - self::mb_strlen($string, $encoding);
     854
     855        if ($paddingRequired < 1) {
     856            return $string;
     857        }
     858
     859        switch ($pad_type) {
     860            case \STR_PAD_LEFT:
     861                return self::mb_substr(str_repeat($pad_string, $paddingRequired), 0, $paddingRequired, $encoding).$string;
     862            case \STR_PAD_RIGHT:
     863                return $string.self::mb_substr(str_repeat($pad_string, $paddingRequired), 0, $paddingRequired, $encoding);
     864            default:
     865                $leftPaddingLength = floor($paddingRequired / 2);
     866                $rightPaddingLength = $paddingRequired - $leftPaddingLength;
     867
     868                return self::mb_substr(str_repeat($pad_string, $leftPaddingLength), 0, $leftPaddingLength, $encoding).$string.self::mb_substr(str_repeat($pad_string, $rightPaddingLength), 0, $rightPaddingLength, $encoding);
     869        }
     870    }
     871
     872    public static function mb_ucfirst(string $string, ?string $encoding = null): string
     873    {
     874        if (null === $encoding) {
     875            $encoding = self::mb_internal_encoding();
     876        } else {
     877            self::assertEncoding($encoding, 'mb_ucfirst(): Argument #2 ($encoding) must be a valid encoding, "%s" given');
     878        }
     879
     880        $firstChar = mb_substr($string, 0, 1, $encoding);
     881        $firstChar = mb_convert_case($firstChar, \MB_CASE_TITLE, $encoding);
     882
     883        return $firstChar.mb_substr($string, 1, null, $encoding);
     884    }
     885
     886    public static function mb_lcfirst(string $string, ?string $encoding = null): string
     887    {
     888        if (null === $encoding) {
     889            $encoding = self::mb_internal_encoding();
     890        } else {
     891            self::assertEncoding($encoding, 'mb_lcfirst(): Argument #2 ($encoding) must be a valid encoding, "%s" given');
     892        }
     893
     894        $firstChar = mb_substr($string, 0, 1, $encoding);
     895        $firstChar = mb_convert_case($firstChar, \MB_CASE_LOWER, $encoding);
     896
     897        return $firstChar.mb_substr($string, 1, null, $encoding);
     898    }
     899
    800900    private static function getSubpart($pos, $part, $haystack, $encoding)
    801901    {
     
    871971        return $encoding;
    872972    }
     973
     974    public static function mb_trim(string $string, ?string $characters = null, ?string $encoding = null): string
     975    {
     976        return self::mb_internal_trim('{^[%s]+|[%1$s]+$}Du', $string, $characters, $encoding, __FUNCTION__);
     977    }
     978
     979    public static function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null): string
     980    {
     981        return self::mb_internal_trim('{^[%s]+}Du', $string, $characters, $encoding, __FUNCTION__);
     982    }
     983
     984    public static function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null): string
     985    {
     986        return self::mb_internal_trim('{[%s]+$}D', $string, $characters, $encoding, __FUNCTION__);
     987    }
     988
     989    private static function mb_internal_trim(string $regex, string $string, ?string $characters, ?string $encoding, string $function): string
     990    {
     991        if (null === $encoding) {
     992            $encoding = self::mb_internal_encoding();
     993        } else {
     994            self::assertEncoding($encoding, $function.'(): Argument #3 ($encoding) must be a valid encoding, "%s" given');
     995        }
     996
     997        if ('' === $characters) {
     998            return null === $encoding ? $string : self::mb_convert_encoding($string, $encoding);
     999        }
     1000
     1001        if ('UTF-8' === $encoding) {
     1002            $encoding = null;
     1003            if (!preg_match('//u', $string)) {
     1004                $string = @iconv('UTF-8', 'UTF-8//IGNORE', $string);
     1005            }
     1006            if (null !== $characters && !preg_match('//u', $characters)) {
     1007                $characters = @iconv('UTF-8', 'UTF-8//IGNORE', $characters);
     1008            }
     1009        } else {
     1010            $string = iconv($encoding, 'UTF-8//IGNORE', $string);
     1011
     1012            if (null !== $characters) {
     1013                $characters = iconv($encoding, 'UTF-8//IGNORE', $characters);
     1014            }
     1015        }
     1016
     1017        if (null === $characters) {
     1018            $characters = "\\0 \f\n\r\t\v\u{00A0}\u{1680}\u{2000}\u{2001}\u{2002}\u{2003}\u{2004}\u{2005}\u{2006}\u{2007}\u{2008}\u{2009}\u{200A}\u{2028}\u{2029}\u{202F}\u{205F}\u{3000}\u{0085}\u{180E}";
     1019        } else {
     1020            $characters = preg_quote($characters);
     1021        }
     1022
     1023        $string = preg_replace(sprintf($regex, $characters), '', $string);
     1024
     1025        if (null === $encoding) {
     1026            return $string;
     1027        }
     1028
     1029        return iconv('UTF-8', $encoding.'//IGNORE', $string);
     1030    }
     1031
     1032    private static function assertEncoding(string $encoding, string $errorFormat): void
     1033    {
     1034        try {
     1035            $validEncoding = @self::mb_check_encoding('', $encoding);
     1036        } catch (\ValueError $e) {
     1037            throw new \ValueError(sprintf($errorFormat, $encoding));
     1038        }
     1039
     1040        // BC for PHP 7.3 and lower
     1041        if (!$validEncoding) {
     1042            throw new \ValueError(sprintf($errorFormat, $encoding));
     1043        }
     1044    }
    8731045}
  • kolorweb-log-manager/trunk/vendor/symfony/polyfill-mbstring/README.md

    r2733580 r3153225  
    66
    77More information can be found in the
    8 [main Polyfill README](https://github.com/symfony/polyfill/blob/master/README.md).
     8[main Polyfill README](https://github.com/symfony/polyfill/blob/main/README.md).
    99
    1010License
  • kolorweb-log-manager/trunk/vendor/symfony/polyfill-mbstring/bootstrap.php

    r2733580 r3153225  
    133133}
    134134
     135if (!function_exists('mb_str_pad')) {
     136    function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = STR_PAD_RIGHT, ?string $encoding = null): string { return p\Mbstring::mb_str_pad($string, $length, $pad_string, $pad_type, $encoding); }
     137}
     138
     139if (!function_exists('mb_ucfirst')) {
     140    function mb_ucfirst(string $string, ?string $encoding = null): string { return p\Mbstring::mb_ucfirst($string, $encoding); }
     141}
     142
     143if (!function_exists('mb_lcfirst')) {
     144    function mb_lcfirst(string $string, ?string $encoding = null): string { return p\Mbstring::mb_lcfirst($string, $encoding); }
     145}
     146
     147if (!function_exists('mb_trim')) {
     148    function mb_trim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_trim($string, $characters, $encoding); }
     149}
     150
     151if (!function_exists('mb_ltrim')) {
     152    function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_ltrim($string, $characters, $encoding); }
     153}
     154
     155if (!function_exists('mb_rtrim')) {
     156    function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_rtrim($string, $characters, $encoding); }
     157}
     158
     159
    135160if (extension_loaded('mbstring')) {
    136161    return;
  • kolorweb-log-manager/trunk/vendor/symfony/polyfill-mbstring/bootstrap80.php

    r2733580 r3153225  
    9494}
    9595if (!function_exists('mb_get_info')) {
    96     function mb_get_info(?string $type = 'all'): array|string|int|false { return p\Mbstring::mb_get_info((string) $type); }
     96    function mb_get_info(?string $type = 'all'): array|string|int|false|null { return p\Mbstring::mb_get_info((string) $type); }
    9797}
    9898if (!function_exists('mb_http_output')) {
     
    129129}
    130130
     131if (!function_exists('mb_str_pad')) {
     132    function mb_str_pad(string $string, int $length, string $pad_string = ' ', int $pad_type = STR_PAD_RIGHT, ?string $encoding = null): string { return p\Mbstring::mb_str_pad($string, $length, $pad_string, $pad_type, $encoding); }
     133}
     134
     135if (!function_exists('mb_ucfirst')) {
     136    function mb_ucfirst($string, ?string $encoding = null): string { return p\Mbstring::mb_ucfirst($string, $encoding); }
     137}
     138
     139if (!function_exists('mb_lcfirst')) {
     140    function mb_lcfirst($string, ?string $encoding = null): string { return p\Mbstring::mb_lcfirst($string, $encoding); }
     141}
     142
     143if (!function_exists('mb_trim')) {
     144    function mb_trim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_trim($string, $characters, $encoding); }
     145}
     146
     147if (!function_exists('mb_ltrim')) {
     148    function mb_ltrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_ltrim($string, $characters, $encoding); }
     149}
     150
     151if (!function_exists('mb_rtrim')) {
     152    function mb_rtrim(string $string, ?string $characters = null, ?string $encoding = null): string { return p\Mbstring::mb_rtrim($string, $characters, $encoding); }
     153}
     154
    131155if (extension_loaded('mbstring')) {
    132156    return;
  • kolorweb-log-manager/trunk/vendor/symfony/polyfill-mbstring/composer.json

    r2733580 r3153225  
    1717    ],
    1818    "require": {
    19         "php": ">=7.1"
     19        "php": ">=7.2"
    2020    },
    2121    "provide": {
     
    3131    "minimum-stability": "dev",
    3232    "extra": {
    33         "branch-alias": {
    34             "dev-main": "1.23-dev"
    35         },
    3633        "thanks": {
    3734            "name": "symfony/polyfill",
  • kolorweb-log-manager/trunk/vendor/wp-cli/wp-config-transformer/README.md

    r2692326 r3153225  
    33Programmatically edit a `wp-config.php` file.
    44
    5 [![Build Status](https://travis-ci.org/wp-cli/wp-config-transformer.svg?branch=master)](https://travis-ci.org/wp-cli/wp-config-transformer)
     5[![Testing](https://github.com/wp-cli/wp-config-transformer/actions/workflows/testing.yml/badge.svg)](https://github.com/wp-cli/wp-config-transformer/actions/workflows/testing.yml)
    66
    77Quick links: [Using](#using) &#124; [Options](#options) &#124; [How it works](#how-it-works) &#124; [Testing](#testing)
  • kolorweb-log-manager/trunk/vendor/wp-cli/wp-config-transformer/composer.json

    r2692326 r3153225  
    1515        "sort-packages": true,
    1616        "allow-plugins": {
    17             "dealerdirect/phpcodesniffer-composer-installer": true
     17            "dealerdirect/phpcodesniffer-composer-installer": true,
     18            "johnpbloch/wordpress-core-installer": true
    1819        }
    1920    },
     
    2223    },
    2324    "require-dev": {
    24         "wp-cli/wp-cli-tests": "^3.1"
     25        "wp-cli/wp-cli-tests": "^4.0"
    2526    },
    2627    "autoload": {
     
    3435        "lint": "run-linter-tests",
    3536        "phpcs": "run-phpcs-tests",
     37        "phpcbf": "run-phpcbf-cleanup",
    3638        "phpunit": "run-php-unit-tests",
    3739        "prepare-tests": "install-package-tests",
  • kolorweb-log-manager/trunk/vendor/wp-cli/wp-config-transformer/src/WPConfigTransformer.php

    r2692326 r3153225  
    7171        }
    7272        // Normalize the newline to prevent an issue coming from OSX.
    73         $this->wp_config_src = str_replace( array( "\n\r", "\r" ), "\n", $wp_config_src );
     73        $this->wp_config_src = str_replace( array( "\r\n", "\n\r", "\r" ), "\n", $wp_config_src );
    7474        $this->wp_configs    = $this->parse_wp_config( $this->wp_config_src );
    7575
     
    9090     * @param string $name Config name.
    9191     *
    92      * @return array
     92     * @return string|null
    9393     */
    9494    public function get_value( $type, $name ) {
     
    289289        foreach ( token_get_all( $src ) as $token ) {
    290290            if ( in_array( $token[0], array( T_COMMENT, T_DOC_COMMENT ), true ) ) {
    291                 $src = str_replace( $token[1], '', $src );
     291                if ( '//' === $token[1] ) {
     292                    // For empty line comments, actually remove empty line comments instead of all double-slashes.
     293                    // See: https://github.com/wp-cli/wp-config-transformer/issues/47
     294                    $src = preg_replace( '/' . preg_quote( '//', '/' ) . '$/m', '', $src );
     295                } else {
     296                    $src = str_replace( $token[1], '', $src );
     297                }
    292298            }
    293299        }
Note: See TracChangeset for help on using the changeset viewer.