Extract the short (unqualified) class name from a potentially fully-qualified name. For example, `"Illuminate\\Support\\Collection"` → `"Collection"`, and `"Collection"` → `"Collection"`.
(name: &str)
| 416 | /// For example, `"Illuminate\\Support\\Collection"` → `"Collection"`, |
| 417 | /// and `"Collection"` → `"Collection"`. |
| 418 | pub(crate) fn short_name(name: &str) -> &str { |
| 419 | name.rsplit('\\').next().unwrap_or(name) |
| 420 | } |
| 421 | |
| 422 | /// Strip the leading fully-qualified-name backslash from a PHP name. |
| 423 | /// |
no test coverage detected