public function getPathToLicenseFile()
{
$prefixPath = $this->getPathToPluginFolder() . '/';
$licenseFiles = array('LICENSE', 'LICENSE.md', 'LICENSE.txt');
foreach ($licenseFiles as $licenseFile) {
$pathToLicense = $prefixPath . $licenseFile;
if (is_file($pathToLicense) && is_readable($pathToLicense)) {
return $pathToLicense;
}
}
return null;
}