function _configuration_linetrim in Configuration Management 7
Helper function to eliminate whitespace differences in code.
1 call to _configuration_linetrim()
- configuration_get_signature in ./
configuration.export.inc - Wrapper around configuration_get_[storage] to return an md5hash of a normalized defaults/normal object array. Can be used to compare normal/default states of a module's component.
File
- ./
configuration.export.inc, line 734
Code
function _configuration_linetrim($code) {
$code = explode("\n", $code);
foreach ($code as $k => $line) {
$code[$k] = trim($line);
}
return implode("\n", $code);
}