Skip to content

Commit eab5dbb

Browse files
authored
use class string instead of full string + add enum for type (#59)
* use class string instead of full string + add enum for type * Add fix command to composer * fix deprecation * rationale for code ignore
1 parent 8e35bc6 commit eab5dbb

File tree

12 files changed

+168
-99
lines changed

12 files changed

+168
-99
lines changed

.editorconfig

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,3 +25,7 @@ indent_size = 4
2525
indent_style = space
2626
indent_size = 2
2727
trim_trailing_whitespace = true
28+
29+
[*.neon]
30+
indent_style = tab
31+
indent_size = 4

.github/workflows/php.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,13 +5,9 @@ on:
55
push:
66
paths-ignore:
77
- '**/*.md'
8-
- 'public/dist/*.js'
9-
- 'public/dist/**/*.js'
108
pull_request:
119
paths-ignore:
1210
- '**/*.md'
13-
- 'public/dist/*.js'
14-
- 'public/dist/**/*.js'
1511
# Allow manually triggering the workflow.
1612
workflow_dispatch:
1713

composer.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@
3030
"require": {
3131
"php": "^8.1",
3232
"ext-fileinfo": "*",
33+
"fylax/forceutf8": "dev-master",
3334
"neitanod/forceutf8": "^2.0.4",
3435
"php-ffmpeg/php-ffmpeg": "^1.0",
3536
"thecodingmachine/safe": "^2.2"
@@ -69,6 +70,9 @@
6970
],
7071
"phpstan": [
7172
"vendor/bin/phpstan analyze"
73+
],
74+
"fix-code-style": [
75+
"vendor/bin/phpcbf --standard=PSR2 ./lib/"
7276
]
7377
},
7478
"config": {

0 commit comments

Comments
 (0)