-
-
Notifications
You must be signed in to change notification settings - Fork 440
Expand file tree
/
Copy pathexpected-output.diff
More file actions
47 lines (38 loc) · 825 Bytes
/
expected-output.diff
File metadata and controls
47 lines (38 loc) · 825 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
2 files with changes
====================
1) src/MultiRules.php:6
---------- begin diff ----------
@@ Line 6 @@
{
if (true === false) {
return -1;
- } else {
- echo 'a statement';
}
- }
-
- private function notUsed()
- {
+ echo 'a statement';
}
}
----------- end diff -----------
Applied rules:
* RemoveUnusedPrivateMethodRector
* RemoveAlwaysElseRector
2) src/RemoveAlwaysElse.php:6
---------- begin diff ----------
@@ Line 6 @@
{
if ($value) {
throw new \InvalidStateException;
- } else {
- return 10;
}
+ return 10;
}
}
----------- end diff -----------
Applied rules:
* RemoveAlwaysElseRector
[OK] 2 files would have been changed (dry-run) by Rector