-
-
Notifications
You must be signed in to change notification settings - Fork 439
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added ddev command shortcuts (#2868)
- Loading branch information
Showing
7 changed files
with
86 additions
and
46 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
## Description: run PHP-CS-Fixer | ||
## Usage: php-cs-fixer | ||
## Example: ddev php-cs-fixer <path-to-files> | ||
|
||
php vendor/bin/php-cs-fixer fix "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
## Description: run PHPCodeBeautifier | ||
## Usage: phpcbf | ||
## Example: ddev phpcbf <path-to-files> | ||
|
||
php vendor/bin/phpcbf -s -p --report=full,source,summary "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
## Description: run PHPCodeSniffer | ||
## Usage: phpcs | ||
## Example: ddev phpcs <path-to-files> | ||
|
||
php vendor/bin/phpcs -s -p --report=full,summary "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
## Description: run PHPMD | ||
## Usage: phpmd | ||
## Example: ddev phpmd <path-to-files> | ||
|
||
php vendor/bin/phpmd "$@" text .phpmd.dist.xml |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
## Description: run PHPStan | ||
## Usage: phpstan | ||
## Example: ddev phpstan <path-to-files> | ||
|
||
XDEBUG_MODE=off php vendor/bin/phpstan analyze "$@" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -623,3 +623,7 @@ | |
- dev/sonar* | ||
- .github/workflows/phpunit.yml | ||
- .github/workflows/sonar.yml | ||
|
||
'ddev': | ||
- .ddev/* | ||
- .ddev/**/* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters