Tomas Votruba
f4cefb18d3
add CallableNodeTraverserTrait
2019-06-04 23:39:57 +03:00
Tomas Votruba
c59a014be5
fix static
2019-06-04 18:28:01 +03:00
Kevin R
c75925a289
Do not call parent constructor unless it exists
...
Signed-off-by: Kevin R <22906111+cgkkevinr@users.noreply.github.com>
2019-06-04 16:15:48 +02:00
Tomas Votruba
ad75f5527b
fix static method in reflection for StaticCallOnNonStaticToInstanceCallRector [ closes #1431 ]
2019-06-04 15:17:31 +03:00
Tomas Votruba
590c98cf52
[Symfony] Add MakeCommandLazyRector
2019-06-04 13:54:44 +03:00
Tomas Votruba
3d78ad6960
fix symfony/finder compact in LevelOptionResolver
2019-06-04 13:29:39 +03:00
Tomas Votruba
6ddf372c15
add --set alias to --level, better name
2019-06-01 11:48:43 +03:00
Tomas Votruba
9665d586ce
make LevelOptionResolver smarter
2019-06-01 11:46:18 +03:00
Tomas Votruba
ffa631c3c9
[PHP] Add is_countable to CountOnNull
2019-06-01 01:56:36 +03:00
Tomas Votruba
6854f3ef1e
fix RenameClassRector to change only direct class names, not children [ closes #1514 ]
2019-05-31 19:46:43 +03:00
Tomas Votruba
f6da9d2854
fix static
2019-05-31 12:53:59 +02:00
Tomas Votruba
8542fcc812
decrease path by one
2019-05-28 22:38:21 +02:00
Tomas Votruba
bc4da3b79a
fix incompatibilites
2019-05-28 20:11:19 +02:00
Tomas Votruba
a0bb1ed604
cs: fix array indent
2019-05-28 20:11:19 +02:00
Tomas Votruba
d8ec1b5da4
show relative paths in JsonOutpuFormatter
2019-05-28 18:28:09 +02:00
Tomas Votruba
a9c6d1aa85
remove unused method
2019-05-28 17:28:57 +02:00
Tomas Votruba
965be1f7f1
hide 2 extra spaces for progress bar
2019-05-28 17:00:35 +02:00
Tomas Votruba
2251b2797c
move config and version to each particular output formatter
2019-05-28 16:52:48 +02:00
Tomas Votruba
d869606655
unite OutputFormatterInterface to report() method
2019-05-28 16:28:46 +02:00
Tomas Votruba
8ca511a8e2
add JsonOutputFormatter
2019-05-28 16:18:05 +02:00
Tomas Votruba
0735925796
[SOLID] Add AbstractChildlessUnusedClassesRector
2019-05-26 14:24:23 +02:00
Tomas Votruba
2f6e3bef75
[CodingStyle] Add VarConstantCommentRector
2019-05-26 13:13:22 +02:00
Tomas Votruba
1d24dae9df
update to php-parser 4.2.2
2019-05-25 22:54:28 +02:00
Tomas Votruba
f0e86b25bf
introduce OutputFormatterCollector to allow extension of output formatters
2019-05-25 20:34:10 +02:00
Tomas Votruba
cbe0a8b36b
fix deleting file that matches class name
2019-05-24 16:32:47 +02:00
Tomas Votruba
f51b3d3a71
[PHP] Add StringClassNameToClassConstantRector
2019-05-24 15:05:39 +02:00
Tomas Votruba
c0415f9216
do not override printing files with previous stmts if possible
2019-05-23 22:07:25 +02:00
Tomas Votruba
7c6c6aaa45
[Psr4] Add supprot for namespace less MultipleClassFileToPsr4ClassesRector
2019-05-23 08:09:28 +02:00
Tomas Votruba
53cd941dcd
refactor ImportFullyQualifiedNamesRector to allow non-namespaced elements
2019-05-22 17:33:51 +02:00
Tomas Votruba
c4562fc741
[PHP 7.1] Add BinaryOpBetweenNumberAndStringRector
2019-05-19 13:28:43 +02:00
Tomas Votruba
c71a2e8f81
report deleted/added files in FileSystem Rectors
2019-05-19 09:38:39 +02:00
Tom Klingenberg
4a13ed5387
Add working directory option
...
New command-line utility option:
-d, --working-dir=WORKING-DIR
If specified, use the given directory as working directory.
Follows same syntax as Composer (quick port from there).
There is a clash with the process command -d alias. It's behavior
changes:
Old usage of the -d flag will throw an exception as it now requires an
argument.
Instead use the -n switch which is also in the commons for --dry-run (e.g.
see git).
2019-05-14 17:04:22 +02:00
Tomas Votruba
932bb277fa
speedup RenameClassRector on doc comments
2019-05-13 23:39:29 +02:00
Tomáš Votruba
2b2928eab9
Merge pull request #1418 from rectorphp/inject-annot
...
[PHP-DI] Add php-di @Inject annotation import
2019-05-12 18:59:45 +02:00
Tomáš Votruba
de4cca7f3b
Merge pull request #1414 from rectorphp/split-all-classlike-psr4
...
[PSR-4 Split] Split interfaces and traits as well
2019-05-12 18:45:22 +02:00
Tomas Votruba
5d73191fa8
decouple JmsInjectAnnotationRector to configurable InjectAnnotationClassRector
2019-05-12 18:02:28 +02:00
Dave Liddament
c3db77127d
Removed duplicated code
2019-05-11 13:21:01 +01:00
Jan Mikeš
31d2ce4d3b
[PSR-4 Split] Split interfaces and traits as well
2019-05-11 00:29:14 +02:00
Tomas Votruba
83d2219ca7
[TypeDeclaration] Add AddFunctionReturnTypeRector
2019-05-10 14:55:55 +02:00
Jan Mikeš
9958a44ec3
Added support for renaming class and it’s namespace
2019-05-08 13:00:28 +02:00
Tomas Votruba
e2d2d7ed5c
fix FileProcessor node need for node scope resolver
2019-05-07 16:54:32 +02:00
Thomas Gerbet
68bda32d06
Preserve file permissions when updating a file
...
The change of permissions is not explicitely requested by the user
and is not shown in the dry-run. It makes Rector harder to use when
the sources of a project has some executable scripts.
2019-05-06 21:47:51 +02:00
Tomas Votruba
bd909ab3ef
[DeadCode] Add RemoveDefaultArgumentValueRector
2019-05-06 00:34:10 +02:00
Tomas Votruba
b9b4c5c1b1
[cs] import namespaces
2019-05-05 20:48:46 +02:00
Tomas Votruba
bac303c52f
remove original file if in different name - in MultipleClassFileToPsr4ClassesRector
2019-05-02 01:32:33 +02:00
Tomas Votruba
25258e1028
fix cs
2019-05-01 00:49:59 +02:00
Tomas Votruba
9427b46ed9
Notice file rectors on run [ closes #1355 ]
2019-04-29 11:45:20 +02:00
Tomas Votruba
1fe23d12c8
merge getRectorClass() and getRectorConfiguration()
2019-04-29 07:36:22 +02:00
Tomas Votruba
163392bd9b
coding style
2019-04-29 06:09:00 +02:00
Tomas Votruba
5fa34b0e2d
remove unused test configs
2019-04-29 01:26:03 +02:00