src/Connector/Projects.php
private function buildProjectRequest(array $options): array
    {
        $data = [];

        // Valid options to check
        $validOptions = [
            'long_description',
            'private',
            'homepage',
            'trans_instructions',
            'tags',
            'maintainers',
            'team',
            'auto_join',
            'license',
            'fill_up_resources',
            'repository_url',
            'organization',
            'archived',
            'type',
        ];

        // Loop through the valid options and if we have them, add them to the request data
        foreach ($validOptions as $option) {
            if (isset($options[$option])) {
                $data[$option] = $options[$option];
            }
        }

        // Set the license if present
        if (isset($options['license'])) {
            $this->checkLicense($options['license']);
            $data['license'] = $options['license'];
        }

        return $data;
    }
private function buildProjectRequest(array $options): array
    {
        $data = [];

        // Valid options to check
        $validOptions = [
            'long_description',
            'private',
            'homepage',
            'trans_instructions',
            'tags',
            'maintainers',
            'team',
            'auto_join',
            'license',
            'fill_up_resources',
            'repository_url',
            'organization',
            'archived',
            'type',
        ];

        // Loop through the valid options and if we have them, add them to the request data
        foreach ($validOptions as $option) {
            if (isset($options[$option])) {
                $data[$option] = $options[$option];
            }
        }

        // Set the license if present
        if (isset($options['license'])) {
            $this->checkLicense($options['license']);
            $data['license'] = $options['license'];
        }

        return $data;
    }
private function buildProjectRequest ( array $ options ) : array { $ data = [ ] ; // Valid options to check $ validOptions = [ 'long_description' , 'private' , 'homepage' , 'trans_instructions' , 'tags' , 'maintainers' , 'team' , 'auto_join' , 'license' , 'fill_up_resources' , 'repository_url' , 'organization' , 'archived' , 'type' , ] ; // Loop through the valid options and if we have them, add them to the request data foreach ( $ validOptions as $ option ) { if ( isset ( $ options [ $ option ] ) ) { $ data [ $ option ] = $ options [ $ option ] ; } } // Set the license if present if ( isset ( $ options [ 'license' ] ) ) { $ this -> checkLicense ( $ options [ 'license' ] ) ; $ data [ 'license' ] = $ options [ 'license' ] ; } return $ data ; }
Build the data array to send with create and update requests.

@param array $options Optional additional params to send with the request

@return array
Build the data array to send with create and update requests .