Skip to content

Commit 92c2857

Browse files
committed
✨ ➕ Use flysystem as Filesystem abstraction, update codestyle,
- This allows to run test in isolation: from `ConsoleTest` to `ApplicationTest` - This delegates the use of `file_get_contents` and `file_put_contents`
1 parent 2ffb79c commit 92c2857

File tree

18 files changed

+430
-197
lines changed

18 files changed

+430
-197
lines changed

composer.json

+6-3
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66
"license": "MIT",
77
"require": {
88
"php": "^8.1",
9-
"symfony/console": "^6.2",
9+
"league/flysystem": "^3.0",
10+
"league/flysystem-memory": "^3.0",
1011
"nikic/php-parser": "^4.15",
11-
"psr/log": "^3.0"
12+
"psr/log": "^3.0",
13+
"symfony/console": "^6.2"
1214
},
1315
"require-dev": {
1416
"phpstan/phpstan": "^1.9",
@@ -35,6 +37,7 @@
3537
"config": {
3638
"allow-plugins": {
3739
"dealerdirect/phpcodesniffer-composer-installer": true
38-
}
40+
},
41+
"sort-packages": true
3942
}
4043
}

composer.lock

+211-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

phpcs.xml.dist

+11
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,21 @@
1515
<!-- Include full Doctrine Coding Standard -->
1616
<rule ref="Doctrine"/>
1717

18+
<!-- Include custom rules -->
19+
<rule ref="Squiz.WhiteSpace.OperatorSpacing">
20+
<properties>
21+
<property name="ignoreNewlines" value="true" />
22+
<property name="ignoreSpacingBeforeAssignments" value="false" />
23+
</properties>
24+
</rule>
25+
1826
<!-- Exclude some rules -->
1927
<rule ref="SlevomatCodingStandard.ControlStructures.EarlyExit.EarlyExitNotUsed">
2028
<exclude name="SlevomatCodingStandard.ControlStructures.EarlyExit.EarlyExitNotUsed"/>
2129
</rule>
30+
<rule ref="Generic.Formatting.MultipleStatementAlignment.NotSame">
31+
<exclude name="Generic.Formatting.MultipleStatementAlignment.NotSame"/>
32+
</rule>
2233

2334
<!-- Directories to be checked -->
2435
<file>src/</file>

0 commit comments

Comments
 (0)