8000 simplified ternary-operator · yktd26/symfony@04302ff · GitHub
[go: up one dir, main page]

Skip to content

Commit 04302ff

Browse files
author
Martin Schuhfuss
committed
simplified ternary-operator
1 parent 3a285c1 commit 04302ff

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Symfony/Bundle/FrameworkBundle/HttpKernel.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public function generateInternalUri($controller, array $attributes = array(), ar
177177
$path = http_build_query($attributes);
178178
$uri = $this->container->get('router')->generate('_internal', array(
179179
'controller' => $controller,
180-
'path' => $path ? $path : 'none',
180+
'path' => $path ?: 'none',
181181
'_format' => $this->container->get('request')->getRequestFormat(),
182182
));
183183

0 commit comments

Comments
 (0)
0