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

Method getHeaderFromPath

lib/Datasource/ExternalJson.php:287–290  ·  view source on GitHub ↗

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

(string $path)

Source from the content-addressed store, hash-verified

285 * Gets the last segment of a path separated by '/'.
286 */
287 private function getHeaderFromPath(string $path): string {
288 $parts = explode('/', $path);
289 return end($parts);
290 }
291
292 /**
293 * get array object from string

Callers 1

extractSingleValuesMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected