From 3d4a0cadc950d4440251efa11b55b0bfb0afdef7 Mon Sep 17 00:00:00 2001 From: nsfisis Date: Thu, 6 Aug 2026 04:22:46 +0900 Subject: chore: drop @param/@return tags that only restate Rust types The ported docblocks copied @param and @return straight from the PHP source. When such a tag carries nothing but a type and an argument name, the Rust signature already states it, so the line is noise. Tags whose text adds prose beyond the type are kept. Co-Authored-By: Claude Opus 5 (1M context) --- crates/shirabe/src/autoload/class_loader.rs | 8 -------- 1 file changed, 8 deletions(-) (limited to 'crates/shirabe/src/autoload') diff --git a/crates/shirabe/src/autoload/class_loader.rs b/crates/shirabe/src/autoload/class_loader.rs index 3bcc6f81..89758269 100644 --- a/crates/shirabe/src/autoload/class_loader.rs +++ b/crates/shirabe/src/autoload/class_loader.rs @@ -56,7 +56,6 @@ pub struct ClassLoader { } impl ClassLoader { - /// @param string|null $vendorDir pub fn new(vendor_dir: Option) -> Self { let this = Self { vendor_dir, @@ -75,7 +74,6 @@ impl ClassLoader { this } - /// @return array> pub fn get_prefixes(&self) -> IndexMap> { if !self.prefixes_psr0.is_empty() { // PHP: call_user_func_array('array_merge', array_values($this->prefixesPsr0)) @@ -94,17 +92,14 @@ impl ClassLoader { IndexMap::new() } - /// @return array> pub fn get_prefixes_psr4(&self) -> &IndexMap> { &self.prefix_dirs_psr4 } - /// @return list pub fn get_fallback_dirs(&self) -> &Vec { &self.fallback_dirs_psr0 } - /// @return list pub fn get_fallback_dirs_psr4(&self) -> &Vec { &self.fallback_dirs_psr4 } @@ -369,13 +364,10 @@ impl ClassLoader { } /// Returns the currently registered loaders keyed by their corresponding vendor directories. - /// - /// @return array pub fn get_registered_loaders() -> IndexMap { REGISTERED_LOADERS.lock().unwrap().clone() } - /// @return string|false fn find_file_with_extension(&self, class: &str, ext: &str) -> Option { // PSR-4 lookup let logical_path_psr4 = format!("{}{}", strtr(class, "\\", DIRECTORY_SEPARATOR), ext); -- cgit v1.3.1