Skip to content

Commit 038ce9a

Browse files
author
Hugo Hamon
committed
Fixes various phpdoc and coding standards.
1 parent f6968b4 commit 038ce9a

File tree

5 files changed

+6
-5
lines changed

5 files changed

+6
-5
lines changed

CacheWarmer/TemplateFinder.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public function findAllTemplates()
5555

5656
$templates = array();
5757

58-
foreach ($this->kernel->getBundles() as $name => $bundle) {
58+
foreach ($this->kernel->getBundles() as $bundle) {
5959
$templates = array_merge($templates, $this->findTemplatesInBundle($bundle));
6060
}
6161

Command/RouterMatchCommand.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ protected function execute(InputInterface $input, OutputInterface $output)
7272
$traces = $matcher->getTraces($input->getArgument('path_info'));
7373

7474
$matches = false;
75-
foreach ($traces as $i => $trace) {
75+
foreach ($traces as $trace) {
7676
if (TraceableUrlMatcher::ROUTE_ALMOST_MATCHES == $trace['level']) {
7777
$output->writeln(sprintf('<fg=yellow>Route "%s" almost matches but %s</>', $trace['name'], lcfirst($trace['log'])));
7878
} elseif (TraceableUrlMatcher::ROUTE_MATCHES == $trace['level']) {

Controller/Controller.php

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@
2222
use Symfony\Component\Form\Form;
2323
use Symfony\Component\Form\FormBuilder;
2424
use Symfony\Component\Routing\Generator\UrlGeneratorInterface;
25+
use Symfony\Component\Security\Core\Authentication\Token\TokenInterface;
2526
use Doctrine\Bundle\DoctrineBundle\Registry;
2627

2728
/**
@@ -209,7 +210,7 @@ public function getDoctrine()
209210
*
210211
* @throws \LogicException If SecurityBundle is not available
211212
*
212-
* @see Symfony\Component\Security\Core\Authentication\Token\TokenInterface::getUser()
213+
* @see TokenInterface::getUser()
213214
*/
214215
public function getUser()
215216
{

Templating/Helper/ActionsHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public function __construct(FragmentHandler $handler)
4242
*
4343
* @return string The fragment content
4444
*
45-
* @see Symfony\Component\HttpKernel\Fragment\FragmentHandler::render()
45+
* @see FragmentHandler::render()
4646
*/
4747
public function render($uri, array $options = array())
4848
{

Templating/Helper/RequestHelper.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ public function __construct(Request $request)
4141
*
4242
* @return mixed
4343
*
44-
* @see Symfony\Component\HttpFoundation\Request::get()
44+
* @see Request::get()
4545
*/
4646
public function getParameter($key, $default = null)
4747
{

0 commit comments

Comments
 (0)