MCPcopy Create free account
hub / github.com/Rello/analytics / getHeaderFromPath

Method getHeaderFromPath

lib/Datasource/LocalJson.php:247–250  ·  view source on GitHub ↗

* Gets the last segment of a path separated by '/'. */

(string $path)

Source from the content-addressed store, hash-verified

245 * Gets the last segment of a path separated by '/'.
246 */
247 private function getHeaderFromPath(string $path): string {
248 $parts = explode('/', $path);
249 return end($parts);
250 }
251
252 /**
253 * get array object from string

Callers 1

extractSingleValuesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected