mirror of
https://github.com/Karaka-Management/Build.git
synced 2026-04-01 05:48:41 +00:00
Optimize php security
This commit is contained in:
parent
92e36ca471
commit
f2c531dd79
|
|
@ -36,9 +36,11 @@ CODE[29]="TestUtils"
|
|||
|
||||
for i in "${CODE[@]}"
|
||||
do
|
||||
grep -rln "$i" --include \*.php ${ROOT_PATH}/phpOMS >> ${INSPECTION_PATH}/Framework/critical_php.log
|
||||
grep -rln "$i" --include \*.php ${ROOT_PATH}/Modules >> ${INSPECTION_PATH}/Modules/citical_php.log
|
||||
grep -rlni "$i" --include \*.php ${ROOT_PATH}/phpOMS >> ${INSPECTION_PATH}/Framework/critical_php.log
|
||||
grep -rlni "$i" --include \*.php ${ROOT_PATH}/Modules >> ${INSPECTION_PATH}/Modules/citical_php.log
|
||||
grep -rlni "$i" --include \*.php ${ROOT_PATH}/Model >> ${INSPECTION_PATH}/Model/citical_php.log
|
||||
grep -rlni "$i" --include \*.php ${ROOT_PATH}/Web >> ${INSPECTION_PATH}/Web/citical_php.log
|
||||
done
|
||||
|
||||
# PHP strict type
|
||||
grep -r -L "declare\(\ *strict_types\ *=\ *1\ *\);" --include=*.php ${ROOT_PATH}/phpOMS > ${INSPECTION_PATH}/Framework/strict_missing.log
|
||||
grep -r -L "declare\(\ *strict_types\ *=\ *1\ *\);" --include=*.php ${ROOT_PATH}/phpOMS > ${INSPECTION_PATH}/Framework/strict_missing_php.log
|
||||
Loading…
Reference in New Issue
Block a user