File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
src/com/magento/idea/magento2uct/util/php Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -26,12 +26,12 @@ private ReferenceResolverUtil() {
2626 * @return PsiElement
2727 */
2828 public static PsiElement resolve (final @ NotNull PhpReference reference ) {
29- PsiElement resolved = null ;
3029 final String fqn = reference .getFQN ();
3130
3231 if (fqn == null ) {
3332 return null ;
3433 }
34+ PsiElement resolved = null ;
3535
3636 if (isFactoryOrProxy (fqn )) {
3737 final Collection <PhpClass > classes = PhpIndex .getInstance (reference .getProject ())
@@ -57,7 +57,7 @@ public static PsiElement resolve(final @NotNull PhpReference reference) {
5757 * @return boolean
5858 */
5959 private static boolean isFactoryOrProxy (final @ NotNull String fqn ) {
60- Matcher matcher = MagentoTypeEscapeUtil .FACTORY_PROXY_TYPE_PATTERN .matcher (fqn );
60+ final Matcher matcher = MagentoTypeEscapeUtil .FACTORY_PROXY_TYPE_PATTERN .matcher (fqn );
6161
6262 return matcher .find ();
6363 }
You can’t perform that action at this time.
0 commit comments