| 1820 | } |
| 1821 | |
| 1822 | static const char *path_leaf(const char *path) { |
| 1823 | const char *leaf = path; |
| 1824 | for (const char *p = path; p && *p; p++) { |
| 1825 | if (*p == '/' || *p == '\\') { |
| 1826 | leaf = p + 1; |
| 1827 | } |
| 1828 | } |
| 1829 | return leaf; |
| 1830 | } |
| 1831 | |
| 1832 | static bool node_in_php_file(const cbm_gbuf_node_t *n) { |
| 1833 | return n && n->file_path && cbm_language_for_filename(path_leaf(n->file_path)) == CBM_LANG_PHP; |
no outgoing calls
no test coverage detected