phpmyadmin/libraries/classes/Controllers/LicenseController.php
Maurício Meneghini Fauth 39f42f848b Remove some useless docblock comments
Fixes docblock spacing

Signed-off-by: Maurício Meneghini Fauth <mauricio@fauth.dev>
2019-12-13 21:15:00 -03:00

43 lines
1008 B
PHP

<?php
/**
* Simple script to set correct charset for the license
*
* @package PhpMyAdmin\Controllers
*/
declare(strict_types=1);
namespace PhpMyAdmin\Controllers;
/**
* Simple script to set correct charset for the license
*
* @package PhpMyAdmin\Controllers
*/
class LicenseController extends AbstractController
{
/**
* @return void
*/
public function index(): void
{
$this->response->disable();
$this->response->header('Content-type: text/plain; charset=utf-8');
$filename = LICENSE_FILE;
// Check if the file is available, some distributions remove these.
if (@is_readable($filename)) {
readfile($filename);
} else {
printf(
__(
'The %s file is not available on this system, please visit ' .
'%s for more information.'
),
$filename,
'https://www.phpmyadmin.net/'
);
}
}
}