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); /** * Passbolt ~ Open source password manager for teams ..
Decoded Output download
<?php
declare(strict_types=1);
/**
* Passbolt ~ Open source password manager for teams
* Copyright (c) Passbolt SA (https://www.passbolt.com)
*
* Licensed under GNU Affero General Public License version 3 of the or any later version.
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Passbolt SA (https://www.passbolt.com)
* @license https://opensource.org/licenses/AGPL-3.0 AGPL License
* @link https://www.passbolt.com Passbolt(tm)
* @since 3.10.0
*/
namespace App\Test\TestCase;
use App\Application;
use App\Middleware\ApiVersionMiddleware;
use App\Middleware\ContainerInjectorMiddleware;
use App\Middleware\ContentSecurityPolicyMiddleware;
use App\Middleware\CsrfProtectionMiddleware;
use App\Middleware\GpgAuthHeadersMiddleware;
use App\Middleware\HttpProxyMiddleware;
use App\Middleware\SessionAuthPreventDeletedOrDisabledUsersMiddleware;
use App\Middleware\SessionPreventExtensionMiddleware;
use App\Middleware\SslForceMiddleware;
use App\Middleware\UuidParserMiddleware;
use App\Middleware\ValidCookieNameMiddleware;
use Authentication\Middleware\AuthenticationMiddleware;
use Cake\Error\Middleware\ErrorHandlerMiddleware;
use Cake\Http\Middleware\BodyParserMiddleware;
use Cake\Http\MiddlewareQueue;
use Cake\Routing\Middleware\AssetMiddleware;
use Cake\Routing\Middleware\RoutingMiddleware;
use Cake\TestSuite\TestCase;
/**
* ApplicationTest class
*/
class ApplicationTest extends TestCase
{
/**
* @return void
*/
public function testApplication_Middleware()
{
$app = new Application('');
$middleware = new MiddlewareQueue();
$middleware = $app->middleware($middleware);
$middlewareClassesInOrder = [
ContainerInjectorMiddleware::class,
ValidCookieNameMiddleware::class,
ContentSecurityPolicyMiddleware::class,
ErrorHandlerMiddleware::class,
SslForceMiddleware::class,
AssetMiddleware::class,
RoutingMiddleware::class,
UuidParserMiddleware::class,
ApiVersionMiddleware::class,
SessionPreventExtensionMiddleware::class,
BodyParserMiddleware::class,
SessionAuthPreventDeletedOrDisabledUsersMiddleware::class,
AuthenticationMiddleware::class,
GpgAuthHeadersMiddleware::class,
CsrfProtectionMiddleware::class,
HttpProxyMiddleware::class,
];
foreach ($middlewareClassesInOrder as $midClass) {
$this->assertInstanceOf($midClass, $middleware->current());
$middleware->next();
}
}
}
?>
Did this file decode correctly?
Original Code
<?php
declare(strict_types=1);
/**
* Passbolt ~ Open source password manager for teams
* Copyright (c) Passbolt SA (https://www.passbolt.com)
*
* Licensed under GNU Affero General Public License version 3 of the or any later version.
* For full copyright and license information, please see the LICENSE.txt
* Redistributions of files must retain the above copyright notice.
*
* @copyright Copyright (c) Passbolt SA (https://www.passbolt.com)
* @license https://opensource.org/licenses/AGPL-3.0 AGPL License
* @link https://www.passbolt.com Passbolt(tm)
* @since 3.10.0
*/
namespace App\Test\TestCase;
use App\Application;
use App\Middleware\ApiVersionMiddleware;
use App\Middleware\ContainerInjectorMiddleware;
use App\Middleware\ContentSecurityPolicyMiddleware;
use App\Middleware\CsrfProtectionMiddleware;
use App\Middleware\GpgAuthHeadersMiddleware;
use App\Middleware\HttpProxyMiddleware;
use App\Middleware\SessionAuthPreventDeletedOrDisabledUsersMiddleware;
use App\Middleware\SessionPreventExtensionMiddleware;
use App\Middleware\SslForceMiddleware;
use App\Middleware\UuidParserMiddleware;
use App\Middleware\ValidCookieNameMiddleware;
use Authentication\Middleware\AuthenticationMiddleware;
use Cake\Error\Middleware\ErrorHandlerMiddleware;
use Cake\Http\Middleware\BodyParserMiddleware;
use Cake\Http\MiddlewareQueue;
use Cake\Routing\Middleware\AssetMiddleware;
use Cake\Routing\Middleware\RoutingMiddleware;
use Cake\TestSuite\TestCase;
/**
* ApplicationTest class
*/
class ApplicationTest extends TestCase
{
/**
* @return void
*/
public function testApplication_Middleware()
{
$app = new Application('');
$middleware = new MiddlewareQueue();
$middleware = $app->middleware($middleware);
$middlewareClassesInOrder = [
ContainerInjectorMiddleware::class,
ValidCookieNameMiddleware::class,
ContentSecurityPolicyMiddleware::class,
ErrorHandlerMiddleware::class,
SslForceMiddleware::class,
AssetMiddleware::class,
RoutingMiddleware::class,
UuidParserMiddleware::class,
ApiVersionMiddleware::class,
SessionPreventExtensionMiddleware::class,
BodyParserMiddleware::class,
SessionAuthPreventDeletedOrDisabledUsersMiddleware::class,
AuthenticationMiddleware::class,
GpgAuthHeadersMiddleware::class,
CsrfProtectionMiddleware::class,
HttpProxyMiddleware::class,
];
foreach ($middlewareClassesInOrder as $midClass) {
$this->assertInstanceOf($midClass, $middleware->current());
$middleware->next();
}
}
}
Function Calls
None |
Stats
MD5 | b9d3a3d323d1e2164810efcccd1450d7 |
Eval Count | 0 |
Decode Time | 100 ms |