File tree 1 file changed +3
-6
lines changed
src/main/java/fr/adrienbrault/idea/symfony2plugin/navigation
1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 17
17
* @author Daniel Espendiller <[email protected] >
18
18
*/
19
19
public class PhpGotoRelatedProvider extends GotoRelatedProvider {
20
-
21
20
@ NotNull
22
21
@ Override
23
22
public List <? extends GotoRelatedItem > getItems (@ NotNull PsiElement psiElement ) {
24
-
25
- if (!Symfony2ProjectComponent .isEnabled (psiElement )) {
23
+ if (!Symfony2ProjectComponent .isEnabled (psiElement )) {
26
24
return Collections .emptyList ();
27
25
}
28
26
29
- if (psiElement .getLanguage () != PhpLanguage .INSTANCE ) {
27
+ if (psiElement .getLanguage () != PhpLanguage .INSTANCE ) {
30
28
return Collections .emptyList ();
31
29
}
32
30
33
31
Method method = PsiTreeUtil .getParentOfType (psiElement , Method .class );
34
- if (method == null || !method .getName ().endsWith ( "Action" )) {
32
+ if (method == null || !method .getAccess ().isPublic ( )) {
35
33
return Collections .emptyList ();
36
34
}
37
35
38
36
return ControllerMethodLineMarkerProvider .getGotoRelatedItems (method );
39
37
}
40
-
41
38
}
You can’t perform that action at this time.
0 commit comments