Page Menu
Home
Phorge
Search
Configure Global Search
Log In
Files
F117751245
D3256.1775185112.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Authored By
Unknown
Size
777 B
Referenced Files
None
Subscribers
None
D3256.1775185112.diff
View Options
diff --git a/bin/phpcs b/bin/phpcs
new file mode 100755
--- /dev/null
+++ b/bin/phpcs
@@ -0,0 +1,11 @@
+#!/bin/bash
+
+cwd=$(dirname $0)
+
+pushd ${cwd}/../src/
+
+php -dmemory_limit=500M \
+ vendor/bin/phpcs \
+ -s
+
+popd
diff --git a/src/composer.json b/src/composer.json
--- a/src/composer.json
+++ b/src/composer.json
@@ -43,7 +43,8 @@
"laravel/dusk": "~6.15.0",
"nunomaduro/larastan": "^0.7",
"phpstan/phpstan": "^0.12",
- "phpunit/phpunit": "^9"
+ "phpunit/phpunit": "^9",
+ "squizlabs/php_codesniffer": "3.*"
},
"config": {
"optimize-autoloader": true,
diff --git a/src/phpcs b/src/phpcs
new file mode 120000
--- /dev/null
+++ b/src/phpcs
@@ -0,0 +1 @@
+../bin/phpcs
\ No newline at end of file
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Fri, Apr 3, 2:58 AM (2 d, 21 h ago)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
18822319
Default Alt Text
D3256.1775185112.diff (777 B)
Attached To
Mode
D3256: Added a phpcs script
Attached
Detach File
Event Timeline