src/Utility/Search.php
protected function handleMagicValue($value)
    {
        switch (gettype($value)) {
            case 'string':
                $value = (new MagicValue($value, $this->user))->get();
                break;

            case 'array':
                foreach ($value as $key => $val) {
                    $value[$key] = (new MagicValue($val, $this->user))->get();
                }
                break;
        }

        return $value;
    }
protected function handleMagicValue($value)
    {
        switch (gettype($value)) {
            case 'string':
                $value = (new MagicValue($value, $this->user))->get();
                break;

            case 'array':
                foreach ($value as $key => $val) {
                    $value[$key] = (new MagicValue($val, $this->user))->get();
                }
                break;
        }

        return $value;
    }
protected function handleMagicValue ( $ value ) { switch ( gettype ( $ value ) ) { case 'string' : $ value = ( new MagicValue ( $ value , $ this -> user ) ) -> get ( ) ; break ; case 'array' : foreach ( $ value as $ key => $ val ) { $ value [ $ key ] = ( new MagicValue ( $ val , $ this -> user ) ) -> get ( ) ; } break ; } return $ value ; }
Magic value handler.

@param mixed $value Field value
@return mixed
Magic value handler .