Source of file Check.php
Size: 0,600 Bytes - Last Modified: 2021-12-23T10:02:17+00:00
/var/www/docs.ssmods.com/process/src/code/Util/Check.php
1234567891011121314151617181920212223242526272829 | <?php namespace Seeder\Util; /** * Class Check * @package Seeder\Util */ class Check { /** * @return bool * @throws \Exception */ public static function fileToUrlMapping() { global $_FILE_TO_URL_MAPPING; foreach ($_FILE_TO_URL_MAPPING as $path => $domain) { $last = substr($path, -1); if ($last === '/' || $last === '\\') { throw new \Exception("The path '{$path}' set in \$_FILE_TO_URL_MAPPING is invalid. Please remove the last '{$last}' from the path"); } } return true; } } |