Commit ca9fe47b authored by Dave Marshall's avatar Dave Marshall

More CS fixes

parent 4e6591c3
...@@ -89,7 +89,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte ...@@ -89,7 +89,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
$this['dispatcher_class'] = 'Symfony\\Component\\EventDispatcher\\EventDispatcher'; $this['dispatcher_class'] = 'Symfony\\Component\\EventDispatcher\\EventDispatcher';
$this['dispatcher'] = $this->share(function () use ($app) { $this['dispatcher'] = $this->share(function () use ($app) {
/** /*
* @var EventDispatcherInterface * @var EventDispatcherInterface
*/ */
$dispatcher = new $app['dispatcher_class'](); $dispatcher = new $app['dispatcher_class']();
...@@ -413,7 +413,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte ...@@ -413,7 +413,7 @@ class Application extends \Pimple implements HttpKernelInterface, TerminableInte
* called, until one returns a Response object. * called, until one returns a Response object.
* *
* @param callable $callback View handler callback * @param callable $callback View handler callback
* @param integer $priority The higher this value, the earlier an event * @param int $priority The higher this value, the earlier an event
* listener will be triggered in the chain (defaults to 0) * listener will be triggered in the chain (defaults to 0)
*/ */
public function view($callback, $priority = 0) public function view($callback, $priority = 0)
......
...@@ -652,11 +652,11 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase ...@@ -652,11 +652,11 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
$app->get('/foo', function () { return 'Hello world'; }); $app->get('/foo', function () { return 'Hello world'; });
$app->view(function (\stdClass $view) { $app->view(function (\stdClass $view) {
throw new \Exception("View listener was called"); throw new \Exception('View listener was called');
}); });
$app->view(function (array $view) { $app->view(function (array $view) {
throw new \Exception("View listener was called"); throw new \Exception('View listener was called');
}); });
$response = $app->handle(Request::create('/foo')); $response = $app->handle(Request::create('/foo'));
...@@ -674,7 +674,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase ...@@ -674,7 +674,7 @@ class ApplicationTest extends \PHPUnit_Framework_TestCase
}); });
$app->view(function ($view) { $app->view(function ($view) {
return null; return;
}); });
$response = $app->handle(Request::create('/foo')); $response = $app->handle(Request::create('/foo'));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment