Skip to content
Permalink
Branch: master
Find file Copy path
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
32 lines (26 sloc) 620 Bytes
# 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
You can’t perform that action at this time.