File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
src/com/magento/idea/magento2plugin/inspections/xml/fix Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change 7
7
8
8
import com .intellij .codeInspection .LocalQuickFix ;
9
9
import com .intellij .codeInspection .ProblemDescriptor ;
10
- import com .intellij .openapi .command .WriteCommandAction ;
11
10
import com .intellij .openapi .project .Project ;
12
11
import com .jetbrains .php .lang .inspections .quickfix .PhpChangeMethodModifiersQuickFix ;
13
12
import com .jetbrains .php .lang .psi .elements .Method ;
16
15
import org .jetbrains .annotations .NotNull ;
17
16
18
17
public class MethodNotPublicAccessQuickFix implements LocalQuickFix {
19
- private InspectionBundle inspectionBundle = new InspectionBundle ();
20
- private Method method ;
18
+ private final InspectionBundle inspectionBundle = new InspectionBundle ();
19
+ private final Method method ;
21
20
22
- public MethodNotPublicAccessQuickFix (Method method ) {
21
+ public MethodNotPublicAccessQuickFix (final Method method ) {
23
22
this .method = method ;
24
23
}
25
24
@@ -30,7 +29,10 @@ public String getFamilyName() {
30
29
}
31
30
32
31
@ Override
33
- public void applyFix (@ NotNull Project project , @ NotNull ProblemDescriptor descriptor ) {
32
+ public void applyFix (
33
+ final @ NotNull Project project ,
34
+ final @ NotNull ProblemDescriptor descriptor
35
+ ) {
34
36
PhpChangeMethodModifiersQuickFix .changeMethodModifier (
35
37
this .method ,
36
38
PhpModifier .PUBLIC_IMPLEMENTED_DYNAMIC
You can’t perform that action at this time.
0 commit comments