Completed
Push — master ( 39ab59...2867e6 )
by dima
03:43
created
bootstrap/app.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -35,7 +35,7 @@  discard block
 block discarded – undo
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
 block discarded – undo
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]);
Please login to merge, or discard this patch.
bootstrap/container.php 1 patch
Spacing   +3 added lines, -3 removed lines patch added patch discarded remove patch
@@ -33,15 +33,15 @@
 block discarded – undo
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
 ;
Please login to merge, or discard this patch.
app/Controllers/IndexController.php 1 patch
Spacing   +1 added lines, -1 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@
 block discarded – undo
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
 	}
Please login to merge, or discard this patch.