Skip to content

Commit

Permalink
Fix inconsistent spacing in hooks.php file
Browse files Browse the repository at this point in the history
Remove unnecessary whitespace around the assignment operator in the 'hasTransparency' key modification. This change ensures code consistency and readability in the dominant-color-images plugin.
  • Loading branch information
Paul Bearne committed Dec 6, 2024
1 parent ed64c9b commit 5dfd56e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion plugins/dominant-color-images/hooks.php
Original file line number Diff line number Diff line change
Expand Up @@ -256,7 +256,7 @@ function dominant_color_prepare_attachment_for_js( $response, WP_Post $attachmen
$response['hasTransparency'] = '';
$response['hasTransparencyClass'] = '';
if ( isset( $meta['has_transparency'] ) ) {
$response['hasTransparency'] = (bool) $meta['has_transparency'];
$response['hasTransparency'] = (bool) $meta['has_transparency'];
}

return $response;
Expand Down

0 comments on commit 5dfd56e

Please sign in to comment.