Strip the leading fully-qualified-name backslash from a PHP name. `"\\Foo\\Bar"` -> `"Foo\\Bar"`, `"Foo"` -> `"Foo"`.
(name: &str)
| 423 | /// |
| 424 | /// `"\\Foo\\Bar"` -> `"Foo\\Bar"`, `"Foo"` -> `"Foo"`. |
| 425 | pub(crate) fn strip_fqn_prefix(name: &str) -> &str { |
| 426 | name.strip_prefix('\\').unwrap_or(name) |
| 427 | } |
| 428 | |
| 429 | /// Remove surrounding single or double quotes from a PHP string literal. |
| 430 | /// |
no outgoing calls
no test coverage detected