Fix: wp menu item update --position does not reshuffle other menu items
#860
code-quality.yml
on: pull_request
code-quality
/
Lint GitHub Actions workflows
5s
code-quality
/
Lint PHP files
16s
code-quality
/
Lint Gherkin Feature files
18s
code-quality
/
Spell check
6s
code-quality
/
PHPCS
29s
code-quality
/
PHPStan
33s
Annotations
19 errors and 2 warnings
|
code-quality / PHPCS:
src/Menu_Item_Command.php#L655
Whitespace found at end of line
|
|
code-quality / PHPCS:
src/Menu_Item_Command.php#L654
Whitespace found at end of line
|
|
code-quality / PHPCS:
src/Menu_Item_Command.php#L653
Whitespace found at end of line
|
|
code-quality / PHPCS:
src/Menu_Item_Command.php#L652
Whitespace found at end of line
|
|
code-quality / PHPCS:
src/Menu_Item_Command.php#L651
Whitespace found at end of line
|
|
code-quality / PHPCS:
src/Menu_Item_Command.php#L650
Whitespace found at end of line
|
|
code-quality / PHPCS:
src/Menu_Item_Command.php#L649
Whitespace found at end of line
|
|
code-quality / PHPCS:
src/Menu_Item_Command.php#L648
Whitespace found at end of line
|
|
code-quality / PHPCS:
src/Menu_Item_Command.php#L647
Whitespace found at end of line
|
|
code-quality / PHPCS:
src/Menu_Item_Command.php#L646
Whitespace found at end of line
|
|
code-quality / PHPCS
Process completed with exit code 2.
|
|
code-quality / PHPStan
Process completed with exit code 1.
|
|
code-quality / PHPStan:
src/Menu_Item_Command.php#L709
Variable $pending_menu_order_updates in empty() always exists and is always falsy.
|
|
code-quality / PHPStan:
src/Menu_Item_Command.php#L686
Comparison operation "<=" between *NEVER* and int<0, max> results in an error.
|
|
code-quality / PHPStan:
src/Menu_Item_Command.php#L678
Comparison operation "<=" between int<0, max> and *NEVER* results in an error.
|
|
code-quality / PHPStan:
src/Menu_Item_Command.php#L676
Comparison operation "<" between int<1, max> and *NEVER* results in an error.
|
|
code-quality / PHPStan:
src/Menu_Item_Command.php#L675
Strict comparison using !== between int<1, max> and *NEVER* will always evaluate to true.
|
|
code-quality / PHPStan:
src/Menu_Item_Command.php#L675
Result of && is always false.
|
|
code-quality / PHPStan:
src/Menu_Item_Command.php#L675
Comparison operation ">" between 0 and 0 is always false.
|
|
code-quality / PHPCS:
src/Menu_Item_Command.php#L672
Equals sign not aligned with surrounding assignments; expected 16 spaces but found 1 space
|
|
code-quality / PHPCS:
src/Menu_Item_Command.php#L1
File has mixed line endings; this may cause incorrect results
|