Dagger
Search

php-cs-fixer

This module provides a function to run php-cs-fixer on PHP files.

Installation

dagger install github.com/tsirysndr/daggerverse/php-cs-fixer@e8bed26dfefaaf4ef3d00958965575131f34c69c

Entrypoint

Return Type
PhpCsFixer
Example
dagger -m github.com/tsirysndr/daggerverse/php-cs-fixer@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
func (m *myModule) example() *PhpCsFixer  {
	return dag.
			PhpCsFixer()
}
@function
def example() -> dag.PhpCsFixer:
	return (
		dag.php_cs_fixer()
	)
@func()
example(): PhpCsFixer {
	return dag
		.phpCsFixer()
}

Types

PhpCsFixer 🔗

fix() 🔗

Run php-cs-fixer on PHP files.

Return Type
Directory !
Arguments
NameTypeDefault ValueDescription
srcDirectory !-No description provided
pathString "."No description provided
tagString "latest"No description provided
Example
dagger -m github.com/tsirysndr/daggerverse/php-cs-fixer@e8bed26dfefaaf4ef3d00958965575131f34c69c call \
 fix --src DIR_PATH
func (m *myModule) example(src *Directory) *Directory  {
	return dag.
			PhpCsFixer().
			Fix(src)
}
@function
def example(src: dagger.Directory) -> dagger.Directory:
	return (
		dag.php_cs_fixer()
		.fix(src)
	)
@func()
example(src: Directory): Directory {
	return dag
		.phpCsFixer()
		.fix(src)
}