Commit e1b9b441 authored by Steven Jones's avatar Steven Jones

Fix code style of provision.inc

parent 575db019
<?php <?php
// $Id$
/** /**
* @file * @file
* The provisioning framework API. * The provisioning framework API.
* *
* API functions that are used by the provisioning framework to provide structure to the provisioning modules. * API functions that are used by the provisioning framework to provide
* * structure to the provisioning modules.
* @see errorhandling
* @see logging
* @see sitedata
* @see provisionvalues
*/ */
drush_errors_on(); drush_errors_on();
...@@ -140,7 +134,7 @@ function provision_is_local_host($host) { ...@@ -140,7 +134,7 @@ function provision_is_local_host($host) {
* *
* this replicates hostname -f, which is not portable * this replicates hostname -f, which is not portable
*/ */
function provision_fqdn($host = null) { function provision_fqdn($host = NULL) {
if (is_null($host)) { if (is_null($host)) {
$host = php_uname('n'); $host = php_uname('n');
} }
...@@ -217,7 +211,7 @@ function _provision_recursive_delete($path) { ...@@ -217,7 +211,7 @@ function _provision_recursive_delete($path) {
if ($entry == '.' || $entry == '..') { if ($entry == '.' || $entry == '..') {
continue; continue;
} }
$entry_path = $path .'/'. $entry; $entry_path = $path . '/' . $entry;
$ret &= _provision_recursive_delete($entry_path); $ret &= _provision_recursive_delete($entry_path);
} }
$d->close(); $d->close();
...@@ -419,7 +413,7 @@ function _scrub_object($input) { ...@@ -419,7 +413,7 @@ function _scrub_object($input) {
* @see drush_backend_invoke_args() * @see drush_backend_invoke_args()
*/ */
function provision_backend_invoke($target, $command, $arguments = array(), $data = array(), $mode = 'GET') { function provision_backend_invoke($target, $command, $arguments = array(), $data = array(), $mode = 'GET') {
return drush_backend_invoke_args('@' . ltrim($target, '@') . ' ' . $command, $arguments, $data + array('root' => null, 'uri' => null), $mode); return drush_backend_invoke_args('@' . ltrim($target, '@') . ' ' . $command, $arguments, $data + array('root' => NULL, 'uri' => NULL), $mode);
} }
/** /**
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment