src/SettingsProcessor.php
public function process($settings_file) {
    $output[] = $this->getContent($settings_file);
    $output[] = '';
    $output[] = self::BLOCK_START;
    $output[] = '';

    foreach ($this->config->get(self::CONFIG_KEY) as $variable => $settings) {
      foreach ($settings as $name => $value) {
        $output[] = $this->getStatement($variable, $name, $value);
      }
      $output[] = '';
    }

    $output[] = self::BLOCK_END;
    return implode($output, "\n");
  }
public function process($settings_file) {
    $output[] = $this->getContent($settings_file);
    $output[] = '';
    $output[] = self::BLOCK_START;
    $output[] = '';

    foreach ($this->config->get(self::CONFIG_KEY) as $variable => $settings) {
      foreach ($settings as $name => $value) {
        $output[] = $this->getStatement($variable, $name, $value);
      }
      $output[] = '';
    }

    $output[] = self::BLOCK_END;
    return implode($output, "\n");
  }
public function process ( $ settings_file ) { $ output [ ] = $ this -> getContent ( $ settings_file ) ; $ output [ ] = '' ; $ output [ ] = self :: BLOCK_START ; $ output [ ] = '' ; foreach ( $ this -> config -> get ( self :: CONFIG_KEY ) as $ variable => $ settings ) { foreach ( $ settings as $ name => $ value ) { $ output [ ] = $ this -> getStatement ( $ variable , $ name , $ value ) ; } $ output [ ] = '' ; } $ output [ ] = self :: BLOCK_END ; return implode ( $ output , "\n" ) ; }
Process settings file.

@param string $settings_file
Full path to settings file to be processed, including its name.

@return string
Processed setting file.
Process settings file .