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;
    }
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;
    }
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 ; }
Asks placeholders and saves answers.

@param boolean child

@return array
Asks placeholders and saves answers .