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 namespace Tests\Traits; use Illuminate\Support\Facades\File; trait SandboxesTests..

Decoded Output download

<?php

namespace Tests\Traits;

use Illuminate\Support\Facades\File;

trait SandboxesTests
{
    private static function createSandbox(): void
    {
        config(['koel.album_cover_dir' => 'sandbox/img/covers/']);
        config(['koel.artist_image_dir' => 'sandbox/img/artists/']);

        @mkdir(public_path(config('koel.album_cover_dir')), 0755, true);
        @mkdir(public_path(config('koel.artist_image_dir')), 0755, true);
    }

    private static function destroySandbox(): void
    {
        File::deleteDirectory(public_path('sandbox'));
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace Tests\Traits;

use Illuminate\Support\Facades\File;

trait SandboxesTests
{
    private static function createSandbox(): void
    {
        config(['koel.album_cover_dir' => 'sandbox/img/covers/']);
        config(['koel.artist_image_dir' => 'sandbox/img/artists/']);

        @mkdir(public_path(config('koel.album_cover_dir')), 0755, true);
        @mkdir(public_path(config('koel.artist_image_dir')), 0755, true);
    }

    private static function destroySandbox(): void
    {
        File::deleteDirectory(public_path('sandbox'));
    }
}

Function Calls

None

Variables

None

Stats

MD5 8a3158a8c8db887f675a438c06263acc
Eval Count 0
Decode Time 85 ms