Skip to content

Commit d8067a3

Browse files
authored
Merge pull request #9 from dereuromark/develop
PHPStan fixes and merge improvement for assoc.
2 parents 040e974 + 0319e4b commit d8067a3

20 files changed

+109
-941
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,9 @@
1-
/.idea
1+
/.idea/
22
/.phpunit.result.cache
33
/tmp
44
/logs
55
/vendor/
66
/bin
77
coverage.xml
88
phive*.phar
9+
/composer.lock

composer.json

Lines changed: 14 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
"phauthentic/file-storage-image-processor": "dev-master"
2424
},
2525
"suggest": {
26-
"phauthentic/file-storage-image-processor": "You must install this for image processing"
26+
"phauthentic/file-storage-image-processor": "For image processing"
2727
},
2828
"minimum-stability": "dev",
2929
"prefer-stable": true,
@@ -34,15 +34,15 @@
3434
},
3535
"autoload": {
3636
"psr-4": {
37-
"Phauthentic\\Infrastructure\\Storage\\": "src"
37+
"Phauthentic\\Infrastructure\\Storage\\": "src/"
3838
},
3939
"files": [
4040
"src/functions.php"
4141
]
4242
},
4343
"autoload-dev": {
4444
"psr-4": {
45-
"Phauthentic\\Test\\": "tests"
45+
"Phauthentic\\Test\\": "tests/"
4646
}
4747
},
4848
"scripts": {
@@ -51,35 +51,37 @@
5151
],
5252
"test": [
5353
"\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply",
54-
"./bin/phpunit"
54+
"phpunit"
5555
],
5656
"test-coverage": [
5757
"\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply",
58-
"./bin/phpunit --coverage-text"
58+
"phpunit --coverage-text"
5959
],
6060
"test-coverage-html": [
6161
"\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply",
62-
"./bin/phpunit --coverage-html ./tmp/coverage"
62+
"phpunit --coverage-html tmp/coverage/"
6363
],
6464
"cscheck": [
6565
"\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply",
66-
"./bin/phpcs ./src ./tests --standard=./phpcs.xml -s"
66+
"phpcs src/ tests/ --standard=phpcs.xml -s"
6767
],
6868
"csfix": [
6969
"\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply",
70-
"./bin/phpcbf ./src ./tests --standard=./phpcs.xml"
70+
"phpcbf src/ tests/ --standard=phpcs.xml"
7171
],
7272
"analyze": [
7373
"\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply",
74-
"./bin/phpstan analyse ./src -l 5"
74+
"phpstan analyse src/"
7575
],
7676
"phive": [
7777
"\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply",
78-
"php ./config/composer_phive.php"
78+
"php config/composer_phive.php"
7979
],
8080
"serve": [
8181
"\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply",
82-
"php -S localhost:8081 -t ./public"
83-
]
82+
"php -S localhost:8081 -t public/"
83+
],
84+
"stan": "phpstan analyse src/",
85+
"stan-setup": "cp composer.json composer.backup && composer require --dev phpstan/phpstan:^0.12 vimeo/psalm:^3.0 && mv composer.backup composer.json"
8486
}
8587
}

0 commit comments

Comments
 (0)