We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9a9d398 commit 7d92d42Copy full SHA for 7d92d42
commands/web/phpcbf
@@ -0,0 +1,16 @@
1
+#!/bin/bash
2
+
3
+#ddev-generated
4
+## Command provided by https://github.com/ddev/ddev-drupal-contrib
5
+## Description: Run phpcbf inside the web container
6
+## Usage: phpcbf [flags] [args]
7
+## Example: "ddev phpcbf" or "ddev phpcbf -n"
8
+## ProjectTypes: drupal8,drupal9,drupal10
9
+## ExecRaw: true
10
11
+if ! command -v phpcbf >/dev/null; then
12
+ echo "phpcbf is not available. You may need to 'ddev composer install'"
13
+ exit 1
14
+fi
15
+test -e phpcs.xml.dist || curl -OL https://git.drupalcode.org/project/gitlab_templates/-/raw/1.0.x/scripts/phpcs.xml.dist
16
+phpcbf -s --report-full --report-summary --report-source web/modules/custom "$@"
0 commit comments