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

Method getHeaderFromPath

lib/Datasource/ExternalJson.php:282–285  ·  view source on GitHub ↗

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

(string $path)

Source from the content-addressed store, hash-verified

280 * Gets the last segment of a path separated by '/'.
281 */
282 private function getHeaderFromPath(string $path): string {
283 $parts = explode('/', $path);
284 return end($parts);
285 }
286
287 /**
288 * get array object from string

Callers 1

extractSingleValuesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected