芝麻web文件管理V1.00
编辑当前文件:/home/pulsehostuk9/www/portal.pulsehost.co.uk/vendor/respect/stringifier/src/Quoters/CodeQuoter.php
* * For the full copyright and license information, please view the "LICENSE.md" * file that was distributed with this source code. */ declare(strict_types=1); namespace Respect\Stringifier\Quoters; use Respect\Stringifier\Quoter; /** * Add "`" quotes around a string depending on its level. * * @author Henrique Moody
*/ final class CodeQuoter implements Quoter { /** * {@inheritdoc} */ public function quote(string $string, int $depth): string { if (0 === $depth) { return sprintf('`%s`', $string); } return $string; } }