-
Notifications
You must be signed in to change notification settings - Fork 134
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Removed unused variables #604
Removed unused variables #604
Conversation
dd62230
to
56be162
Compare
src/ContextProvider/OgContext.php
Outdated
@@ -135,8 +134,7 @@ protected function getBestCandidate() { | |||
foreach ($group_resolvers as $plugin_id) { | |||
/** @var \Drupal\og\OgGroupResolverInterface $plugin */ | |||
if ($plugin = $this->pluginManager->createInstance($plugin_id)) { | |||
$plugins[$plugin_id] = $plugin; | |||
|
|||
// $plugins[$plugin_id] = $plugin; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
this doesn't seem right?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed in the next commit.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for working on this! This is looking good, except for one case: PHP_CodeSniffer cannot understand the way that our test is using a variable assignment to trigger an exception. Instead of adding a fake line that returns the value, we should just disable this coding standards check for this case.
This is preferred over introducing unneeded logic to work around the false positive.
Fix for #545