php-cs-fixer
A tool to automatically fix PHP Coding Standards issues.
Installation
dagger install github.com/sagikazarmark/daggerverse/php-cs-fixer@v0.1.0
Entrypoint
Return Type
PhpCsFixer !
Arguments
Name | Type | Description |
---|---|---|
version | String | Version (image tag) to use from the official image repository as a base container. |
phpVersion | String | Customize PHP version (currently supported: any minor version from the 8.x branch). |
container | Container | Custom container to use as a base container. Takes precedence over version. |
Example
dagger -m github.com/sagikazarmark/daggerverse/php-cs-fixer@84e479601ced57c999880867f0beb56e2afd683d 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 🔗
container() 🔗
Return Type
Container !
Example
dagger -m github.com/sagikazarmark/daggerverse/php-cs-fixer@84e479601ced57c999880867f0beb56e2afd683d call \
container
func (m *myModule) example() *Container {
return dag.
PhpCsFixer().
Container()
}
@function
def example() -> dagger.Container:
return (
dag.php_cs_fixer()
.container()
)
@func()
example(): Container {
return dag
.phpCsFixer()
.container()
}
check() 🔗
Check if configured files/directories comply with configured rules.
Return Type
Container !
Arguments
Name | Type | Default Value | Description |
---|---|---|---|
source | Directory ! | - | No description provided |
paths | [String ! ] | - | Paths with source code to run analysis on. |
Example
dagger -m github.com/sagikazarmark/daggerverse/php-cs-fixer@84e479601ced57c999880867f0beb56e2afd683d call \
check --source DIR_PATH
func (m *myModule) example(source *Directory) *Container {
return dag.
PhpCsFixer().
Check(source)
}
@function
def example(source: dagger.Directory) -> dagger.Container:
return (
dag.php_cs_fixer()
.check(source)
)
@func()
example(source: Directory): Container {
return dag
.phpCsFixer()
.check(source)
}