src/SettingsProcessor.php
private function getStatement($variable, $name, $value) {
    $output = var_export($value, TRUE);
    if (is_array($value)) {
      $output = str_replace(' ', '', $output);
      $output = str_replace("\n", "", $output);
      $output = str_replace("=>", " => ", $output);
      $output = str_replace(",)", ")", $output);
      $output = str_replace("),", "), ", $output);
    }
    return sprintf('$%s["%s"] = %s;', $variable, $name, $output);
  }
private function getStatement($variable, $name, $value) {
    $output = var_export($value, TRUE);
    if (is_array($value)) {
      $output = str_replace(' ', '', $output);
      $output = str_replace("\n", "", $output);
      $output = str_replace("=>", " => ", $output);
      $output = str_replace(",)", ")", $output);
      $output = str_replace("),", "), ", $output);
    }
    return sprintf('$%s["%s"] = %s;', $variable, $name, $output);
  }
private function getStatement ( $ variable , $ name , $ value ) { $ output = var_export ( $ value , TRUE ) ; if ( is_array ( $ value ) ) { $ output = str_replace ( ' ' , '' , $ output ) ; $ output = str_replace ( "\n" , "" , $ output ) ; $ output = str_replace ( "=>" , " => " , $ output ) ; $ output = str_replace ( ",)" , ")" , $ output ) ; $ output = str_replace ( ")," , "), " , $ output ) ; } return sprintf ( '$%s["%s"] = %s;' , $ variable , $ name , $ output ) ; }
Get variable assignment statement.

@param string $variable
Variable name.
@param string $name
Setting name.
@param mixed $value
Setting value.

@return string
Full statement.
Get variable assignment statement .