Skip to content

Commit 8ac9a65

Browse files
committed
Remove unnecessary backslashes from class names
These are not needed in the current namespace context.
1 parent 636f2ef commit 8ac9a65

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/helper.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -82,7 +82,7 @@ function app_get_attachment_image_url( int|string $attachmentId, array|string $s
8282
}
8383

8484
return $image['url'];
85-
} catch ( \Exception ) {
85+
} catch ( Exception ) {
8686
return false;
8787
}
8888
}
@@ -99,7 +99,7 @@ function app_get_attachment_image( int|string $attachmentId, array|string $size
9999

100100
if ( empty( $image ) ) {
101101
/** @var string $size */
102-
$exception = new \Exception( sprintf( 'Image not fount: attachment_id "%d", size "%s"', $attachmentId, $size ) );
102+
$exception = new Exception( sprintf( 'Image not fount: attachment_id "%d", size "%s"', $attachmentId, $size ) );
103103
app_error_log( $exception, 'app_get_attachment_image' );
104104

105105
return '';
@@ -152,7 +152,7 @@ function app_get_attachment_image( int|string $attachmentId, array|string $size
152152
*/
153153
function app_attachment_url_to_postid( string $url ): bool|int {
154154

155-
/** @var \wpdb $wpdb */
155+
/** @var wpdb $wpdb */
156156
global $wpdb;
157157

158158
if ( ! filter_var( $url, FILTER_VALIDATE_URL ) ) {

0 commit comments

Comments
 (0)