@@ -26,8 +26,8 @@ public function __construct(
2626 string $ base_url = '' ,
2727 string $ base_path = ''
2828 ) {
29- $ this ->base_url = $ base_url !== '' ? \ rtrim ($ base_url , '/ ' ) . '/ ' : '' ;
30- $ this ->base_path = $ base_path !== '' ? \ rtrim ($ base_path , '/ ' ) . '/ ' : '' ;
29+ $ this ->base_url = $ base_url !== '' ? rtrim ($ base_url , '/ ' ) . '/ ' : '' ;
30+ $ this ->base_path = $ base_path !== '' ? rtrim ($ base_path , '/ ' ) . '/ ' : '' ;
3131 }
3232
3333 /**
@@ -66,7 +66,7 @@ public function resolve_asset(string $asset_key): array
6666 }
6767
6868 $ min_rel = \is_string ($ asset ['min ' ] ?? null ) ? $ asset ['min ' ] : '' ;
69- if ($ min_rel !== '' && $ this ->base_path !== '' && \ file_exists ($ this ->base_path . $ min_rel )) {
69+ if ($ min_rel !== '' && $ this ->base_path !== '' && file_exists ($ this ->base_path . $ min_rel )) {
7070 return [
7171 'handle ' => $ handle ,
7272 'url ' => $ this ->base_url . $ min_rel ,
@@ -78,7 +78,7 @@ public function resolve_asset(string $asset_key): array
7878 }
7979
8080 $ src_rel = \is_string ($ asset ['src ' ] ?? null ) ? $ asset ['src ' ] : '' ;
81- if ($ src_rel !== '' && $ this ->base_path !== '' && \ file_exists ($ this ->base_path . $ src_rel )) {
81+ if ($ src_rel !== '' && $ this ->base_path !== '' && file_exists ($ this ->base_path . $ src_rel )) {
8282 return [
8383 'handle ' => $ handle ,
8484 'url ' => $ this ->base_url . $ src_rel ,
@@ -129,10 +129,10 @@ private function load_manifest(): array
129129 return $ this ->manifest ;
130130 }
131131
132- $ normalized_base_path = \ rtrim ($ this ->base_path , '/ \\' );
132+ $ normalized_base_path = rtrim ($ this ->base_path , '/ \\' );
133133 $ manifest_path = $ normalized_base_path . DIRECTORY_SEPARATOR . self ::MANIFEST_FILE ;
134134
135- if ( ! \ file_exists ($ manifest_path )) {
135+ if ( ! file_exists ($ manifest_path )) {
136136 $ this ->manifest = [];
137137 return $ this ->manifest ;
138138 }
@@ -143,7 +143,7 @@ private function load_manifest(): array
143143 return $ this ->manifest ;
144144 }
145145
146- $ decoded = \ json_decode ($ manifest_json , true );
146+ $ decoded = json_decode ($ manifest_json , true );
147147 if ( ! \is_array ($ decoded )) {
148148 StarmusLogger::error (
149149 '[StarmusUiPackageResolver] Failed to parse manifest: ' . $ manifest_path ,
0 commit comments