diff options
author | Andrew Dolgov <[email protected]> | 2021-02-22 14:41:09 +0300 |
---|---|---|
committer | Andrew Dolgov <[email protected]> | 2021-02-22 14:41:09 +0300 |
commit | be4e7b13403666fc477d4b563ea8c075d0fd2022 (patch) | |
tree | 38eee4a6d7a5f0c4ecc3b37f997c385559c1d2a8 /utils/regen_config_checks.sh | |
parent | 043ef3dad68f774598e1b172ecb0f5ea75f112af (diff) |
fix several issues reported by phpstan
Diffstat (limited to 'utils/regen_config_checks.sh')
-rwxr-xr-x | utils/regen_config_checks.sh | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/utils/regen_config_checks.sh b/utils/regen_config_checks.sh index e8b1ed830..b20ce0480 100755 --- a/utils/regen_config_checks.sh +++ b/utils/regen_config_checks.sh @@ -8,10 +8,10 @@ echo -n "define('GENERATED_CONFIG_CHECK', " >> $DESTINATION grep CONFIG_VERSION config.php-dist | awk -F ' |\)' '{ print $2 }' | xargs echo -n >> $DESTINATION echo ");" >> $DESTINATION -echo -n "\$required_defines = array( " >> $DESTINATION +echo -n "function get_required_defines() { return [ " >> $DESTINATION grep define\( config.php-dist | awk -F\' '{ print "*" $2 "*," }' | grep -v DB_PORT | xargs echo -n | sed -e s/,$// -e s/*/\'/g >> $DESTINATION -echo "); ?>" >> $DESTINATION +echo "]; }" >> $DESTINATION |