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 PowerComponents\LivewirePowerGrid\DataSource\Support; use PowerComponent..

Decoded Output download

<?php

namespace PowerComponents\LivewirePowerGrid\DataSource\Support;

use PowerComponents\LivewirePowerGrid\Components\Filters\FilterInputText;

trait InputOperators
{
    public function validateInputTextOptions(array $filter, string $field): string
    {
        /** @var array|string $selected */
        $selected = data_get($filter, "input_text_options.$field");

        if (is_array($selected)) {
            $selected = collect($selected)->values()[0];
        }

        return in_array(strval(
            $selected
        ), FilterInputText::getInputTextOperators()) ?
            strval($selected) : 'contains';
    }
}
 ?>

Did this file decode correctly?

Original Code

<?php

namespace PowerComponents\LivewirePowerGrid\DataSource\Support;

use PowerComponents\LivewirePowerGrid\Components\Filters\FilterInputText;

trait InputOperators
{
    public function validateInputTextOptions(array $filter, string $field): string
    {
        /** @var array|string $selected */
        $selected = data_get($filter, "input_text_options.$field");

        if (is_array($selected)) {
            $selected = collect($selected)->values()[0];
        }

        return in_array(strval(
            $selected
        ), FilterInputText::getInputTextOperators()) ?
            strval($selected) : 'contains';
    }
}

Function Calls

None

Variables

None

Stats

MD5 a6b0c106403c6283c18de92b1b100cee
Eval Count 0
Decode Time 111 ms