diff options
author | mh <mh@immerda.ch> | 2014-04-14 22:54:24 +0200 |
---|---|---|
committer | mh <mh@immerda.ch> | 2014-04-14 22:54:24 +0200 |
commit | c52c48534d76b0a9c965784bd12eb1c1fccd94c6 (patch) | |
tree | fe7809e05cf0a222dc823ada82a87f0346d70d08 /templates/vhosts/partials/php_settings.erb | |
parent | df43214cdce1f474fa11ab1c1752fdd28a2ae19e (diff) |
cleanup identation of if then else, especially for the produced file
Diffstat (limited to 'templates/vhosts/partials/php_settings.erb')
-rw-r--r-- | templates/vhosts/partials/php_settings.erb | 25 |
1 files changed, 13 insertions, 12 deletions
diff --git a/templates/vhosts/partials/php_settings.erb b/templates/vhosts/partials/php_settings.erb index 7840987..fe55967 100644 --- a/templates/vhosts/partials/php_settings.erb +++ b/templates/vhosts/partials/php_settings.erb @@ -2,18 +2,19 @@ php_settings.reject{|k,v| v == :undef }.keys.sort.each do |key| dvalue = php_settings[key].to_s.downcase munged_value = if dvalue == 'true' - 'on' - elsif dvalue == 'false' - 'off' - elsif ['on','off'].include?(dvalue) - dvalue - else - php_settings[key] - end - if ['on','off' ].include?(munged_value) -%> + 'on' + elsif dvalue == 'false' + 'off' + elsif ['on','off'].include?(dvalue) + dvalue + else + php_settings[key] + end + + if ['on','off' ].include?(munged_value) -%> php_admin_flag <%= key %> <%= munged_value %> -<% else -%> +<% else -%> php_admin_value <%= key %> <%= munged_value %> -<% end -%> -<% end -%> +<% end -%> +<% end -%> <% end -%> |