Spamworldpro Mini Shell
Spamworldpro


Server : Apache
System : Linux server2.corals.io 4.18.0-348.2.1.el8_5.x86_64 #1 SMP Mon Nov 15 09:17:08 EST 2021 x86_64
User : corals ( 1002)
PHP Version : 7.4.33
Disable Function : exec,passthru,shell_exec,system
Directory :  /home/corals/rentpix.corals.io/vendor/zbateson/mail-mime-parser/src/Header/Part/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Current File : /home/corals/rentpix.corals.io/vendor/zbateson/mail-mime-parser/src/Header/Part/Token.php
<?php
/**
 * This file is part of the ZBateson\MailMimeParser project.
 *
 * @license http://opensource.org/licenses/bsd-license.php BSD
 */

namespace ZBateson\MailMimeParser\Header\Part;

use ZBateson\MbWrapper\MbWrapper;

/**
 * Holds a string value token that will require additional processing by a
 * consumer prior to returning to a client.
 *
 * A Token is meant to hold a value for further processing -- for instance when
 * consuming an address list header (like From or To) -- before it's known what
 * type of IHeaderPart it is (could be an email address, could be a name, or
 * could be a group.)
 *
 * @author Zaahid Bateson
 */
class Token extends HeaderPart
{
    /**
     * Initializes a token.
     *
     * @param string $value the token's value
     */
    public function __construct(MbWrapper $charsetConverter, $value)
    {
        parent::__construct($charsetConverter);
        $this->value = $value;
    }

    /**
     * Returns true if the value of the token is equal to a single space.
     *
     * @return bool
     */
    public function isSpace()
    {
        return (\preg_match('/^\s+$/', $this->value) === 1);
    }

    /**
     * Returns true if the value is a space.
     *
     */
    public function ignoreSpacesBefore() : bool
    {
        return $this->isSpace();
    }

    /**
     * Returns true if the value is a space.
     *
     */
    public function ignoreSpacesAfter() : bool
    {
        return $this->isSpace();
    }
}

Spamworldpro Mini