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\Rules; use App\Values\SmartPlaylistRuleGroupCollection; use Illumina..

Decoded Output download

<?php

namespace App\Rules;

use App\Values\SmartPlaylistRuleGroupCollection;
use Illuminate\Contracts\Validation\Rule;
use Illuminate\Support\Arr;

class ValidSmartPlaylistRulePayload implements Rule
{
    public function passes($attribute, $value): bool
    {
        return (bool) attempt(static fn () => SmartPlaylistRuleGroupCollection::create(Arr::wrap($value)));
    }

    public function message(): string
    {
        return 'Invalid smart playlist rules';
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace App\Rules;

use App\Values\SmartPlaylistRuleGroupCollection;
use Illuminate\Contracts\Validation\Rule;
use Illuminate\Support\Arr;

class ValidSmartPlaylistRulePayload implements Rule
{
    public function passes($attribute, $value): bool
    {
        return (bool) attempt(static fn () => SmartPlaylistRuleGroupCollection::create(Arr::wrap($value)));
    }

    public function message(): string
    {
        return 'Invalid smart playlist rules';
    }
}

Function Calls

None

Variables

None

Stats

MD5 7d92d2af4edabdce8c9e5af529955b85
Eval Count 0
Decode Time 86 ms