jcb-compiler/src/2b5c9989-1d4e-4f59-8b95-5cd.../code.power

17 lines
359 B
Plaintext

/**
* Get that the active keys from a path
*
* @param string $path The path to determine the location.
*
* @return array|null The valid array of keys
* @since 3.2.0
*/
protected function getActiveKeys(string $path): ?array
{
if (!empty($path))
{
return [preg_replace('/\s+/', '', $path)];
}
return null;
}