@@ -16,13 +16,16 @@ ARG COMPOSER_HOME=/tmp/composer
16
16
17
17
ARG PHIVE_VERSION_KEY=0x6AF725270AB81E04D79442549D8A98B29B2D5D79
18
18
19
+ ARG COMPOSER_UNUSED_KEY=0xD969E61026434DFE4D641764F4D32E2C9343B2AE
19
20
ARG DEPTRAC_VERSION_KEY=0x41DDE07547459FAECFA17813B8F640134AB1782E
21
+ ARG ERGEBNIS_COMPOSER_NORMALIZE_KEY=0x0FDE18AE1D09E19F60F6B1CBC00543248C87FB13
22
+ ARG PHP_CODESNIFFER_KEY=0xA972B9ABB95D0B760B51442231C7E470E2138192
20
23
ARG PHP_CS_FIXER_VERSION_KEY=0xBBAB5DF0A0D6672989CF1869E82B2FB314E9906E
21
24
ARG PHPLOC_VERSION_KEY=0x4AA394086372C20A
22
25
ARG PSALM_VERSION_KEY=0x2DE50EB60C013FFFA831040D12CE0F1D262429A5
23
- ARG ERGEBNIS_COMPOSER_NORMALIZE_KEY=0x0FDE18AE1D09E19F60F6B1CBC00543248C87FB13
24
26
25
27
ARG COMPOSER_PACKAGES="\
28
+ nunomaduro/phpinsights \
26
29
"
27
30
28
31
ARG TOOLS="\
@@ -151,6 +154,7 @@ RUN set -eux \
151
154
/home/user \
152
155
${COMPOSER_HOME} \
153
156
&& chmod 777 /home/user ${COMPOSER_HOME} \
157
+ && composer global config allow-plugins.dealerdirect/phpcodesniffer-composer-installer true \
154
158
&& composer --no-interaction global --prefer-stable \
155
159
--optimize-autoloader require \
156
160
${COMPOSER_PACKAGES} \
@@ -166,12 +170,18 @@ RUN set -eux \
166
170
&& mv phive.phar /usr/local/bin/phive \
167
171
# # // install PHPLOC
168
172
&& phive install phploc --trust-gpg-keys ${PHPLOC_VERSION_KEY} --target /usr/local/bin \
173
+ # # // install composer-unused \
174
+ && phive install composer-unused --trust-gpg-keys ${COMPOSER_UNUSED_KEY} --target /usr/local/bin \
169
175
# # // install deptrac \
170
176
&& phive install deptrac --trust-gpg-keys ${DEPTRAC_VERSION_KEY} --target /usr/local/bin \
171
177
# # // install php-cs-fixer \
172
178
&& phive install php-cs-fixer --trust-gpg-keys ${PHP_CS_FIXER_VERSION_KEY} --target /usr/local/bin \
173
179
# # // install psalm \
174
180
&& phive install psalm --trust-gpg-keys ${PSALM_VERSION_KEY} --target /usr/local/bin \
181
+ # # // install phpcs \
182
+ && phive install phpcs --trust-gpg-keys ${PHP_CODESNIFFER_KEY} --target /usr/local/bin \
183
+ # # // install phpcbf \
184
+ && phive install phpcbf --trust-gpg-keys ${PHP_CODESNIFFER_KEY} --target /usr/local/bin \
175
185
# # // install ergebnis/composer-normalize \
176
186
&& phive install ergebnis/composer-normalize \
177
187
--trust-gpg-keys ${ERGEBNIS_COMPOSER_NORMALIZE_KEY} --target /usr/local/bin \
0 commit comments