diff --git a/phpcs.xml b/phpcs.xml
index cdc1d0da1..e53cf515e 100644
--- a/phpcs.xml
+++ b/phpcs.xml
@@ -70,6 +70,7 @@
+
diff --git a/src/php/frontend/class-video-proxy.php b/src/php/frontend/class-video-proxy.php
index 63b46c581..3ed07b90b 100644
--- a/src/php/frontend/class-video-proxy.php
+++ b/src/php/frontend/class-video-proxy.php
@@ -57,7 +57,7 @@ public static function ajax_handler_body() {
if ( false === $transient ) {
http_response_code( 404 );
- die;
+ exit();
}
header( 'Accept-Ranges: bytes' );
@@ -87,7 +87,7 @@ public static function ajax_handler_body() {
if ( is_null( $stream ) ) {
http_response_code( 500 );
- die;
+ exit();
}
ob_end_clean();
@@ -116,7 +116,7 @@ private static function resolve_range( $size ) {
if ( 2 !== count( $limits ) ) {
http_response_code( 416 );
- die;
+ exit();
}
$raw_start = $limits[0];
@@ -134,7 +134,7 @@ private static function resolve_range( $size ) {
if ( $start > $end ) {
http_response_code( 416 );
- die;
+ exit();
}
return array( $start, $end );
@@ -152,7 +152,7 @@ private static function resolve_range( $size ) {
private static function check_range_header( $header ) {
if ( ! str_starts_with( $header, 'bytes=' ) ) {
http_response_code( 416 );
- die;
+ exit();
}
$header = substr( $header, 6 );
@@ -160,7 +160,7 @@ private static function check_range_header( $header ) {
// Multipart range requests are not supported.
if ( str_contains( $header, ',' ) ) {
http_response_code( 416 );
- die;
+ exit();
}
return $header;