protected static function extractKeyValueParameters($value, $key)
    {
        $value = is_string($value) ? explode('.', $value) : $value;
        $key   = is_null($key) || is_array($key) ? $key : explode('.', $key);

        return [$value, $key];
    }
protected static function extractKeyValueParameters($value, $key)
    {
        $value = is_string($value) ? explode('.', $value) : $value;
        $key   = is_null($key) || is_array($key) ? $key : explode('.', $key);

        return [$value, $key];
    }
protected static function extractKeyValueParameters ( $ value , $ key ) { $ value = is_string ( $ value ) ? explode ( '.' , $ value ) : $ value ; $ key = is_null ( $ key ) || is_array ( $ key ) ? $ key : explode ( '.' , $ key ) ; return [ $ value , $ key ] ; }
Normalises the key and value to be used with extract

@param string|array      $value
@param string|array|null $key

@return array
Normalises the key and value to be used with extract