aboutsummaryrefslogtreecommitdiffstats
path: root/include/photo
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-05 15:57:43 -0700
committerzotlabs <mike@macgirvin.com>2017-06-05 15:57:43 -0700
commit83f8f8ebb8bc7e6cbbc3b71f664706e30dfe6c1c (patch)
treecb6aa93fe3ecfcf125799882e5532309bbcd0b1f /include/photo
parent2fea5ff8894c3f1f274a3ce67b2c023e39fdab6c (diff)
downloadvolse-hubzilla-83f8f8ebb8bc7e6cbbc3b71f664706e30dfe6c1c.tar.gz
volse-hubzilla-83f8f8ebb8bc7e6cbbc3b71f664706e30dfe6c1c.tar.bz2
volse-hubzilla-83f8f8ebb8bc7e6cbbc3b71f664706e30dfe6c1c.zip
whitespace
Diffstat (limited to 'include/photo')
-rw-r--r--include/photo/photo_driver.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/photo/photo_driver.php b/include/photo/photo_driver.php
index 0bf09e4d8..eb61578e1 100644
--- a/include/photo/photo_driver.php
+++ b/include/photo/photo_driver.php
@@ -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;
}