@@ -35,7 +35,7 @@ discard block |
||
35 | 35 | { |
36 | 36 | error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE); |
37 | 37 | } |
38 | - $whoops->pushHandler(function () { |
|
38 | + $whoops->pushHandler(function() { |
|
39 | 39 | Response::create('Uh oh, something broke internally.', Response::HTTP_INTERNAL_SERVER_ERROR)->send(); |
40 | 40 | }); |
41 | 41 | } |
@@ -60,7 +60,7 @@ discard block |
||
60 | 60 | /** |
61 | 61 | * Routes |
62 | 62 | */ |
63 | -$dispatcher = FastRoute\simpleDispatcher(function (FastRoute\RouteCollector $r) { |
|
63 | +$dispatcher = FastRoute\simpleDispatcher(function(FastRoute\RouteCollector $r) { |
|
64 | 64 | $routes = require __DIR__ . '/routes.php'; |
65 | 65 | foreach ($routes as $route) { |
66 | 66 | $r->addRoute($route[0], $route[1], $route[2]); |
@@ -33,15 +33,15 @@ |
||
33 | 33 | * set Debug bar |
34 | 34 | */ |
35 | 35 | $container->add(DebugBar\StandardDebugBar::class) |
36 | - ->withMethodCall("addCollector",[ |
|
36 | + ->withMethodCall("addCollector", [ |
|
37 | 37 | new DebugBar\Bridge\Twig\TwigCollector( |
38 | 38 | new DebugBar\Bridge\Twig\TraceableTwigEnvironment($container->get(Twig_Environment::class)) |
39 | 39 | ) |
40 | 40 | ]) |
41 | - ->withMethodCall("addCollector",[ |
|
41 | + ->withMethodCall("addCollector", [ |
|
42 | 42 | new DebugBar\Bridge\Propel2Collector(Propel\Runtime\Propel::getConnection()) |
43 | 43 | ]) |
44 | - ->withMethodCall("addCollector",[ |
|
44 | + ->withMethodCall("addCollector", [ |
|
45 | 45 | new \DebugBar\Bridge\MonologCollector($container->get(Monolog\Logger::class)) |
46 | 46 | ]) |
47 | 47 | ; |
@@ -98,7 +98,7 @@ |
||
98 | 98 | |
99 | 99 | |
100 | 100 | return new Response("success create!"); |
101 | - } catch(\Exception $ex) { |
|
101 | + } catch (\Exception $ex) { |
|
102 | 102 | return new Response("system error:" . $ex->getMessage()); |
103 | 103 | } |
104 | 104 | } |