aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorzotlabs <mike@macgirvin.com>2017-06-05 15:57:43 -0700
committerMario Vavti <mario@mariovavti.com>2017-06-07 09:36:53 +0200
commitf5b593ff42af57bed4062e86a8b8c46d0eb36e30 (patch)
tree8a44b2e208028b429595dd647a26d3b9f7bec694 /include
parentcdfd42053d4920bc2c7c508d512ad3c7033d8095 (diff)
downloadvolse-hubzilla-f5b593ff42af57bed4062e86a8b8c46d0eb36e30.tar.gz
volse-hubzilla-f5b593ff42af57bed4062e86a8b8c46d0eb36e30.tar.bz2
volse-hubzilla-f5b593ff42af57bed4062e86a8b8c46d0eb36e30.zip
whitespace
Diffstat (limited to 'include')
-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;
}