Skip to content
This repository was archived by the owner on Feb 13, 2023. It is now read-only.

Commit f821c32

Browse files
committed
fix whitespace in templates
1 parent 312b744 commit f821c32

File tree

4 files changed

+20
-15
lines changed

4 files changed

+20
-15
lines changed

provisioning/templates/drupalvm-local.aliases.drushrc.php.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,15 @@
66
* @see example.aliases.drushrc.php.
77
*/
88

9-
{% macro alias(host, root) %}
9+
{% macro alias(host, root) -%}
1010
{%- if root not in _devtool_docroots %}
1111
$aliases['{{ host }}'] = array(
1212
'uri' => '{{ host }}',
1313
'root' => '{{ root }}',
1414
);
1515

1616
{% endif -%}
17-
{% endmacro %}
17+
{% endmacro -%}
1818

1919
{% block aliases -%}
2020
{%- if drupalvm_webserver == 'apache' -%}
@@ -33,4 +33,4 @@ $aliases['{{ host }}'] = array(
3333
{%- endfor -%}
3434
{%- endfor -%}
3535
{%- endif -%}
36-
{% endblock %}
36+
{%- endblock %}

provisioning/templates/drupalvm.aliases.drushrc.php.j2

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* @see example.aliases.drushrc.php.
77
*/
88

9-
{% macro alias(host, root) %}
9+
{% macro alias(host, root) -%}
1010
{%- if root not in _devtool_docroots %}
1111
$aliases['{{ host }}'] = array(
1212
'uri' => '{{ host }}',
@@ -20,7 +20,7 @@ $aliases['{{ host }}'] = array(
2020
);
2121

2222
{% endif -%}
23-
{% endmacro %}
23+
{% endmacro -%}
2424

2525
{% block aliases -%}
2626
{%- if drupalvm_webserver == 'apache' -%}
@@ -39,4 +39,4 @@ $aliases['{{ host }}'] = array(
3939
{%- endfor -%}
4040
{%- endfor -%}
4141
{%- endif -%}
42-
{% endblock %}
42+
{%- endblock %}

provisioning/templates/drupalvm.vcl.j2

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,15 @@ backend default {
1111
.port = "{{ varnish_default_backend_port }}";
1212
.first_byte_timeout = 300s;
1313
{% endblock %}
14+
1415
}
1516

1617
# Access control list for PURGE requests.
1718
acl purge {
1819
{% block acl_purge -%}
1920
"127.0.0.1";
2021
{% endblock %}
22+
2123
}
2224

2325
# Respond to incoming requests.
@@ -124,6 +126,7 @@ sub vcl_recv {
124126
}
125127
}
126128
{% endblock %}
129+
127130
}
128131

129132
# Set a header to track a cache HITs and MISSes.
@@ -141,6 +144,7 @@ sub vcl_deliver {
141144
set resp.http.X-Varnish-Cache = "MISS";
142145
}
143146
{% endblock %}
147+
144148
}
145149

146150
# Instruct Varnish what to do in the case of certain backend responses (beresp).
@@ -172,4 +176,5 @@ sub vcl_backend_response {
172176
# Allow items to remain in cache up to 6 hours past their cache expiration.
173177
set beresp.grace = 6h;
174178
{% endblock %}
179+
175180
}

provisioning/templates/nginx-vhost.conf.j2

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
1-
{% block server_redirect %}
2-
{% if item.server_name_redirect is defined %}
1+
{% block server_redirect -%}
2+
{% if item.server_name_redirect is defined -%}
33
server {
44
listen 80;
55
server_name {{ item.server_name_redirect }};
@@ -9,7 +9,7 @@ server {
99
{% endblock %}
1010

1111
server {
12-
{% block server_begin %}{% endblock %}
12+
{% block server_begin -%}{% endblock %}
1313

1414
{% block server_basic -%}
1515
listen {{ item.listen | default('80') }};
@@ -19,9 +19,9 @@ server {
1919
{% endblock %}
2020

2121
{% block server_logs -%}
22-
{% if item.access_log is defined -%}
22+
{%- if item.access_log is defined -%}
2323
access_log {{ item.access_log }};
24-
{% endif %}
24+
{%- endif -%}
2525
error_log {{ item.error_log|default('/var/log/nginx/error.log') }} info;
2626
{% endblock %}
2727

@@ -45,7 +45,7 @@ server {
4545
{% endblock %}
4646

4747
{% block location_drupal_legacy -%}
48-
{% if drupal_major_version == 8 %}
48+
{% if drupal_major_version == 8 -%}
4949
# Redirect common PHP files to their new locations.
5050
location ~ ^((?!.*(?:core)).*)/(install.php|rebuild.php) {
5151
return 301 $scheme://$host$1/core/$2$is_args$args;
@@ -128,9 +128,9 @@ server {
128128
gzip_min_length 512;
129129
{% endblock %}
130130

131-
{% block server_end %}{% endblock %}
131+
{% block server_end -%}{% endblock %}
132132

133-
{% if item.extra_parameters is defined %}
133+
{% if item.extra_parameters is defined -%}
134134
{{ item.extra_parameters|indent(4) }}
135-
{% endif %}
135+
{%- endif %}
136136
}

0 commit comments

Comments
 (0)