Commit a7a57faa authored by alexpott's avatar alexpott
Browse files

Issue #1965200 by ronan.orb: PHP Code and Code Style cleanup in utility.inc file.

parent ce600795
......@@ -8,12 +8,12 @@
/**
* Drupal-friendly var_export().
*
* @param $var
* @param mixed $var
* The variable to export.
* @param $prefix
* @param string $prefix
* A prefix that will be added at the beginning of every lines of the output.
*
* @return
* @return string
* The variable exported in a way compatible to Drupal's coding standards.
*/
function drupal_var_export($var, $prefix = '') {
......@@ -35,7 +35,6 @@ function drupal_var_export($var, $prefix = '') {
$output = $var ? 'TRUE' : 'FALSE';
}
elseif (is_string($var)) {
$line_safe_var = str_replace("\n", '\n', $var);
if (strpos($var, "\n") !== FALSE || strpos($var, "'") !== FALSE) {
// If the string contains a line break or a single quote, use the
// double quote export mode. Encode backslash and double quotes and
......
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