original_string: public function askForReplacements($child)
      {
          $replacements = [];
  
          if ($child) {
              $this->placeholders = array_merge($this->placeholders, $this->childPlaceholders);
          }
  
          foreach ($this->placeholders as $placeholder => $data) {
              $input = $this->climate->input($data['message']);
  
              $input->defaultTo($data['value']);
  
              $replacements[$placeholder] = addslashes($input->prompt());
          }
  
          return $replacements;
      }
code: public function askForReplacements($child)
      {
          $replacements = [];
  
          if ($child) {
              $this->placeholders = array_merge($this->placeholders, $this->childPlaceholders);
          }
  
          foreach ($this->placeholders as $placeholder => $data) {
              $input = $this->climate->input($data['message']);
  
              $input->defaultTo($data['value']);
  
              $replacements[$placeholder] = addslashes($input->prompt());
          }
  
          return $replacements;
      }
code_tokens: public function askForReplacements ( $ child ) { $ replacements = [ ] ; if ( $ child ) { $ this -> placeholders = array_merge ( $ this -> placeholders , $ this -> childPlaceholders ) ; } foreach ( $ this -> placeholders as $ placeholder => $ data ) { $ input = $ this -> climate -> input ( $ data [ 'message' ] ) ; $ input -> defaultTo ( $ data [ 'value' ] ) ; $ replacements [ $ placeholder ] = addslashes ( $ input -> prompt ( ) ) ; } return $ replacements ; }
docstring: Asks placeholders and saves answers.
  
  @param boolean child
  
  @return array
docstring_tokens: Asks placeholders and saves answers .