original_string: 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;
          }
      }
code: 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;
          }
      }
code_tokens: 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 ; } }
docstring: Adds attributes given from command line to the json
  
  @param array $json array of the json in magazine.json
docstring_tokens: Adds attributes given from command line to the json