Skip to content

Commit 213ccd9

Browse files
arshidkv12Arshid
andauthored
6.x: Remove underscore prefix from property names (#324)
* Remove _ prefix in Utility * Remove _ prefix in Utility * Remove _ prefix in Utility * Remove _ prefix in Utility --------- Co-authored-by: Arshid <arshid@Arshids-MacBook-Air.local>
1 parent 8cc7344 commit 213ccd9

1 file changed

Lines changed: 11 additions & 0 deletions

File tree

config/rector/sets/cakephp60.php

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,17 @@
2121

2222
$rectorConfig->ruleWithConfiguration(RenamePropertyRector::class, [
2323
new RenameProperty('Cake\ORM\Entity', '_accessible', 'patchable'),
24+
new RenameProperty('Cake\Utility\Inflector', '_plural', 'plural'),
25+
new RenameProperty('Cake\Utility\Inflector', '_singular', 'singular'),
26+
new RenameProperty('Cake\Utility\Inflector', '_irregular', 'irregular'),
27+
new RenameProperty('Cake\Utility\Inflector', '_uninflected', 'uninflected'),
28+
new RenameProperty('Cake\Utility\Inflector', '_cache', 'cache'),
29+
new RenameProperty('Cake\Utility\Inflector', '_initialState', 'initialState'),
30+
new RenameProperty('Cake\Utility\Security', '_hashType', 'hashType'),
31+
new RenameProperty('Cake\Utility\Security', '_salt', 'salt'),
32+
new RenameProperty('Cake\Utility\Security', '_instance', 'instance'),
33+
new RenameProperty('Cake\Utility\CookieCryptTrait', '_validCiphers', 'validCiphers'),
34+
new RenameProperty('Cake\Utility\Text', '_defaultTransliterator', 'defaultTransliterator'),
2435
]);
2536

2637
$rectorConfig->ruleWithConfiguration(RenameStringRector::class, [

0 commit comments

Comments
 (0)