diff --git a/build/deleted_file_check.php b/build/deleted_file_check.php index 864cba51750f1..90a06cafcd4b1 100644 --- a/build/deleted_file_check.php +++ b/build/deleted_file_check.php @@ -29,8 +29,6 @@ */ const PHP_TAB = "\t"; -const PREVIOUS_VERSION = '3.10'; - function usage($command) { echo PHP_EOL; @@ -107,6 +105,20 @@ function usage($command) exit(1); } +// Directories to skip for the check +$excludedFolders = [ + 'administrator/components/com_search', + 'components/com_search', + 'images/sampledata', + 'installation', + 'media/plg_quickicon_eos310', + 'media/system/images', + 'modules/mod_search', + 'plugins/fields/repeatable', + 'plugins/quickicon/eos310', + 'plugins/search', +]; + /** * @param string $folderPath Path to the folder with the extracted full package * @param array $excludeFolders Excluded folders @@ -221,20 +233,6 @@ function readZipFile($filePath, $excludeFolders): stdClass return $return; } -// Directories to skip for the check -$excludedFolders = [ - 'administrator/components/com_search', - 'components/com_search', - 'images/sampledata', - 'installation', - 'media/plg_quickicon_eos310', - 'media/system/images', - 'modules/mod_search', - 'plugins/fields/repeatable', - 'plugins/quickicon/eos310', - 'plugins/search', -]; - // Read files and folders lists from folders or zip files if (is_dir($options['from'])) {