|
23 | 23 | "phauthentic/file-storage-image-processor": "dev-master" |
24 | 24 | }, |
25 | 25 | "suggest": { |
26 | | - "phauthentic/file-storage-image-processor": "You must install this for image processing" |
| 26 | + "phauthentic/file-storage-image-processor": "For image processing" |
27 | 27 | }, |
28 | 28 | "minimum-stability": "dev", |
29 | 29 | "prefer-stable": true, |
|
34 | 34 | }, |
35 | 35 | "autoload": { |
36 | 36 | "psr-4": { |
37 | | - "Phauthentic\\Infrastructure\\Storage\\": "src" |
| 37 | + "Phauthentic\\Infrastructure\\Storage\\": "src/" |
38 | 38 | }, |
39 | 39 | "files": [ |
40 | 40 | "src/functions.php" |
41 | 41 | ] |
42 | 42 | }, |
43 | 43 | "autoload-dev": { |
44 | 44 | "psr-4": { |
45 | | - "Phauthentic\\Test\\": "tests" |
| 45 | + "Phauthentic\\Test\\": "tests/" |
46 | 46 | } |
47 | 47 | }, |
48 | 48 | "scripts": { |
|
51 | 51 | ], |
52 | 52 | "test": [ |
53 | 53 | "\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply", |
54 | | - "./bin/phpunit" |
| 54 | + "phpunit" |
55 | 55 | ], |
56 | 56 | "test-coverage": [ |
57 | 57 | "\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply", |
58 | | - "./bin/phpunit --coverage-text" |
| 58 | + "phpunit --coverage-text" |
59 | 59 | ], |
60 | 60 | "test-coverage-html": [ |
61 | 61 | "\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply", |
62 | | - "./bin/phpunit --coverage-html ./tmp/coverage" |
| 62 | + "phpunit --coverage-html tmp/coverage/" |
63 | 63 | ], |
64 | 64 | "cscheck": [ |
65 | 65 | "\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply", |
66 | | - "./bin/phpcs ./src ./tests --standard=./phpcs.xml -s" |
| 66 | + "phpcs src/ tests/ --standard=phpcs.xml -s" |
67 | 67 | ], |
68 | 68 | "csfix": [ |
69 | 69 | "\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply", |
70 | | - "./bin/phpcbf ./src ./tests --standard=./phpcs.xml" |
| 70 | + "phpcbf src/ tests/ --standard=phpcs.xml" |
71 | 71 | ], |
72 | 72 | "analyze": [ |
73 | 73 | "\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply", |
74 | | - "./bin/phpstan analyse ./src -l 5" |
| 74 | + "phpstan analyse src/" |
75 | 75 | ], |
76 | 76 | "phive": [ |
77 | 77 | "\\InstituteWeb\\ComposerScripts\\ImprovedScriptExecution::apply", |
78 | | - "php ./config/composer_phive.php" |
| 78 | + "php config/composer_phive.php" |
79 | 79 | ], |
80 | 80 | "serve": [ |
81 | 81 | "\\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" |
84 | 86 | } |
85 | 87 | } |
0 commit comments