whitespace

This commit is contained in:
zotlabs 2017-06-05 15:57:43 -07:00
parent 2fea5ff889
commit 83f8f8ebb8

View file

@ -488,8 +488,10 @@ function guess_image_type($filename, $headers = '') {
$ext = pathinfo($filename, PATHINFO_EXTENSION);
$ph = photo_factory('');
$types = $ph->supportedTypes();
foreach ($types as $m=>$e){
if ($ext==$e) $type = $m;
foreach($types as $m => $e) {
if($ext === $e) {
$type = $m;
}
}
}
@ -501,7 +503,7 @@ function guess_image_type($filename, $headers = '') {
}
}
logger('Photo: guess_image_type: type='.$type, LOGGER_DEBUG);
logger('Photo: guess_image_type: type = ' . $type, LOGGER_DEBUG);
return $type;
}