Skip to content

Commit

Permalink
Remove unused constant and reorder code for better maintainability
Browse files Browse the repository at this point in the history
  • Loading branch information
richard67 committed May 18, 2022
1 parent b3e3c37 commit 4c69995
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions build/deleted_file_check.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@
*/
const PHP_TAB = "\t";

const PREVIOUS_VERSION = '3.10';

function usage($command)
{
echo PHP_EOL;
Expand Down Expand Up @@ -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
Expand Down Expand Up @@ -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']))
{
Expand Down

0 comments on commit 4c69995

Please sign in to comment.