src/Magazine/Magazine.php
private function amendDynamicAttributesToJson(array &$json) {
        if (!is_null($this->package_version)) {
            $json['version'] = array();
            $json['version']['release'] = $this->package_version;
        }
        if (!is_null($this->package_name)) {
            $json['name'] = $this->package_name;
        }
    }
private function amendDynamicAttributesToJson(array &$json) {
        if (!is_null($this->package_version)) {
            $json['version'] = array();
            $json['version']['release'] = $this->package_version;
        }
        if (!is_null($this->package_name)) {
            $json['name'] = $this->package_name;
        }
    }
private function amendDynamicAttributesToJson ( array & $ json ) { if ( ! is_null ( $ this -> package_version ) ) { $ json [ 'version' ] = array ( ) ; $ json [ 'version' ] [ 'release' ] = $ this -> package_version ; } if ( ! is_null ( $ this -> package_name ) ) { $ json [ 'name' ] = $ this -> package_name ; } }
Adds attributes given from command line to the json

@param array $json array of the json in magazine.json
Adds attributes given from command line to the json