|
17 | 17 | "psr/log": "^3.0" |
18 | 18 | }, |
19 | 19 | "require-dev": { |
20 | | - "codeigniter/coding-standard": "^1.7", |
21 | | - "codeigniter/phpstan-codeigniter": "^1.4", |
22 | | - "ergebnis/composer-normalize": "^2.28", |
23 | 20 | "fakerphp/faker": "^1.9", |
24 | | - "friendsofphp/php-cs-fixer": "^3.47.1", |
25 | 21 | "kint-php/kint": "^5.0.4", |
26 | 22 | "mikey179/vfsstream": "^1.6", |
27 | | - "nexusphp/cs-config": "^3.6", |
28 | 23 | "nexusphp/tachycardia": "^2.0", |
29 | | - "phpstan/extension-installer": "^1.3", |
30 | | - "phpstan/phpstan": "^1.11", |
31 | | - "phpstan/phpstan-strict-rules": "^1.6", |
32 | 24 | "phpunit/phpcov": "^9.0.2", |
33 | 25 | "phpunit/phpunit": "^10.5.16", |
34 | | - "predis/predis": "^1.1 || ^2.0", |
35 | | - "rector/rector": "1.2.1", |
36 | | - "vimeo/psalm": "^5.0" |
| 26 | + "predis/predis": "^1.1 || ^2.0" |
37 | 27 | }, |
38 | 28 | "replace": { |
39 | 29 | "codeigniter4/framework": "self.version" |
|
71 | 61 | }, |
72 | 62 | "autoload-dev": { |
73 | 63 | "psr-4": { |
74 | | - "CodeIgniter\\": "tests/system/", |
75 | | - "Utils\\": "utils/" |
| 64 | + "CodeIgniter\\": "tests/system/" |
76 | 65 | } |
77 | 66 | }, |
78 | 67 | "config": { |
79 | | - "allow-plugins": { |
80 | | - "ergebnis/composer-normalize": true, |
81 | | - "phpstan/extension-installer": true |
82 | | - }, |
83 | 68 | "optimize-autoloader": true, |
84 | 69 | "preferred-install": "dist", |
85 | 70 | "sort-packages": true |
|
90 | 75 | } |
91 | 76 | }, |
92 | 77 | "scripts": { |
| 78 | + "post-autoload-dump": [ |
| 79 | + "@composer update --working-dir=utils" |
| 80 | + ], |
93 | 81 | "post-update-cmd": [ |
94 | | - "CodeIgniter\\ComposerScripts::postUpdate", |
95 | | - "composer update --working-dir=tools/phpmetrics" |
| 82 | + "CodeIgniter\\ComposerScripts::postUpdate" |
96 | 83 | ], |
97 | 84 | "analyze": [ |
98 | 85 | "Composer\\Config::disableProcessTimeout", |
99 | | - "bash -c \"XDEBUG_MODE=off phpstan analyse\"", |
100 | | - "rector process --dry-run" |
| 86 | + "bash -c \"XDEBUG_MODE=off utils/vendor/bin/phpstan analyse\"", |
| 87 | + "utils/vendor/bin/rector process --dry-run" |
101 | 88 | ], |
102 | 89 | "cs": [ |
103 | 90 | "Composer\\Config::disableProcessTimeout", |
104 | | - "php-cs-fixer fix --ansi --verbose --dry-run --diff --config=.php-cs-fixer.user-guide.php", |
105 | | - "php-cs-fixer fix --ansi --verbose --dry-run --diff --config=.php-cs-fixer.no-header.php", |
106 | | - "php-cs-fixer fix --ansi --verbose --dry-run --diff --config=.php-cs-fixer.tests.php", |
107 | | - "php-cs-fixer fix --ansi --verbose --dry-run --diff" |
| 91 | + "utils/vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run --diff --config=.php-cs-fixer.user-guide.php", |
| 92 | + "utils/vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run --diff --config=.php-cs-fixer.no-header.php", |
| 93 | + "utils/vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run --diff --config=.php-cs-fixer.tests.php", |
| 94 | + "utils/vendor/bin/php-cs-fixer fix --ansi --verbose --dry-run --diff" |
108 | 95 | ], |
109 | 96 | "cs-fix": [ |
110 | 97 | "Composer\\Config::disableProcessTimeout", |
111 | | - "php-cs-fixer fix --ansi --verbose --diff --config=.php-cs-fixer.user-guide.php", |
112 | | - "php-cs-fixer fix --ansi --verbose --diff --config=.php-cs-fixer.no-header.php", |
113 | | - "php-cs-fixer fix --ansi --verbose --diff --config=.php-cs-fixer.tests.php", |
114 | | - "php-cs-fixer fix --ansi --verbose --diff" |
| 98 | + "utils/vendor/bin/php-cs-fixer fix --ansi --verbose --diff --config=.php-cs-fixer.user-guide.php", |
| 99 | + "utils/vendor/bin/php-cs-fixer fix --ansi --verbose --diff --config=.php-cs-fixer.no-header.php", |
| 100 | + "utils/vendor/bin/php-cs-fixer fix --ansi --verbose --diff --config=.php-cs-fixer.tests.php", |
| 101 | + "utils/vendor/bin/php-cs-fixer fix --ansi --verbose --diff" |
115 | 102 | ], |
116 | | - "metrics": "tools/phpmetrics/vendor/bin/phpmetrics --config=phpmetrics.json", |
| 103 | + "metrics": "utils/vendor/bin/phpmetrics --config=phpmetrics.json", |
117 | 104 | "sa": "@analyze", |
118 | 105 | "style": "@cs-fix", |
119 | 106 | "test": "phpunit" |
|
0 commit comments