This repository was archived by the owner on Jul 12, 2020. It is now read-only.
File tree 2 files changed +15
-0
lines changed
src/main/QafooLabs/Refactoring/Adapters/Symfony/Commands
2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -78,6 +78,18 @@ all the occurrences in the selected method to use the instance variable:
78
78
79
79
php refactor.phar convert-local-to-instance-variable <file> <line> <variable>
80
80
81
+ ### Rename Class and Namespaces
82
+
83
+ Batch Operation to rename classes and namespaces by syncing class-names (IS-state)
84
+ to filesystem names (SHOULD-state) based on the assumption of PSR-0.
85
+
86
+ Fix class and namespace names to correspond to the current filesystem layout,
87
+ given that the project uses PSR-0. This means you can use this tool to
88
+ rename classes and namespaces by renaming folders and files and then applying
89
+ the command to fix class and namespaces.
90
+
91
+ php refactor.phar fix-class-names <dir>
92
+
81
93
## Roadmap
82
94
83
95
Not prioritized.
Original file line number Diff line number Diff line change @@ -46,6 +46,9 @@ protected function configure()
46
46
This refactoring is usually used during cleanup of code into
47
47
single units.
48
48
49
+ This refactoring automatically detects all necessary inputs and outputs from the
50
+ function and generates the argument list and return statement accordingly.
51
+
49
52
<comment>Operations:</comment>
50
53
51
54
1. Create a new method containing the selected code.
You can’t perform that action at this time.
0 commit comments