17 lines
359 B
Plaintext
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;
|
|
} |