diff --git a/src/Symfony/Component/BrowserKit/CookieJar.php b/src/Symfony/Component/BrowserKit/CookieJar.php index a25f761851..0c0da8e124 100644 --- a/src/Symfony/Component/BrowserKit/CookieJar.php +++ b/src/Symfony/Component/BrowserKit/CookieJar.php @@ -149,7 +149,7 @@ class CookieJar continue; } - foreach ($namedCookies as $name => $cookie) { + foreach ($namedCookies as $cookie) { if ($cookie->isSecure() && 'https' != $parts['scheme']) { continue; } diff --git a/src/Symfony/Component/Console/Shell.php b/src/Symfony/Component/Console/Shell.php index 77561a68bc..1eaa958184 100644 --- a/src/Symfony/Component/Console/Shell.php +++ b/src/Symfony/Component/Console/Shell.php @@ -107,10 +107,10 @@ EOF; /** * Tries to return autocompletion for the current entered text. * - * @param string $text The last segment of the entered text - * @param integer $position The current position + * @param string $text The last segment of the entered text + * @return Boolean|array A list of guessed strings or true */ - private function autocompleter($text, $position) + private function autocompleter($text) { $info = readline_info(); $text = substr($info['line_buffer'], 0, $info['end']); diff --git a/src/Symfony/Component/DependencyInjection/Compiler/RemoveUnusedDefinitionsPass.php b/src/Symfony/Component/DependencyInjection/Compiler/RemoveUnusedDefinitionsPass.php index f2dad69649..0c7be667a1 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/RemoveUnusedDefinitionsPass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/RemoveUnusedDefinitionsPass.php @@ -56,7 +56,7 @@ class RemoveUnusedDefinitionsPass implements RepeatablePassInterface $sourceIds[] = $node->getId(); if ($node->isAlias()) { - $referencingAlias[] = $node->getValue(); + $referencingAliases[] = $node->getValue(); } } $isReferenced = (count(array_unique($sourceIds)) - count($referencingAliases)) > 0; diff --git a/src/Symfony/Component/DependencyInjection/Compiler/RepeatedPass.php b/src/Symfony/Component/DependencyInjection/Compiler/RepeatedPass.php index 376201c9e8..d4af4310c1 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/RepeatedPass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/RepeatedPass.php @@ -50,7 +50,6 @@ class RepeatedPass implements CompilerPassInterface */ public function process(ContainerBuilder $container) { - $compiler = $container->getCompiler(); $this->repeat = false; foreach ($this->passes as $pass) { $pass->process($container); diff --git a/src/Symfony/Component/DependencyInjection/Compiler/ResolveParameterPlaceHoldersPass.php b/src/Symfony/Component/DependencyInjection/Compiler/ResolveParameterPlaceHoldersPass.php index 152ae52385..f6e4c85625 100644 --- a/src/Symfony/Component/DependencyInjection/Compiler/ResolveParameterPlaceHoldersPass.php +++ b/src/Symfony/Component/DependencyInjection/Compiler/ResolveParameterPlaceHoldersPass.php @@ -21,8 +21,6 @@ use Symfony\Component\DependencyInjection\Exception\ParameterNotFoundException; */ class ResolveParameterPlaceHoldersPass implements CompilerPassInterface { - private $parameterBag; - /** * Processes the ContainerBuilder to resolve parameter placeholders. * diff --git a/src/Symfony/Component/HttpKernel/Debug/Stopwatch.php b/src/Symfony/Component/HttpKernel/Debug/Stopwatch.php index ef2ad8d1b6..cf2d10ee43 100644 --- a/src/Symfony/Component/HttpKernel/Debug/Stopwatch.php +++ b/src/Symfony/Component/HttpKernel/Debug/Stopwatch.php @@ -46,7 +46,7 @@ class Stopwatch */ public function stopSection($id) { - $event = $this->stop('section'); + $this->stop('section'); if ($id) { $this->sections[$id] = $this->events;