diff --git a/.github/workflows/code-style.yaml b/.github/workflows/code-style.yaml index 8bc68f611..6d2f48171 100644 --- a/.github/workflows/code-style.yaml +++ b/.github/workflows/code-style.yaml @@ -1,6 +1,7 @@ name: code-style on: + workflow_dispatch: push: branches: [ master ] pull_request: diff --git a/.github/workflows/rector.yaml b/.github/workflows/rector.yaml index 31a9bea56..1b57864c9 100644 --- a/.github/workflows/rector.yaml +++ b/.github/workflows/rector.yaml @@ -1,6 +1,7 @@ name: rector on: + workflow_dispatch: push: branches: [ master ] pull_request: diff --git a/rector.php b/rector.php index 945b1ac02..e10f29768 100644 --- a/rector.php +++ b/rector.php @@ -16,6 +16,10 @@ // Define what rule sets will be applied $config->import(PHPUnitSetList::ANNOTATIONS_TO_ATTRIBUTES); $config->import(PHPUnitSetList::PHPUNIT_100); + $config->import(SetList::STRICT_BOOLEANS); + $config->import(SetList::PRIVATIZATION); + $config->import(SetList::EARLY_RETURN); + $config->import(SetList::INSTANCEOF); $config->import(SetList::CODE_QUALITY); $config->import(SetList::DEAD_CODE); $config->import(SetList::PHP_82);