protected function getFields(): array
    {
        $fields = $this->getConfig('fields');
        $defaults = [
            'decrypt' => false,
        ];
        $result = [];
        foreach ($fields as $field => $values) {
            if (is_numeric($field)) {
                $field = $values;
                $values = [];
            }
            $values = array_merge($defaults, $values);
            $result[$field] = $values;
        }

        return $result;
    }
protected function getFields(): array
    {
        $fields = $this->getConfig('fields');
        $defaults = [
            'decrypt' => false,
        ];
        $result = [];
        foreach ($fields as $field => $values) {
            if (is_numeric($field)) {
                $field = $values;
                $values = [];
            }
            $values = array_merge($defaults, $values);
            $result[$field] = $values;
        }

        return $result;
    }
protected function getFields ( ) : array { $ fields = $ this -> getConfig ( 'fields' ) ; $ defaults = [ 'decrypt' => false , ] ; $ result = [ ] ; foreach ( $ fields as $ field => $ values ) { if ( is_numeric ( $ field ) ) { $ field = $ values ; $ values = [ ] ; } $ values = array_merge ( $ defaults , $ values ) ; $ result [ $ field ] = $ values ; } return $ result ; }
Returns a processed list of fields with applied default values.

@return mixed[] Fields array.
Returns a processed list of fields with applied default values .