Go to AdminNotification plugin dir:
composer install
Go to Matomo root (/var/www/html usually) run:
/var/www/html/plugins/AdminNotification/vendor/bin/phpstan analyze -c /var/www/html/plugins/AdminNotification/tests/phpstan.neon --level=1 /var/www/html/plugins/AdminNotification
Go to AdminNotification plugin dir:
composer install
Run PHP Codesniffer
vendor/bin/phpcs --ignore=*/vendor/* --standard=PSR2 .