src/Meta/Meta.php
public function build($fields)
    {
        $data = [];

        if (Cuztom::isArray($fields)) {
            foreach ($fields as $type => $args) {
                $args = Cuztom::merge($args, [
                    'metaBox'  => $this,
                    'metaType' => $this->metaType,
                    'object'   => $this->object,
                    'parent'   => $this->id,
                ]);

                $field = Field::create($args, $this->values);

                $data[$field->id] = $field;
            }
        }

        return $data;
    }
public function build($fields)
    {
        $data = [];

        if (Cuztom::isArray($fields)) {
            foreach ($fields as $type => $args) {
                $args = Cuztom::merge($args, [
                    'metaBox'  => $this,
                    'metaType' => $this->metaType,
                    'object'   => $this->object,
                    'parent'   => $this->id,
                ]);

                $field = Field::create($args, $this->values);

                $data[$field->id] = $field;
            }
        }

        return $data;
    }
public function build ( $ fields ) { $ data = [ ] ; if ( Cuztom :: isArray ( $ fields ) ) { foreach ( $ fields as $ type => $ args ) { $ args = Cuztom :: merge ( $ args , [ 'metaBox' => $ this , 'metaType' => $ this -> metaType , 'object' => $ this -> object , 'parent' => $ this -> id , ] ) ; $ field = Field :: create ( $ args , $ this -> values ) ; $ data [ $ field -> id ] = $ field ; } } return $ data ; }
This method builds the complete array with the right key => value pairs.

@param  array $fields
@return array
This method builds the complete array with the right key = > value pairs .