Skip to content

Commit

Permalink
Fix cs
Browse files Browse the repository at this point in the history
  • Loading branch information
pls78 committed Nov 5, 2024
1 parent 3cfa2d4 commit 4c7fe9c
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/presenters/open-graph/image-presenter.php
Original file line number Diff line number Diff line change
Expand Up @@ -115,8 +115,8 @@ protected function filter( $image ) {
if ( ! empty( $image_type ) && \is_string( $image_type ) ) {
$image['type'] = \trim( $image_type );
}
else{
$image['type'] = "";
else {
$image['type'] = '';
}

$image_width = ( $image['width'] ?? '' );
Expand All @@ -130,8 +130,8 @@ protected function filter( $image ) {
if ( ! empty( $image_width ) && $image_width > 0 ) {
$image['width'] = $image_width;
}
else{
$image['width'] = "";
else {
$image['width'] = '';
}

$image_height = ( $image['height'] ?? '' );
Expand All @@ -145,8 +145,8 @@ protected function filter( $image ) {
if ( ! empty( $image_height ) && $image_height > 0 ) {
$image['height'] = $image_height;
}
else{
$image['height'] = "";
else {
$image['height'] = '';
}

return $image;
Expand Down

0 comments on commit 4c7fe9c

Please sign in to comment.