Skip to content

Commit 51140e4

Browse files
committed
Remove doubled condition
Signed-off-by: Kamil Tekiela <[email protected]>
1 parent 449d371 commit 51140e4

File tree

3 files changed

+1
-10
lines changed

3 files changed

+1
-10
lines changed

phpstan-baseline.neon

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -320,11 +320,6 @@ parameters:
320320
count: 8
321321
path: src/Components/OptionsArray.php
322322

323-
-
324-
message: "#^Right side of && is always true\\.$#"
325-
count: 1
326-
path: src/Components/OptionsArray.php
327-
328323
-
329324
message: "#^Property PhpMyAdmin\\\\SqlParser\\\\Components\\\\OrderKeyword\\:\\:\\$expr \\(PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\) does not accept PhpMyAdmin\\\\SqlParser\\\\Components\\\\Expression\\|null\\.$#"
330325
count: 2

psalm-baseline.xml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -468,10 +468,6 @@
468468
<PossiblyNullPropertyFetch>
469469
<code><![CDATA[$ret->options[$lastOptionId]['expr']->expr]]></code>
470470
</PossiblyNullPropertyFetch>
471-
<RedundantCondition>
472-
<code><![CDATA[! empty($option['equals']) && $option['equals']]]></code>
473-
<code><![CDATA[$option['equals']]]></code>
474-
</RedundantCondition>
475471
</file>
476472
<file src="src/Components/OrderKeyword.php">
477473
<MoreSpecificImplementedParamType>

src/Components/OptionsArray.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -281,7 +281,7 @@ public static function build($component): string
281281
$options[] = $option;
282282
} else {
283283
$options[] = $option['name']
284-
. (! empty($option['equals']) && $option['equals'] ? '=' : ' ')
284+
. (! empty($option['equals']) ? '=' : ' ')
285285
. (! empty($option['expr']) ? $option['expr'] : $option['value']);
286286
}
287287
}

0 commit comments

Comments
 (0)