}
public static function provideGetMetadata() {
-
$xmpNugget = <<<EOF
<?xpacket begin='' id='W5M0MpCehiHzreSzNTczkc9d'?>
<x:xmpmeta xmlns:x='adobe:ns:meta/' x:xmptk='Image::ExifTool 7.30'>
EOF;
$xmpNugget = str_replace( "\r", '', $xmpNugget ); // Windows compat
- return array(
- array(
+ return [
+ [
'nonanimated.gif',
- array(
- 'comment' => array( 'GIF test file ⁕ Created with GIMP' ),
+ [
+ 'comment' => [ 'GIF test file ⁕ Created with GIMP' ],
'duration' => 0.1,
'frameCount' => 1,
'looped' => false,
'xmp' => '',
- )
- ),
- array(
+ ]
+ ],
+ [
'animated.gif',
- array(
- 'comment' => array( 'GIF test file . Created with GIMP' ),
+ [
+ 'comment' => [ 'GIF test file . Created with GIMP' ],
'duration' => 2.4,
'frameCount' => 4,
'looped' => true,
'xmp' => '',
- )
- ),
+ ]
+ ],
- array(
+ [
'animated-xmp.gif',
- array(
+ [
'xmp' => $xmpNugget,
'duration' => 2.4,
'frameCount' => 4,
'looped' => true,
- 'comment' => array( 'GIƒ·test·file' ),
- )
- ),
- );
+ 'comment' => [ 'GIƒ·test·file' ],
+ ]
+ ],
+ ];
}
}