| Server IP : 202.61.199.114 / Your IP : 216.73.217.139 Web Server : nginx/1.22.1 System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64 User : web20 ( 1018) PHP Version : 8.4.23 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : ON | Pkexec : ON Directory : /var/www/api.pacim.de/web/Codiad/ |
Upload File : |
language: php
php:
- 5.6
- 7.0
env:
global:
# PHP Code Sniffer special rules
- R_CLASS="Squiz.Classes.ValidClassName" # must use CamleClasName
- R_CONST="Generic.NamingConventions.UpperCaseConstantName" # const must UPPERCASE
- R_FILE="PSR1.Files.SideEffects" # a file declare , or executes logic, not both
- R_LINE="Generic.Files.LineLength" #
- R_METHOD="PSR1.Methods.CamelCapsMethodName" # must use camleMethodName
- R_NS="PSR1.Classes.ClassDeclaration" # class must use Namespace
- CS_INGNORE="" # ingore Files
matrix:
#strict mode to check formatting
- STRICT=true
# exclude some special or unsupported conventions
- STRICT=false CS_INGNORE="dialog.php"
#allow failures
matrix:
allow_failures:
- env: STRICT=true
#install dependence
install:
- composer install --prefer-dist --verbose
#init the env to exclude
before_script:
# STRICT mode only exclude Namespace and LineLength
- if [[ "$STRICT" == "true" ]];then
export CS_EXCLUDE="$R_LINE,$R_NS";
else
export CS_EXCLUDE="$R_CLASS,$R_CONST,$R_FILE,$R_LINE,$R_METHOD,$R_NS";
fi
- echo $CS_EXCLUDE
# check formatting and Syntax
script:
- ./vendor/bin/phpcs components
--standard=PSR2
--exclude="$CS_EXCLUDE"
--ignore="$CS_INGNORE"
--colors
--extensions=php