summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorHerman van Rink2017-02-16 14:38:31 (GMT)
committerHerman van Rink2017-02-16 14:38:31 (GMT)
commit71a4de731645015ddaa244828dbcd2cc9ac829c8 (patch)
tree962b7d95a50810a8600382a775aeb579dcda5306
parent966277cc9e3a8aab39dd4f5a774cb5b7d2b8b726 (diff)
Issue #2853184: Fix whitespace2853184-template-vars-alter
-rw-r--r--Provision/Config.php2
-rw-r--r--provision.api.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/Provision/Config.php b/Provision/Config.php
index 1bc3fe7..ea77e25 100644
--- a/Provision/Config.php
+++ b/Provision/Config.php
@@ -167,7 +167,7 @@ class Provision_Config {
* array.
*/
private function render_template($template, $variables) {
-
+
// Allow modules to alter the variables before writing to the template.
// @see hook_provision_config_variables_alter()
drush_command_invoke_all_ref('provision_config_variables_alter', $variables, $template, $this);
diff --git a/provision.api.php b/provision.api.php
index fc552e8..89f8eba 100644
--- a/provision.api.php
+++ b/provision.api.php
@@ -231,10 +231,10 @@ function hook_provision_config_load_templates_alter(&$templates, $config) {
* @see hook_provision_config_load_templates_alter()
*/
function hook_provision_config_variables_alter(&$variables, $template, $config) {
-
+
// If this is the vhost template and the http service is Docker...
if (is_a($config, 'Provision_Config_Apache_Site') && is_a(d()->platform->service('http'), 'Provision_Service_http_apache_docker')) {
-
+
// Force the listen port to be 80.
$variables['http_port'] = '80';
}