Return `true` for file extensions that Drupal treats as PHP source.
(path: &Path)
| 810 | |
| 811 | /// Return `true` for file extensions that Drupal treats as PHP source. |
| 812 | fn is_drupal_php_file(path: &Path) -> bool { |
| 813 | matches!( |
| 814 | path.extension().and_then(|e| e.to_str()), |
| 815 | Some("php" | "module" | "install" | "theme" | "profile" | "inc" | "engine") |
| 816 | ) |
| 817 | } |
| 818 | |
| 819 | // ─── Core scanner ─────────────────────────────────────────────────────────── |
| 820 |
no outgoing calls
no test coverage detected