r86170 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86169‎ | r86170 | r86171 >
Date:01:29, 16 April 2011
Author:reedy
Status:ok
Tags:
Comment:
Fix whitespace issues at top of file
Modified paths:
  • /trunk/phase3/includes/media/IPTC.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/media/IPTC.php
@@ -5,24 +5,24 @@
66 */
77 class IPTC {
88
9 - /**
10 - * This takes the results of iptcparse() and puts it into a
11 - * form that can be handled by mediawiki. Generally called from
12 - * BitmapMetadataHandler::doApp13.
13 - *
14 - * @see http://www.iptc.org/std/IIM/4.1/specification/IIMV4.1.pdf
15 - *
16 - * @param String $data app13 block from jpeg containing iptc/iim data
17 - * @return Array iptc metadata array
18 - */
19 - static function parse( $rawData ) {
20 - $parsed = iptcparse( $rawData );
21 - $data = Array();
22 - if (!is_array($parsed)) {
23 - return $data;
24 - }
 9+ /**
 10+ * This takes the results of iptcparse() and puts it into a
 11+ * form that can be handled by mediawiki. Generally called from
 12+ * BitmapMetadataHandler::doApp13.
 13+ *
 14+ * @see http://www.iptc.org/std/IIM/4.1/specification/IIMV4.1.pdf
 15+ *
 16+ * @param String $data app13 block from jpeg containing iptc/iim data
 17+ * @return Array iptc metadata array
 18+ */
 19+ static function parse( $rawData ) {
 20+ $parsed = iptcparse( $rawData );
 21+ $data = Array();
 22+ if (!is_array($parsed)) {
 23+ return $data;
 24+ }
2525
26 - $c = '';
 26+ $c = '';
2727 //charset info contained in tag 1:90.
2828 if (isset($parsed['1#090']) && isset($parsed['1#090'][0])) {
2929 $c = self::getCharset($parsed['1#090'][0]);

Status & tagging log