Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.php text eol=lf
16 changes: 16 additions & 0 deletions bin/php-code-validator.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@echo off
setlocal DISABLEDELAYEDEXPANSION

SET BIN_DIR=%~dp0

if exist "%BIN_DIR%\phpcs.bat" (
REM used within project
SET "SCRIPT_DIR=%BIN_DIR%\..\flyeralarm\php-code-validator"
SET "COMPOSER_BIN=%BIN_DIR%"
) else (
REM standalone
SET "SCRIPT_DIR=%BIN_DIR%\.."
SET "COMPOSER_BIN=%BIN_DIR%\..\vendor\bin"
)

%COMPOSER_BIN%/phpcs.bat -w -p -s --standard=%SCRIPT_DIR%\ruleset.xml %*