Skip to content

Commit

Permalink
fix: Integrity check
Browse files Browse the repository at this point in the history
  • Loading branch information
joserick committed Dec 14, 2022
1 parent 33849a8 commit baf7e71
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ jobs:
composer create-project nette/coding-standard temp/coding-standard ^3 --no-progress
# Install app deps
composer install --no-interaction --prefer-dist
composer install --no-interaction --prefer-dist --ignore-platform-req=ext-gd
- name: The PHP Security Checker
uses: symfonycorp/security-checker-action@v5
Expand Down
4 changes: 2 additions & 2 deletions src/PNGMetadata.php
Original file line number Diff line number Diff line change
Expand Up @@ -211,7 +211,7 @@ public static function getType(string $path)
*/
public function getThumbnail()
{
// Check if the Exif data is not null.
// Check if the Exif data is not null.
if ($this->exif_data) {
// Check if the Exif data contains a thumbnail
if ($thumb = exif_thumbnail($this->exif_data)) {
Expand Down Expand Up @@ -516,7 +516,7 @@ private function extractTExif(): void
private function extractXMP(): void
{
if (isset($this->chunks['iTXt']) && strncmp($this->chunks['iTXt'], 'XML:com.adobe.xmp', 17) === 0) {
$dom = new \DomDocument('1.0', 'UTF-8');
$dom = new \DOMDocument('1.0', 'UTF-8');
$dom->preserveWhiteSpace = false;
$dom->formatOutput = false;
$dom->substituteEntities = false;
Expand Down

0 comments on commit baf7e71

Please sign in to comment.