File tree Expand file tree Collapse file tree 1 file changed +3
-6
lines changed
src/main/java/fr/adrienbrault/idea/symfony2plugin/navigation Expand file tree Collapse file tree 1 file changed +3
-6
lines changed Original file line number Diff line number Diff line change 1717 * @author Daniel Espendiller <daniel@espendiller.net>
1818 */
1919public class PhpGotoRelatedProvider extends GotoRelatedProvider {
20-
2120 @ NotNull
2221 @ Override
2322 public List <? extends GotoRelatedItem > getItems (@ NotNull PsiElement psiElement ) {
24-
25- if (!Symfony2ProjectComponent .isEnabled (psiElement )) {
23+ if (!Symfony2ProjectComponent .isEnabled (psiElement )) {
2624 return Collections .emptyList ();
2725 }
2826
29- if (psiElement .getLanguage () != PhpLanguage .INSTANCE ) {
27+ if (psiElement .getLanguage () != PhpLanguage .INSTANCE ) {
3028 return Collections .emptyList ();
3129 }
3230
3331 Method method = PsiTreeUtil .getParentOfType (psiElement , Method .class );
34- if (method == null || !method .getName ().endsWith ( "Action" )) {
32+ if (method == null || !method .getAccess ().isPublic ( )) {
3533 return Collections .emptyList ();
3634 }
3735
3836 return ControllerMethodLineMarkerProvider .getGotoRelatedItems (method );
3937 }
40-
4138}
You can’t perform that action at this time.
0 commit comments