mirror of
https://github.com/rectorphp/rector.git
synced 2025-02-23 03:02:33 +01:00
16 lines
451 B
Plaintext
16 lines
451 B
Plaintext
# run "bin/rector create" to create a new Rector + tests from this config
|
|
package: "CodeQuality"
|
|
name: "SimplifyMirrorAssignRector"
|
|
node_types:
|
|
- "Assign" # put main node first
|
|
|
|
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
|
|
- ""
|
|
level: "" # e.g. symfony30.yml, target config to append this rector to
|