File tree Expand file tree Collapse file tree 5 files changed +23
-11
lines changed Expand file tree Collapse file tree 5 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 11language : php
22
3- php :
4- - 5.3
5- - 5.4
6- - 5.5
7- - 5.6
3+ env :
4+ global :
5+ - DEPENDENCIES=no
86
97matrix :
10- allow_failures :
8+ include :
9+ - php : 5.3
10+ dist : precise
11+ - php : 5.4
12+ dist : precise
1113 - php : 5.6
14+ - php : 7.0
15+ - php : 7.1
16+ - php : nightly
17+ allow_failures :
18+ - php : 7.2
19+ - php : nightly
1220
1321script :
1422 - mkdir -p build/logs
Original file line number Diff line number Diff line change 1- # [ PHPExif v0.6.1] ( http://github.com/Miljar /php-exif ) [ ![ Build Status] ( https://travis-ci.org/Miljar /php-exif.png?branch=master )] ( https://travis-ci.org/Miljar /php-exif ) [ ![ Coverage Status] ( https://coveralls.io/repos/Miljar /php-exif/badge.svg?branch=master )] ( https://coveralls.io/r/Miljar /php-exif?branch=master ) [ ![ Code Climate] ( https://codeclimate.com/github/Miljar /php-exif/badges/gpa.svg )] ( https://codeclimate.com/github/Miljar /php-exif )
1+ # [ PHPExif v0.6.1] ( http://github.com/PHPExif /php-exif ) [ ![ Build Status] ( https://travis-ci.org/PHPExif /php-exif.png?branch=master )] ( https://travis-ci.org/PHPExif /php-exif ) [ ![ Coverage Status] ( https://coveralls.io/repos/PHPExif /php-exif/badge.svg?branch=master )] ( https://coveralls.io/r/PHPExif /php-exif?branch=master ) [ ![ Code Climate] ( https://codeclimate.com/github/PHPExif /php-exif/badges/gpa.svg )] ( https://codeclimate.com/github/PHPExif /php-exif )
22
33PHPExif is a library which gives you easy access to the EXIF meta-data of an image.
44
@@ -12,7 +12,7 @@ PHPExif serves as a wrapper around some native or CLI tools which access this EX
1212## Installation (composer)
1313
1414``` json
15- " miljar/php-exif" : " ~0.6.0 "
15+ composer require miljar/php-exif
1616```
1717
1818
Original file line number Diff line number Diff line change @@ -249,11 +249,14 @@ protected function isFieldKnown(&$field)
249249 /**
250250 * Extract GPS coordinates from components array
251251 *
252- * @param array $components
252+ * @param array|string $components
253253 * @return float
254254 */
255- protected function extractGPSCoordinate (array $ components )
255+ protected function extractGPSCoordinate ($ components )
256256 {
257+ if (!is_array ($ components )) {
258+ $ components = array ($ components );
259+ }
257260 $ components = array_map (array ($ this , 'normalizeComponent ' ), $ components );
258261
259262 if (count ($ components ) > 2 ) {
Original file line number Diff line number Diff line change @@ -611,7 +611,8 @@ public function testAdapterConsistency()
611611 $ methods = $ reflClass ->getMethods (ReflectionMethod::IS_PUBLIC );
612612 $ testfiles = array (
613613 PHPEXIF_TEST_ROOT . '/files/morning_glory_pool_500.jpg ' ,
614- PHPEXIF_TEST_ROOT . '/files/dsc_5794.jpg '
614+ PHPEXIF_TEST_ROOT . '/files/dsc_5794.jpg ' ,
615+ PHPEXIF_TEST_ROOT . '/files/dsc_0003.jpg '
615616 );
616617
617618 $ adapter_exiftool = new \PHPExif \Adapter \Exiftool ();
You can’t perform that action at this time.
0 commit comments