Part of meta-issue #2002650: [meta, no patch] improve maintainability by removing unused local variables
File /core/modules/system/lib/Drupal/system/Plugin/Block/SystemMenuBlock.php
Line 31: Unused local variable $plugin
Line 39: Unused local variable $plugin
| Comment | File | Size | Author |
|---|---|---|---|
| #1 | core-remove-unused-local-variables-systemmenyblock.php-2060721-1.patch | 1.1 KB | legolasbo |
Comments
Comment #1
legolasboAttached patch removes the unused variables.
Comment #2
legolasboComment #4
legolasbo#1: core-remove-unused-local-variables-systemmenyblock.php-2060721-1.patch queued for re-testing.
Comment #5
dawehnerCheck that variables ...
Comment #6
webchickHm. Not sure about this one. It seems to make the code less readable.
Comment #7
michaelhiiva commentedThe patch applies cleanly, list function on line 32 and 40 can be use this way in PHP and the code is readable.
Comment #8
catchYep. Committed/pushed to 8.x, thanks!
Comment #9
tstoecklerHmm...
I would have thought the standard is
instead of
Should we start a docs issue for that?