diff --git a/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.php b/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.php index faa623823b..fd7dcff62c 100644 --- a/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.php +++ b/src/Symfony/Bridge/Doctrine/HttpFoundation/DbalSessionHandler.php @@ -160,9 +160,9 @@ class DbalSessionHandler implements \SessionHandlerInterface $mergeStmt->bindParam(':data', $encoded, \PDO::PARAM_STR); $mergeStmt->bindValue(':time', time(), \PDO::PARAM_INT); - //Oracle has a bug that will intermitently happen if you - //have only 1 bind on a CLOB field for 2 different statements - //(INSERT and UPDATE in this case) + // Oracle has a bug that will intermittently happen if you + // have only 1 bind on a CLOB field for 2 different statements + // (INSERT and UPDATE in this case) if ('oracle' == $this->con->getDatabasePlatform()->getName()) { $mergeStmt->bindParam(':data2', $encoded, \PDO::PARAM_STR); } diff --git a/src/Symfony/Bundle/FrameworkBundle/Translation/PhpExtractor.php b/src/Symfony/Bundle/FrameworkBundle/Translation/PhpExtractor.php index 8084b0fd7a..e8479eb5cf 100644 --- a/src/Symfony/Bundle/FrameworkBundle/Translation/PhpExtractor.php +++ b/src/Symfony/Bundle/FrameworkBundle/Translation/PhpExtractor.php @@ -91,7 +91,7 @@ class PhpExtractor implements ExtractorInterface /** * Seeks to a non-whitespace token. */ - private function seekToNextReleventToken(\Iterator $tokenIterator) + private function seekToNextRelevantToken(\Iterator $tokenIterator) { for (; $tokenIterator->valid(); $tokenIterator->next()) { $t = $tokenIterator->current(); @@ -154,7 +154,7 @@ class PhpExtractor implements ExtractorInterface $tokenIterator->seek($key); foreach ($sequence as $item) { - $this->seekToNextReleventToken($tokenIterator); + $this->seekToNextRelevantToken($tokenIterator); if ($this->normalizeToken($tokenIterator->current()) == $item) { $tokenIterator->next();