EscolaLMS/topic-types

View on GitHub
src/Helpers/Path.php

Summary

Maintainability
A
0 mins
Test Coverage
A
100%
<?php

namespace EscolaLms\TopicTypes\Helpers;

class Path
{
    public function sanitizePathForExport(string $path): string
    {
        return preg_replace('/courses\/[0-9]+\//', '', $path);
    }
}