rector/create-rector.yml.dist

16 lines
451 B
Plaintext
Raw Normal View History

# run "bin/rector create" to create a new Rector + tests from this config
2018-10-23 18:57:56 +02:00
package: "CodeQuality"
name: "SimplifyMirrorAssignRector"
node_types:
2018-10-23 18:57:56 +02:00
- "Assign" # put main node first
2018-10-23 18:57:56 +02:00
description: "Removes unneeded $a = $a assigns"
code_before: |
<?php
$a = $a;
code_after: |
<?php
source: # e.g. link to RFC or headline in upgrade guide, 1 or more in the list
- ""
2018-10-23 18:57:56 +02:00
level: "" # e.g. symfony30.yml, target config to append this rector to