-
-
Notifications
You must be signed in to change notification settings - Fork 9.6k
Remove unused local variables #34105
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -425,7 +425,6 @@ private function renderEventListenerTable(EventDispatcherInterface $eventDispatc | |
$tableHeaders = ['Order', 'Callable', 'Priority']; | ||
$tableRows = []; | ||
|
||
$order = 1; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
foreach ($eventListeners as $order => $listener) { | ||
$tableRows[] = [sprintf('#%d', $order + 1), $this->formatCallable($listener), $eventDispatcher->getListenerPriority($event, $listener)]; | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -1043,8 +1043,6 @@ private function registerAssetsConfiguration(array $config, ContainerBuilder $co | |
$container->getDefinition('assets.url_package')->setPrivate(true); | ||
$container->getDefinition('assets.static_version_strategy')->setPrivate(true); | ||
|
||
$defaultVersion = null; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
|
||
|
||
if ($config['version_strategy']) { | ||
$defaultVersion = new Reference($config['version_strategy']); | ||
} else { | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -404,7 +404,7 @@ private function darwinRealpath($real) | |
} | ||
|
||
if (isset($dirFiles[$file])) { | ||
return $real .= $dirFiles[$file]; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Returning an assignation is useless, |
||
return $real.$dirFiles[$file]; | ||
} | ||
|
||
$kFile = strtolower($file); | ||
|
@@ -423,7 +423,7 @@ private function darwinRealpath($real) | |
self::$darwinCache[$kDir][1] = $dirFiles; | ||
} | ||
|
||
return $real .= $dirFiles[$kFile]; | ||
return $real.$dirFiles[$kFile]; | ||
} | ||
|
||
/** | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -219,7 +219,7 @@ public function dump(array $options = []) | |
foreach ($ids as $id) { | ||
$c .= ' '.$this->doExport($id)." => true,\n"; | ||
} | ||
$files['removed-ids.php'] = $c .= "];\n"; | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The resulting |
||
$files['removed-ids.php'] = $c."];\n"; | ||
} | ||
|
||
foreach ($this->generateServiceFiles() as $file => $c) { | ||
|
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.
$label
is assigned line 42 and only used in this code path.