Find this useful? Enter your email to receive occasional updates for securing PHP code.

Signing you up...

Thank you for signing up!

PHP Decode

<?php declare(strict_types=1); namespace TestApp\Mailer; use Cake\Mailer\Message; /** ..

Decoded Output download

<?php
declare(strict_types=1);

namespace TestApp\Mailer;

use Cake\Mailer\Message;

/**
 * Help to test Message
 */
class TestMessage extends Message
{
    /**
     * Wrap to protected method
     *
     * @return array
     */
    public function fmtAddress(array $address): array
    {
        return parent::formatAddress($address);
    }

    /**
     * Get the boundary attribute
     */
    public function getBoundary(): ?string
    {
        return $this->boundary;
    }

    /**
     * Encode to protected method
     */
    public function encode(string $text): string
    {
        return parent::encodeForHeader($text);
    }

    /**
     * Decode to protected method
     */
    public function decode(string $text): string
    {
        return parent::decodeForHeader($text);
    }

    /**
     * Wrap to protected method
     *
     * @return array
     */
    public function doWrap(string $text, int $length = Message::LINE_LENGTH_MUST): array
    {
        return $this->wrap($text, $length);
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php
declare(strict_types=1);

namespace TestApp\Mailer;

use Cake\Mailer\Message;

/**
 * Help to test Message
 */
class TestMessage extends Message
{
    /**
     * Wrap to protected method
     *
     * @return array
     */
    public function fmtAddress(array $address): array
    {
        return parent::formatAddress($address);
    }

    /**
     * Get the boundary attribute
     */
    public function getBoundary(): ?string
    {
        return $this->boundary;
    }

    /**
     * Encode to protected method
     */
    public function encode(string $text): string
    {
        return parent::encodeForHeader($text);
    }

    /**
     * Decode to protected method
     */
    public function decode(string $text): string
    {
        return parent::decodeForHeader($text);
    }

    /**
     * Wrap to protected method
     *
     * @return array
     */
    public function doWrap(string $text, int $length = Message::LINE_LENGTH_MUST): array
    {
        return $this->wrap($text, $length);
    }
}

Function Calls

None

Variables

None

Stats

MD5 4a46ed9426ba13b475b61b8462edf565
Eval Count 0
Decode Time 104 ms