Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/wordpres.../vendor/composer
File: ClassLoader.php
<?php
[0] Fix | Delete
[1] Fix | Delete
/*
[2] Fix | Delete
* This file is part of Composer.
[3] Fix | Delete
*
[4] Fix | Delete
* (c) Nils Adermann <naderman@naderman.de>
[5] Fix | Delete
* Jordi Boggiano <j.boggiano@seld.be>
[6] Fix | Delete
*
[7] Fix | Delete
* For the full copyright and license information, please view the LICENSE
[8] Fix | Delete
* file that was distributed with this source code.
[9] Fix | Delete
*/
[10] Fix | Delete
[11] Fix | Delete
namespace Composer\Autoload;
[12] Fix | Delete
[13] Fix | Delete
/**
[14] Fix | Delete
* ClassLoader implements a PSR-0, PSR-4 and classmap class loader.
[15] Fix | Delete
*
[16] Fix | Delete
* $loader = new \Composer\Autoload\ClassLoader();
[17] Fix | Delete
*
[18] Fix | Delete
* // register classes with namespaces
[19] Fix | Delete
* $loader->add('Symfony\Component', __DIR__.'/component');
[20] Fix | Delete
* $loader->add('Symfony', __DIR__.'/framework');
[21] Fix | Delete
*
[22] Fix | Delete
* // activate the autoloader
[23] Fix | Delete
* $loader->register();
[24] Fix | Delete
*
[25] Fix | Delete
* // to enable searching the include path (eg. for PEAR packages)
[26] Fix | Delete
* $loader->setUseIncludePath(true);
[27] Fix | Delete
*
[28] Fix | Delete
* In this example, if you try to use a class in the Symfony\Component
[29] Fix | Delete
* namespace or one of its children (Symfony\Component\Console for instance),
[30] Fix | Delete
* the autoloader will first look for the class under the component/
[31] Fix | Delete
* directory, and it will then fallback to the framework/ directory if not
[32] Fix | Delete
* found before giving up.
[33] Fix | Delete
*
[34] Fix | Delete
* This class is loosely based on the Symfony UniversalClassLoader.
[35] Fix | Delete
*
[36] Fix | Delete
* @author Fabien Potencier <fabien@symfony.com>
[37] Fix | Delete
* @author Jordi Boggiano <j.boggiano@seld.be>
[38] Fix | Delete
* @see https://www.php-fig.org/psr/psr-0/
[39] Fix | Delete
* @see https://www.php-fig.org/psr/psr-4/
[40] Fix | Delete
*/
[41] Fix | Delete
class ClassLoader
[42] Fix | Delete
{
[43] Fix | Delete
/** @var ?string */
[44] Fix | Delete
private $vendorDir;
[45] Fix | Delete
[46] Fix | Delete
// PSR-4
[47] Fix | Delete
/**
[48] Fix | Delete
* @var array[]
[49] Fix | Delete
* @psalm-var array<string, array<string, int>>
[50] Fix | Delete
*/
[51] Fix | Delete
private $prefixLengthsPsr4 = array();
[52] Fix | Delete
/**
[53] Fix | Delete
* @var array[]
[54] Fix | Delete
* @psalm-var array<string, array<int, string>>
[55] Fix | Delete
*/
[56] Fix | Delete
private $prefixDirsPsr4 = array();
[57] Fix | Delete
/**
[58] Fix | Delete
* @var array[]
[59] Fix | Delete
* @psalm-var array<string, string>
[60] Fix | Delete
*/
[61] Fix | Delete
private $fallbackDirsPsr4 = array();
[62] Fix | Delete
[63] Fix | Delete
// PSR-0
[64] Fix | Delete
/**
[65] Fix | Delete
* @var array[]
[66] Fix | Delete
* @psalm-var array<string, array<string, string[]>>
[67] Fix | Delete
*/
[68] Fix | Delete
private $prefixesPsr0 = array();
[69] Fix | Delete
/**
[70] Fix | Delete
* @var array[]
[71] Fix | Delete
* @psalm-var array<string, string>
[72] Fix | Delete
*/
[73] Fix | Delete
private $fallbackDirsPsr0 = array();
[74] Fix | Delete
[75] Fix | Delete
/** @var bool */
[76] Fix | Delete
private $useIncludePath = false;
[77] Fix | Delete
[78] Fix | Delete
/**
[79] Fix | Delete
* @var string[]
[80] Fix | Delete
* @psalm-var array<string, string>
[81] Fix | Delete
*/
[82] Fix | Delete
private $classMap = array();
[83] Fix | Delete
[84] Fix | Delete
/** @var bool */
[85] Fix | Delete
private $classMapAuthoritative = false;
[86] Fix | Delete
[87] Fix | Delete
/**
[88] Fix | Delete
* @var bool[]
[89] Fix | Delete
* @psalm-var array<string, bool>
[90] Fix | Delete
*/
[91] Fix | Delete
private $missingClasses = array();
[92] Fix | Delete
[93] Fix | Delete
/** @var ?string */
[94] Fix | Delete
private $apcuPrefix;
[95] Fix | Delete
[96] Fix | Delete
/**
[97] Fix | Delete
* @var self[]
[98] Fix | Delete
*/
[99] Fix | Delete
private static $registeredLoaders = array();
[100] Fix | Delete
[101] Fix | Delete
/**
[102] Fix | Delete
* @param ?string $vendorDir
[103] Fix | Delete
*/
[104] Fix | Delete
public function __construct($vendorDir = null)
[105] Fix | Delete
{
[106] Fix | Delete
$this->vendorDir = $vendorDir;
[107] Fix | Delete
}
[108] Fix | Delete
[109] Fix | Delete
/**
[110] Fix | Delete
* @return string[]
[111] Fix | Delete
*/
[112] Fix | Delete
public function getPrefixes()
[113] Fix | Delete
{
[114] Fix | Delete
if (!empty($this->prefixesPsr0)) {
[115] Fix | Delete
return call_user_func_array('array_merge', array_values($this->prefixesPsr0));
[116] Fix | Delete
}
[117] Fix | Delete
[118] Fix | Delete
return array();
[119] Fix | Delete
}
[120] Fix | Delete
[121] Fix | Delete
/**
[122] Fix | Delete
* @return array[]
[123] Fix | Delete
* @psalm-return array<string, array<int, string>>
[124] Fix | Delete
*/
[125] Fix | Delete
public function getPrefixesPsr4()
[126] Fix | Delete
{
[127] Fix | Delete
return $this->prefixDirsPsr4;
[128] Fix | Delete
}
[129] Fix | Delete
[130] Fix | Delete
/**
[131] Fix | Delete
* @return array[]
[132] Fix | Delete
* @psalm-return array<string, string>
[133] Fix | Delete
*/
[134] Fix | Delete
public function getFallbackDirs()
[135] Fix | Delete
{
[136] Fix | Delete
return $this->fallbackDirsPsr0;
[137] Fix | Delete
}
[138] Fix | Delete
[139] Fix | Delete
/**
[140] Fix | Delete
* @return array[]
[141] Fix | Delete
* @psalm-return array<string, string>
[142] Fix | Delete
*/
[143] Fix | Delete
public function getFallbackDirsPsr4()
[144] Fix | Delete
{
[145] Fix | Delete
return $this->fallbackDirsPsr4;
[146] Fix | Delete
}
[147] Fix | Delete
[148] Fix | Delete
/**
[149] Fix | Delete
* @return string[] Array of classname => path
[150] Fix | Delete
* @psalm-var array<string, string>
[151] Fix | Delete
*/
[152] Fix | Delete
public function getClassMap()
[153] Fix | Delete
{
[154] Fix | Delete
return $this->classMap;
[155] Fix | Delete
}
[156] Fix | Delete
[157] Fix | Delete
/**
[158] Fix | Delete
* @param string[] $classMap Class to filename map
[159] Fix | Delete
* @psalm-param array<string, string> $classMap
[160] Fix | Delete
*
[161] Fix | Delete
* @return void
[162] Fix | Delete
*/
[163] Fix | Delete
public function addClassMap(array $classMap)
[164] Fix | Delete
{
[165] Fix | Delete
if ($this->classMap) {
[166] Fix | Delete
$this->classMap = array_merge($this->classMap, $classMap);
[167] Fix | Delete
} else {
[168] Fix | Delete
$this->classMap = $classMap;
[169] Fix | Delete
}
[170] Fix | Delete
}
[171] Fix | Delete
[172] Fix | Delete
/**
[173] Fix | Delete
* Registers a set of PSR-0 directories for a given prefix, either
[174] Fix | Delete
* appending or prepending to the ones previously set for this prefix.
[175] Fix | Delete
*
[176] Fix | Delete
* @param string $prefix The prefix
[177] Fix | Delete
* @param string[]|string $paths The PSR-0 root directories
[178] Fix | Delete
* @param bool $prepend Whether to prepend the directories
[179] Fix | Delete
*
[180] Fix | Delete
* @return void
[181] Fix | Delete
*/
[182] Fix | Delete
public function add($prefix, $paths, $prepend = false)
[183] Fix | Delete
{
[184] Fix | Delete
if (!$prefix) {
[185] Fix | Delete
if ($prepend) {
[186] Fix | Delete
$this->fallbackDirsPsr0 = array_merge(
[187] Fix | Delete
(array) $paths,
[188] Fix | Delete
$this->fallbackDirsPsr0
[189] Fix | Delete
);
[190] Fix | Delete
} else {
[191] Fix | Delete
$this->fallbackDirsPsr0 = array_merge(
[192] Fix | Delete
$this->fallbackDirsPsr0,
[193] Fix | Delete
(array) $paths
[194] Fix | Delete
);
[195] Fix | Delete
}
[196] Fix | Delete
[197] Fix | Delete
return;
[198] Fix | Delete
}
[199] Fix | Delete
[200] Fix | Delete
$first = $prefix[0];
[201] Fix | Delete
if (!isset($this->prefixesPsr0[$first][$prefix])) {
[202] Fix | Delete
$this->prefixesPsr0[$first][$prefix] = (array) $paths;
[203] Fix | Delete
[204] Fix | Delete
return;
[205] Fix | Delete
}
[206] Fix | Delete
if ($prepend) {
[207] Fix | Delete
$this->prefixesPsr0[$first][$prefix] = array_merge(
[208] Fix | Delete
(array) $paths,
[209] Fix | Delete
$this->prefixesPsr0[$first][$prefix]
[210] Fix | Delete
);
[211] Fix | Delete
} else {
[212] Fix | Delete
$this->prefixesPsr0[$first][$prefix] = array_merge(
[213] Fix | Delete
$this->prefixesPsr0[$first][$prefix],
[214] Fix | Delete
(array) $paths
[215] Fix | Delete
);
[216] Fix | Delete
}
[217] Fix | Delete
}
[218] Fix | Delete
[219] Fix | Delete
/**
[220] Fix | Delete
* Registers a set of PSR-4 directories for a given namespace, either
[221] Fix | Delete
* appending or prepending to the ones previously set for this namespace.
[222] Fix | Delete
*
[223] Fix | Delete
* @param string $prefix The prefix/namespace, with trailing '\\'
[224] Fix | Delete
* @param string[]|string $paths The PSR-4 base directories
[225] Fix | Delete
* @param bool $prepend Whether to prepend the directories
[226] Fix | Delete
*
[227] Fix | Delete
* @throws \InvalidArgumentException
[228] Fix | Delete
*
[229] Fix | Delete
* @return void
[230] Fix | Delete
*/
[231] Fix | Delete
public function addPsr4($prefix, $paths, $prepend = false)
[232] Fix | Delete
{
[233] Fix | Delete
if (!$prefix) {
[234] Fix | Delete
// Register directories for the root namespace.
[235] Fix | Delete
if ($prepend) {
[236] Fix | Delete
$this->fallbackDirsPsr4 = array_merge(
[237] Fix | Delete
(array) $paths,
[238] Fix | Delete
$this->fallbackDirsPsr4
[239] Fix | Delete
);
[240] Fix | Delete
} else {
[241] Fix | Delete
$this->fallbackDirsPsr4 = array_merge(
[242] Fix | Delete
$this->fallbackDirsPsr4,
[243] Fix | Delete
(array) $paths
[244] Fix | Delete
);
[245] Fix | Delete
}
[246] Fix | Delete
} elseif (!isset($this->prefixDirsPsr4[$prefix])) {
[247] Fix | Delete
// Register directories for a new namespace.
[248] Fix | Delete
$length = strlen($prefix);
[249] Fix | Delete
if ('\\' !== $prefix[$length - 1]) {
[250] Fix | Delete
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
[251] Fix | Delete
}
[252] Fix | Delete
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
[253] Fix | Delete
$this->prefixDirsPsr4[$prefix] = (array) $paths;
[254] Fix | Delete
} elseif ($prepend) {
[255] Fix | Delete
// Prepend directories for an already registered namespace.
[256] Fix | Delete
$this->prefixDirsPsr4[$prefix] = array_merge(
[257] Fix | Delete
(array) $paths,
[258] Fix | Delete
$this->prefixDirsPsr4[$prefix]
[259] Fix | Delete
);
[260] Fix | Delete
} else {
[261] Fix | Delete
// Append directories for an already registered namespace.
[262] Fix | Delete
$this->prefixDirsPsr4[$prefix] = array_merge(
[263] Fix | Delete
$this->prefixDirsPsr4[$prefix],
[264] Fix | Delete
(array) $paths
[265] Fix | Delete
);
[266] Fix | Delete
}
[267] Fix | Delete
}
[268] Fix | Delete
[269] Fix | Delete
/**
[270] Fix | Delete
* Registers a set of PSR-0 directories for a given prefix,
[271] Fix | Delete
* replacing any others previously set for this prefix.
[272] Fix | Delete
*
[273] Fix | Delete
* @param string $prefix The prefix
[274] Fix | Delete
* @param string[]|string $paths The PSR-0 base directories
[275] Fix | Delete
*
[276] Fix | Delete
* @return void
[277] Fix | Delete
*/
[278] Fix | Delete
public function set($prefix, $paths)
[279] Fix | Delete
{
[280] Fix | Delete
if (!$prefix) {
[281] Fix | Delete
$this->fallbackDirsPsr0 = (array) $paths;
[282] Fix | Delete
} else {
[283] Fix | Delete
$this->prefixesPsr0[$prefix[0]][$prefix] = (array) $paths;
[284] Fix | Delete
}
[285] Fix | Delete
}
[286] Fix | Delete
[287] Fix | Delete
/**
[288] Fix | Delete
* Registers a set of PSR-4 directories for a given namespace,
[289] Fix | Delete
* replacing any others previously set for this namespace.
[290] Fix | Delete
*
[291] Fix | Delete
* @param string $prefix The prefix/namespace, with trailing '\\'
[292] Fix | Delete
* @param string[]|string $paths The PSR-4 base directories
[293] Fix | Delete
*
[294] Fix | Delete
* @throws \InvalidArgumentException
[295] Fix | Delete
*
[296] Fix | Delete
* @return void
[297] Fix | Delete
*/
[298] Fix | Delete
public function setPsr4($prefix, $paths)
[299] Fix | Delete
{
[300] Fix | Delete
if (!$prefix) {
[301] Fix | Delete
$this->fallbackDirsPsr4 = (array) $paths;
[302] Fix | Delete
} else {
[303] Fix | Delete
$length = strlen($prefix);
[304] Fix | Delete
if ('\\' !== $prefix[$length - 1]) {
[305] Fix | Delete
throw new \InvalidArgumentException("A non-empty PSR-4 prefix must end with a namespace separator.");
[306] Fix | Delete
}
[307] Fix | Delete
$this->prefixLengthsPsr4[$prefix[0]][$prefix] = $length;
[308] Fix | Delete
$this->prefixDirsPsr4[$prefix] = (array) $paths;
[309] Fix | Delete
}
[310] Fix | Delete
}
[311] Fix | Delete
[312] Fix | Delete
/**
[313] Fix | Delete
* Turns on searching the include path for class files.
[314] Fix | Delete
*
[315] Fix | Delete
* @param bool $useIncludePath
[316] Fix | Delete
*
[317] Fix | Delete
* @return void
[318] Fix | Delete
*/
[319] Fix | Delete
public function setUseIncludePath($useIncludePath)
[320] Fix | Delete
{
[321] Fix | Delete
$this->useIncludePath = $useIncludePath;
[322] Fix | Delete
}
[323] Fix | Delete
[324] Fix | Delete
/**
[325] Fix | Delete
* Can be used to check if the autoloader uses the include path to check
[326] Fix | Delete
* for classes.
[327] Fix | Delete
*
[328] Fix | Delete
* @return bool
[329] Fix | Delete
*/
[330] Fix | Delete
public function getUseIncludePath()
[331] Fix | Delete
{
[332] Fix | Delete
return $this->useIncludePath;
[333] Fix | Delete
}
[334] Fix | Delete
[335] Fix | Delete
/**
[336] Fix | Delete
* Turns off searching the prefix and fallback directories for classes
[337] Fix | Delete
* that have not been registered with the class map.
[338] Fix | Delete
*
[339] Fix | Delete
* @param bool $classMapAuthoritative
[340] Fix | Delete
*
[341] Fix | Delete
* @return void
[342] Fix | Delete
*/
[343] Fix | Delete
public function setClassMapAuthoritative($classMapAuthoritative)
[344] Fix | Delete
{
[345] Fix | Delete
$this->classMapAuthoritative = $classMapAuthoritative;
[346] Fix | Delete
}
[347] Fix | Delete
[348] Fix | Delete
/**
[349] Fix | Delete
* Should class lookup fail if not found in the current class map?
[350] Fix | Delete
*
[351] Fix | Delete
* @return bool
[352] Fix | Delete
*/
[353] Fix | Delete
public function isClassMapAuthoritative()
[354] Fix | Delete
{
[355] Fix | Delete
return $this->classMapAuthoritative;
[356] Fix | Delete
}
[357] Fix | Delete
[358] Fix | Delete
/**
[359] Fix | Delete
* APCu prefix to use to cache found/not-found classes, if the extension is enabled.
[360] Fix | Delete
*
[361] Fix | Delete
* @param string|null $apcuPrefix
[362] Fix | Delete
*
[363] Fix | Delete
* @return void
[364] Fix | Delete
*/
[365] Fix | Delete
public function setApcuPrefix($apcuPrefix)
[366] Fix | Delete
{
[367] Fix | Delete
$this->apcuPrefix = function_exists('apcu_fetch') && filter_var(ini_get('apc.enabled'), FILTER_VALIDATE_BOOLEAN) ? $apcuPrefix : null;
[368] Fix | Delete
}
[369] Fix | Delete
[370] Fix | Delete
/**
[371] Fix | Delete
* The APCu prefix in use, or null if APCu caching is not enabled.
[372] Fix | Delete
*
[373] Fix | Delete
* @return string|null
[374] Fix | Delete
*/
[375] Fix | Delete
public function getApcuPrefix()
[376] Fix | Delete
{
[377] Fix | Delete
return $this->apcuPrefix;
[378] Fix | Delete
}
[379] Fix | Delete
[380] Fix | Delete
/**
[381] Fix | Delete
* Registers this instance as an autoloader.
[382] Fix | Delete
*
[383] Fix | Delete
* @param bool $prepend Whether to prepend the autoloader or not
[384] Fix | Delete
*
[385] Fix | Delete
* @return void
[386] Fix | Delete
*/
[387] Fix | Delete
public function register($prepend = false)
[388] Fix | Delete
{
[389] Fix | Delete
spl_autoload_register(array($this, 'loadClass'), true, $prepend);
[390] Fix | Delete
[391] Fix | Delete
if (null === $this->vendorDir) {
[392] Fix | Delete
return;
[393] Fix | Delete
}
[394] Fix | Delete
[395] Fix | Delete
if ($prepend) {
[396] Fix | Delete
self::$registeredLoaders = array($this->vendorDir => $this) + self::$registeredLoaders;
[397] Fix | Delete
} else {
[398] Fix | Delete
unset(self::$registeredLoaders[$this->vendorDir]);
[399] Fix | Delete
self::$registeredLoaders[$this->vendorDir] = $this;
[400] Fix | Delete
}
[401] Fix | Delete
}
[402] Fix | Delete
[403] Fix | Delete
/**
[404] Fix | Delete
* Unregisters this instance as an autoloader.
[405] Fix | Delete
*
[406] Fix | Delete
* @return void
[407] Fix | Delete
*/
[408] Fix | Delete
public function unregister()
[409] Fix | Delete
{
[410] Fix | Delete
spl_autoload_unregister(array($this, 'loadClass'));
[411] Fix | Delete
[412] Fix | Delete
if (null !== $this->vendorDir) {
[413] Fix | Delete
unset(self::$registeredLoaders[$this->vendorDir]);
[414] Fix | Delete
}
[415] Fix | Delete
}
[416] Fix | Delete
[417] Fix | Delete
/**
[418] Fix | Delete
* Loads the given class or interface.
[419] Fix | Delete
*
[420] Fix | Delete
* @param string $class The name of the class
[421] Fix | Delete
* @return true|null True if loaded, null otherwise
[422] Fix | Delete
*/
[423] Fix | Delete
public function loadClass($class)
[424] Fix | Delete
{
[425] Fix | Delete
if ($file = $this->findFile($class)) {
[426] Fix | Delete
includeFile($file);
[427] Fix | Delete
[428] Fix | Delete
return true;
[429] Fix | Delete
}
[430] Fix | Delete
[431] Fix | Delete
return null;
[432] Fix | Delete
}
[433] Fix | Delete
[434] Fix | Delete
/**
[435] Fix | Delete
* Finds the path to the file where the class is defined.
[436] Fix | Delete
*
[437] Fix | Delete
* @param string $class The name of the class
[438] Fix | Delete
*
[439] Fix | Delete
* @return string|false The path if found, false otherwise
[440] Fix | Delete
*/
[441] Fix | Delete
public function findFile($class)
[442] Fix | Delete
{
[443] Fix | Delete
// class map lookup
[444] Fix | Delete
if (isset($this->classMap[$class])) {
[445] Fix | Delete
return $this->classMap[$class];
[446] Fix | Delete
}
[447] Fix | Delete
if ($this->classMapAuthoritative || isset($this->missingClasses[$class])) {
[448] Fix | Delete
return false;
[449] Fix | Delete
}
[450] Fix | Delete
if (null !== $this->apcuPrefix) {
[451] Fix | Delete
$file = apcu_fetch($this->apcuPrefix.$class, $hit);
[452] Fix | Delete
if ($hit) {
[453] Fix | Delete
return $file;
[454] Fix | Delete
}
[455] Fix | Delete
}
[456] Fix | Delete
[457] Fix | Delete
$file = $this->findFileWithExtension($class, '.php');
[458] Fix | Delete
[459] Fix | Delete
// Search for Hack files if we are running on HHVM
[460] Fix | Delete
if (false === $file && defined('HHVM_VERSION')) {
[461] Fix | Delete
$file = $this->findFileWithExtension($class, '.hh');
[462] Fix | Delete
}
[463] Fix | Delete
[464] Fix | Delete
if (null !== $this->apcuPrefix) {
[465] Fix | Delete
apcu_add($this->apcuPrefix.$class, $file);
[466] Fix | Delete
}
[467] Fix | Delete
[468] Fix | Delete
if (false === $file) {
[469] Fix | Delete
// Remember that this class does not exist.
[470] Fix | Delete
$this->missingClasses[$class] = true;
[471] Fix | Delete
}
[472] Fix | Delete
[473] Fix | Delete
return $file;
[474] Fix | Delete
}
[475] Fix | Delete
[476] Fix | Delete
/**
[477] Fix | Delete
* Returns the currently registered loaders indexed by their corresponding vendor directories.
[478] Fix | Delete
*
[479] Fix | Delete
* @return self[]
[480] Fix | Delete
*/
[481] Fix | Delete
public static function getRegisteredLoaders()
[482] Fix | Delete
{
[483] Fix | Delete
return self::$registeredLoaders;
[484] Fix | Delete
}
[485] Fix | Delete
[486] Fix | Delete
/**
[487] Fix | Delete
* @param string $class
[488] Fix | Delete
* @param string $ext
[489] Fix | Delete
* @return string|false
[490] Fix | Delete
*/
[491] Fix | Delete
private function findFileWithExtension($class, $ext)
[492] Fix | Delete
{
[493] Fix | Delete
// PSR-4 lookup
[494] Fix | Delete
$logicalPathPsr4 = strtr($class, '\\', DIRECTORY_SEPARATOR) . $ext;
[495] Fix | Delete
[496] Fix | Delete
$first = $class[0];
[497] Fix | Delete
if (isset($this->prefixLengthsPsr4[$first])) {
[498] Fix | Delete
$subPath = $class;
[499] Fix | Delete
12
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function