From: Michael J. Rubinsky Date: Sat, 1 Aug 2009 20:46:53 +0000 (-0400) Subject: Some cs fixes as I come across them...stil LOTS of these left over X-Git-Url: https://git.internetallee.de/?a=commitdiff_plain;h=08db1db5ea79d8056fb9dcef7edb67d9174853a7;p=horde.git Some cs fixes as I come across them...stil LOTS of these left over from the original Exifer code. --- diff --git a/framework/Image/lib/Horde/Image/Exif/Bundled.php b/framework/Image/lib/Horde/Image/Exif/Bundled.php index 933ec1ba9..981890678 100644 --- a/framework/Image/lib/Horde/Image/Exif/Bundled.php +++ b/framework/Image/lib/Horde/Image/Exif/Bundled.php @@ -455,8 +455,8 @@ class Horde_Image_Exif_Bundled extends Horde_Image_Exif_Base case '8298': $tag = 'Copyright'; break; // text string up to 999 bytes long case '8649': $tag = 'PhotoshopSettings'; break; // ?? case '8825': $tag = 'GPSInfoOffset'; break; - //case '9286': $tag = 'UserCommentOld'; break; // ?? case '8769': $tag = 'ExifOffset'; break; // positive integer + // used by Exif SubIFD 'Image Tags' case '829a': $tag = 'ExposureTime'; break; // seconds or fraction of seconds 1/x case '829d': $tag = 'FNumber'; break; // positive rational number @@ -660,6 +660,7 @@ class Horde_Image_Exif_Bundled extends Horde_Image_Exif_Base if ($tag == '9000' || $tag == 'a000' || $tag == '0002') { $data = sprintf(_("version %d"), $data / 100); } + } else { $data = bin2hex($data); if ($intel == 1) $data = Horde_Image_Exif::intel2Moto($data); @@ -674,7 +675,7 @@ class Horde_Image_Exif_Bundled extends Horde_Image_Exif_Base * @param $size * @return unknown_type */ - static protected function _lookupType(&$type,&$size) { + static protected function _lookupType(&$type, &$size) { switch ($type) { case '0001': $type = 'UBYTE'; $size=1; break; case '0002': $type = 'ASCII'; $size=1; break;