diff options
author | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-03 22:52:20 +0100 |
---|---|---|
committer | Nikita Popov <nikita.ppv@gmail.com> | 2020-02-03 22:52:20 +0100 |
commit | f8d795820e780a6322e054c26c581570613c14f0 (patch) | |
tree | 99d3ae01ce564752807341c5743863b4c92513f8 /ext/exif | |
parent | d2cb200e10ada6fa44c54a29292bb4665728fff0 (diff) | |
download | php-git-f8d795820e780a6322e054c26c581570613c14f0.tar.gz |
Reindent phpt files
Diffstat (limited to 'ext/exif')
-rw-r--r-- | ext/exif/tests/bug64739.phpt | 8 | ||||
-rw-r--r-- | ext/exif/tests/bug72627.phpt | 4 | ||||
-rw-r--r-- | ext/exif/tests/bug72735/bug72682.phpt | 6 | ||||
-rw-r--r-- | ext/exif/tests/bug72735/bug72735.phpt | 14 | ||||
-rw-r--r-- | ext/exif/tests/bug73737.phpt | 4 | ||||
-rw-r--r-- | ext/exif/tests/sony.phpt | 4 |
6 files changed, 20 insertions, 20 deletions
diff --git a/ext/exif/tests/bug64739.phpt b/ext/exif/tests/bug64739.phpt index de97e0db3c..b423e6501e 100644 --- a/ext/exif/tests/bug64739.phpt +++ b/ext/exif/tests/bug64739.phpt @@ -12,8 +12,8 @@ echo "Test\n"; $headers1 = exif_read_data(__DIR__ . '/bug64739.jpg'); if ($headers1 === false) { - echo 'Error, failed to read exif data'; - exit; + echo 'Error, failed to read exif data'; + exit; } var_dump($headers1['Title'][0] === '?'); @@ -24,8 +24,8 @@ ini_set('exif.decode_unicode_motorola', 'UCS-2LE'); $headers2 = exif_read_data(__DIR__ . '/bug64739.jpg'); if ($headers2 === false) { - echo 'Error, failed to read exif data'; - exit; + echo 'Error, failed to read exif data'; + exit; } var_dump($headers2['Title']); diff --git a/ext/exif/tests/bug72627.phpt b/ext/exif/tests/bug72627.phpt index bb6a1fae99..ad363d8dd6 100644 --- a/ext/exif/tests/bug72627.phpt +++ b/ext/exif/tests/bug72627.phpt @@ -4,8 +4,8 @@ Bug #72627 (Memory Leakage In exif_process_IFD_in_TIFF) <?php if (!extension_loaded('exif')) print 'skip exif extension not available';?> --FILE-- <?php - $exif = exif_read_data(__DIR__ . '/bug72627.tiff',0,0,true); - var_dump($exif); + $exif = exif_read_data(__DIR__ . '/bug72627.tiff',0,0,true); + var_dump($exif); ?> --EXPECTF-- Warning: exif_read_data(%s): Thumbnail goes IFD boundary or end of file reached in %sbug72627.php on line %d diff --git a/ext/exif/tests/bug72735/bug72682.phpt b/ext/exif/tests/bug72735/bug72682.phpt index 42a80b2eea..cc3faaa101 100644 --- a/ext/exif/tests/bug72735/bug72682.phpt +++ b/ext/exif/tests/bug72735/bug72682.phpt @@ -5,10 +5,10 @@ Bug #72735 MakerNote regression --FILE-- <?php foreach (['nokia.jpg', 'samsung.jpg', 'panasonic.jpg'] as $picture) { - echo $picture . ': '; + echo $picture . ': '; - $info = exif_read_data(__DIR__ . DIRECTORY_SEPARATOR . $picture); - var_dump($info['MakerNote']); + $info = exif_read_data(__DIR__ . DIRECTORY_SEPARATOR . $picture); + var_dump($info['MakerNote']); } ?> --EXPECT-- diff --git a/ext/exif/tests/bug72735/bug72735.phpt b/ext/exif/tests/bug72735/bug72735.phpt index 082f3e6153..1efd4ba457 100644 --- a/ext/exif/tests/bug72735/bug72735.phpt +++ b/ext/exif/tests/bug72735/bug72735.phpt @@ -5,17 +5,17 @@ Bug #72735 (Samsung picture thumb not read (zero size)) --FILE-- <?php foreach (['nokia.jpg', 'samsung.jpg', 'panasonic.jpg'] as $picture) { - echo $picture . ': '; + echo $picture . ': '; - $len = strlen(exif_thumbnail(__DIR__ . DIRECTORY_SEPARATOR . $picture)); + $len = strlen(exif_thumbnail(__DIR__ . DIRECTORY_SEPARATOR . $picture)); - if (!$len) { - echo 'Error, no length returned', PHP_EOL; + if (!$len) { + echo 'Error, no length returned', PHP_EOL; - continue; - } + continue; + } - echo 'int(' . $len . ')', PHP_EOL; + echo 'int(' . $len . ')', PHP_EOL; } ?> --EXPECT-- diff --git a/ext/exif/tests/bug73737.phpt b/ext/exif/tests/bug73737.phpt index a37b3c9583..a46020f468 100644 --- a/ext/exif/tests/bug73737.phpt +++ b/ext/exif/tests/bug73737.phpt @@ -4,8 +4,8 @@ Bug #73737 (Crash when parsing a tag format) <?php if (!extension_loaded('exif')) print 'skip exif extension not available';?> --FILE-- <?php - $exif = exif_thumbnail(__DIR__ . '/bug73737.tiff'); - var_dump($exif); + $exif = exif_thumbnail(__DIR__ . '/bug73737.tiff'); + var_dump($exif); ?> --EXPECTF-- Warning: exif_thumbnail(bug73737.tiff): Process tag(x0100=ImageWidth): Cannot be empty in %s on line %d diff --git a/ext/exif/tests/sony.phpt b/ext/exif/tests/sony.phpt index 8c2bf7c58c..0111a82e1f 100644 --- a/ext/exif/tests/sony.phpt +++ b/ext/exif/tests/sony.phpt @@ -7,14 +7,14 @@ Sony test $data = exif_read_data(__DIR__ . DIRECTORY_SEPARATOR . 'sony.jpg'); if (!$data) { - exit('Error: Unable to parse EXIF data'); + exit('Error: Unable to parse EXIF data'); } // Perhaps we should just test for SonyModelID since it seems to be // the most specific tag name that should be found in any Sony generated // picture foreach (['SonyModelID', 'Panorama', 'AntiBlur'] as $sony_tag) { - printf('%s was %sfound' . PHP_EOL, $sony_tag, (!isset($data[$sony_tag]) ? 'NOT ' : '')); + printf('%s was %sfound' . PHP_EOL, $sony_tag, (!isset($data[$sony_tag]) ? 'NOT ' : '')); } ?> --EXPECT-- |