Problem/Motivation
Remove unused variables [$resource,$key] from ResourceTest
foreach ($manager->getDefinitions() as $resource => $definition) {
foreach ($definition['uri_paths'] as $key => $uri_path) {
$this->assertStringNotContainsString('//', $uri_path, 'The resource URI path does not have duplicate slashes.');
}
}
Steps to reproduce
Proposed resolution
Remaining tasks
User interface changes
API changes
Data model changes
Release notes snippet
| Comment | File | Size | Author |
|---|
Issue fork drupal-3338899
Show commands
Start within a Git clone of the project using the version control instructions.
Or, if you do not have SSH keys set up on git.drupalcode.org:
Comments
Comment #4
samaraof@ciandt.com commentedHi , I'm opened a pull request for this change. Tests it's ok :)
Comment #5
nikhil_110 commentedRemove unused variables for Patch Drupal 10.x
Comment #6
sourabhjain@nikhil PR Is already created so we don't need patch now.
Moving it to needs review.
Comment #7
smustgrave commentedAppears #5 is the same as the MR so removing credit for that as a reupload.
Change in MR 3390 seems fine.
Comment #8
quietone commentedThanks for working to improve Drupal core.
The changes here are coding standard changes which are done by rule and not by individual file. That will prevent future re-introductions of this problem. Coding standard fixes are being coordinated at #3319843: [Meta] Fix coding standards in core. For this particular issue, the work is being done in #3251754: Use DrupalPractice.CodeAnalysis.VariableAnalysis for Kernel and Unit tests. The changes here are already in the patch over there.
I'll make this a duplicate and move credit for the MR.