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 App\Http\Requests\API; use App\Repositories\SongRepository; use Illumina..

Decoded Output download

<?php

namespace App\Http\Requests\API;

use App\Repositories\SongRepository;
use Illuminate\Validation\Rule;

/**
 * @property-read string|null $sort
 * @property-read string $order
 * @property-read int $limit
 */
class FetchSongsForQueueRequest extends Request
{
    /** @return array<mixed> */
    public function rules(): array
    {
        return [
            'order' => ['required', Rule::in('asc', 'desc', 'rand')],
            'limit' => 'required|integer|min:1',
            'sort' => [
                'required_unless:order,rand',
                Rule::in(array_keys(SongRepository::SORT_COLUMNS_NORMALIZE_MAP)),
            ],
        ];
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Http\Requests\API;

use App\Repositories\SongRepository;
use Illuminate\Validation\Rule;

/**
 * @property-read string|null $sort
 * @property-read string $order
 * @property-read int $limit
 */
class FetchSongsForQueueRequest extends Request
{
    /** @return array<mixed> */
    public function rules(): array
    {
        return [
            'order' => ['required', Rule::in('asc', 'desc', 'rand')],
            'limit' => 'required|integer|min:1',
            'sort' => [
                'required_unless:order,rand',
                Rule::in(array_keys(SongRepository::SORT_COLUMNS_NORMALIZE_MAP)),
            ],
        ];
    }
}

Function Calls

None

Variables

None

Stats

MD5 e5f7ccdbbc74a68d2520661920c77d33
Eval Count 0
Decode Time 75 ms