Skip to content

Commit 27228b8

Browse files
Fixed static checks
1 parent f636b1e commit 27228b8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/com/magento/idea/magento2plugin/util/php/PhpTypeMetadataParserUtil.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ public static List<Method> getMethodsByNames(
135135
*
136136
* @return String
137137
*/
138-
@SuppressWarnings({"PMD.CyclomaticComplexity", "PMD.NPathComplexity"})
138+
@SuppressWarnings({"PMD.CyclomaticComplexity", "PMD.NPathComplexity", "PMD.ConfusingTernary"})
139139
public static String getMethodDefinitionForInterface(
140140
final @NotNull Method method,
141141
final String defaultMethodDescription
@@ -152,9 +152,9 @@ public static String getMethodDefinitionForInterface(
152152

153153
if (methodDoc != null) {
154154
methodDescription = getShortDescription(method);
155-
methodDocReturn = methodDoc.getReturnTag() != null
156-
? methodDoc.getReturnTag().getText()
157-
: null;
155+
methodDocReturn = methodDoc.getReturnTag() == null
156+
? null
157+
: methodDoc.getReturnTag().getText();
158158
}
159159

160160
if (methodDescription.isEmpty() && defaultMethodDescription != null) {

0 commit comments

Comments
 (0)