Removed new lines and trailing whitespace

This commit is contained in:
Emmanuel Vella 2011-08-24 18:08:14 +02:00
parent 1db0ffb419
commit aa9793f290

View file

@ -68,15 +68,13 @@ class ModelToElasticaAutoTransformer implements ModelToElasticaTransformerInterf
$normalizeValue = function($v) {
if (is_int($v) || is_float($v) || is_bool($v) || is_null($v)) {
return $v;
}
elseif ($v instanceof \DateTime) {
} elseif ($v instanceof \DateTime) {
return (int) $v->format("U");
}
else {
} else {
return (string) $v;
}
};
if (is_array($value) || $value instanceof Traversable || $value instanceof ArrayAccess) {
$value = array_map($normalizeValue, is_array($value) ? $value : iterator_to_array($value));
} else {