protected function getConfigurationBlock() {
    $line[] = '';
    $line[] = $this->blockStart;
    $line[] = '';

    if (!$this->configObject->has($this->configKey)) {
      throw new TaskException($this, "Configuration key '{$this->configKey}' not found on current Robo configuration.");
    }

    foreach ($this->configObject->get($this->configKey) as $variable => $values) {
      foreach ($values as $name => $value) {
        $line[] = $this->getStatement($variable, $name, $value);
      }
      $line[] = '';
    }

    $line[] = $this->blockEnd;
    $line[] = '';
    return implode($line, "\n");
  }
protected function getConfigurationBlock() {
    $line[] = '';
    $line[] = $this->blockStart;
    $line[] = '';

    if (!$this->configObject->has($this->configKey)) {
      throw new TaskException($this, "Configuration key '{$this->configKey}' not found on current Robo configuration.");
    }

    foreach ($this->configObject->get($this->configKey) as $variable => $values) {
      foreach ($values as $name => $value) {
        $line[] = $this->getStatement($variable, $name, $value);
      }
      $line[] = '';
    }

    $line[] = $this->blockEnd;
    $line[] = '';
    return implode($line, "\n");
  }
protected function getConfigurationBlock ( ) { $ line [ ] = '' ; $ line [ ] = $ this -> blockStart ; $ line [ ] = '' ; if ( ! $ this -> configObject -> has ( $ this -> configKey ) ) { throw new TaskException ( $ this , "Configuration key '{$this->configKey}' not found on current Robo configuration." ) ; } foreach ( $ this -> configObject -> get ( $ this -> configKey ) as $ variable => $ values ) { foreach ( $ values as $ name => $ value ) { $ line [ ] = $ this -> getStatement ( $ variable , $ name , $ value ) ; } $ line [ ] = '' ; } $ line [ ] = $ this -> blockEnd ; $ line [ ] = '' ; return implode ( $ line , "\n" ) ; }
Get configuration block.

@throws \Robo\Exception\TaskException
Thrown when configuration key does not exists.
Get configuration block .