Skip to content

Commit 87be924

Browse files
UCT-725: Code style fixes
1 parent a58679c commit 87be924

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/com/magento/idea/magento2uct/util/php/ReferenceResolverUtil.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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
}

0 commit comments

Comments
 (0)