mirror of
https://github.com/rectorphp/rector.git
synced 2025-01-19 06:18:07 +01:00
9 lines
274 B
YAML
9 lines
274 B
YAML
package: 'CodeQuality'
|
|
name: 'SimplifyInArrayValuesRector' # w/wo suffix
|
|
node_types:
|
|
- 'FuncCall'
|
|
|
|
description: 'Removes unneeded array_values() in in_array() call'
|
|
code_before: "in_array('key', array_values($array), true);"
|
|
code_after: "in_array('key', $array, true);"
|