mirror of
https://github.com/rectorphp/rector.git
synced 2024-09-01 13:19:38 +00:00
32 lines
620 B
Plaintext
32 lines
620 B
Plaintext
# run "bin/rector create" to create a new Rector + tests from this config
|
|
package: "Celebrity"
|
|
name: "SplitToExplodeRector"
|
|
node_types:
|
|
- "Assign" # put main node first
|
|
|
|
description: "Removes unneeded $a = $a assigns"
|
|
code_before: |
|
|
<?php
|
|
|
|
class SomeClass
|
|
{
|
|
public function run()
|
|
{
|
|
$a = $a;
|
|
}
|
|
}
|
|
|
|
code_after: |
|
|
<?php
|
|
|
|
class SomeClass
|
|
{
|
|
public function run()
|
|
{
|
|
}
|
|
}
|
|
|
|
source: # e.g. link to RFC or headline in upgrade guide, 1 or more in the list
|
|
- ""
|
|
level: "" # e.g. symfony30.yaml, target config to append this rector to
|