File tree 5 files changed +23
-11
lines changed
5 files changed +23
-11
lines changed Original file line number Diff line number Diff line change 1
1
language : php
2
2
3
- php :
4
- - 5.3
5
- - 5.4
6
- - 5.5
7
- - 5.6
3
+ env :
4
+ global :
5
+ - DEPENDENCIES=no
8
6
9
7
matrix :
10
- allow_failures :
8
+ include :
9
+ - php : 5.3
10
+ dist : precise
11
+ - php : 5.4
12
+ dist : precise
11
13
- php : 5.6
14
+ - php : 7.0
15
+ - php : 7.1
16
+ - php : nightly
17
+ allow_failures :
18
+ - php : 7.2
19
+ - php : nightly
12
20
13
21
script :
14
22
- 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 )
2
2
3
3
PHPExif is a library which gives you easy access to the EXIF meta-data of an image.
4
4
@@ -12,7 +12,7 @@ PHPExif serves as a wrapper around some native or CLI tools which access this EX
12
12
## Installation (composer)
13
13
14
14
``` json
15
- " miljar/php-exif" : " ~0.6.0 "
15
+ composer require miljar/php-exif
16
16
```
17
17
18
18
Original file line number Diff line number Diff line change @@ -249,11 +249,14 @@ protected function isFieldKnown(&$field)
249
249
/**
250
250
* Extract GPS coordinates from components array
251
251
*
252
- * @param array $components
252
+ * @param array|string $components
253
253
* @return float
254
254
*/
255
- protected function extractGPSCoordinate (array $ components )
255
+ protected function extractGPSCoordinate ($ components )
256
256
{
257
+ if (!is_array ($ components )) {
258
+ $ components = array ($ components );
259
+ }
257
260
$ components = array_map (array ($ this , 'normalizeComponent ' ), $ components );
258
261
259
262
if (count ($ components ) > 2 ) {
Original file line number Diff line number Diff line change @@ -611,7 +611,8 @@ public function testAdapterConsistency()
611
611
$ methods = $ reflClass ->getMethods (ReflectionMethod::IS_PUBLIC );
612
612
$ testfiles = array (
613
613
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 '
615
616
);
616
617
617
618
$ adapter_exiftool = new \PHPExif \Adapter \Exiftool ();
You can’t perform that action at this time.
0 commit comments