protected function parseData($data)
    {
        $hash = \hash('sha256', microtime(true));
        $value = $data;
        $filter = null;

        if (\is_array($data)) {
            $value = $this->resolveValue($data, $hash);
            $filter = $data['filter'] ?? null;
        }

        if ($value === $hash) {
            $value = $data['default'] ?? null;
        }

        if (! \is_null($filter)) {
            $value = $this->filterValue($value, $filter);
        }

        return $value;
    }
protected function parseData($data)
    {
        $hash = \hash('sha256', microtime(true));
        $value = $data;
        $filter = null;

        if (\is_array($data)) {
            $value = $this->resolveValue($data, $hash);
            $filter = $data['filter'] ?? null;
        }

        if ($value === $hash) {
            $value = $data['default'] ?? null;
        }

        if (! \is_null($filter)) {
            $value = $this->filterValue($value, $filter);
        }

        return $value;
    }
protected function parseData ( $ data ) { $ hash = \ hash ( 'sha256' , microtime ( true ) ) ; $ value = $ data ; $ filter = null ; if ( \ is_array ( $ data ) ) { $ value = $ this -> resolveValue ( $ data , $ hash ) ; $ filter = $ data [ 'filter' ] ?? null ; } if ( $ value === $ hash ) { $ value = $ data [ 'default' ] ?? null ; } if ( ! \ is_null ( $ filter ) ) { $ value = $ this -> filterValue ( $ value , $ filter ) ; } return $ value ; }
Parse single data.

@param  mixed  $data

@return mixed
Parse single data .