@@ -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]); |
@@ -30,8 +30,7 @@ |
||
30 | 30 | if (version_compare(PHP_VERSION, '5.3', '>=')) |
31 | 31 | { |
32 | 32 | error_reporting(E_ALL & ~E_NOTICE & ~E_DEPRECATED & ~E_STRICT & ~E_USER_NOTICE & ~E_USER_DEPRECATED); |
33 | - } |
|
34 | - else |
|
33 | + } else |
|
35 | 34 | { |
36 | 35 | error_reporting(E_ALL & ~E_NOTICE & ~E_STRICT & ~E_USER_NOTICE); |
37 | 36 | } |
@@ -5,22 +5,22 @@ |
||
5 | 5 | $serviceContainer->setAdapterClass('default', 'mysql'); |
6 | 6 | $manager = new \Propel\Runtime\Connection\ConnectionManagerSingle(); |
7 | 7 | $manager->setConfiguration(array ( |
8 | - 'classname' => 'Propel\\Runtime\\Connection\\ProfilerConnectionWrapper', |
|
9 | - 'dsn' => getenv('DB_CONN'), |
|
10 | - 'user' => getenv('DB_USER'), |
|
11 | - 'password' => getenv('DB_PASS'), |
|
12 | - 'attributes' => |
|
13 | - array ( |
|
8 | + 'classname' => 'Propel\\Runtime\\Connection\\ProfilerConnectionWrapper', |
|
9 | + 'dsn' => getenv('DB_CONN'), |
|
10 | + 'user' => getenv('DB_USER'), |
|
11 | + 'password' => getenv('DB_PASS'), |
|
12 | + 'attributes' => |
|
13 | + array ( |
|
14 | 14 | 'ATTR_EMULATE_PREPARES' => false, |
15 | - ), |
|
16 | - 'settings' => |
|
17 | - array ( |
|
15 | + ), |
|
16 | + 'settings' => |
|
17 | + array ( |
|
18 | 18 | 'charset' => 'utf8', |
19 | 19 | 'queries' => |
20 | 20 | array ( |
21 | - 'utf8' => 'SET NAMES utf8 COLLATE utf8_unicode_ci, COLLATION_CONNECTION = utf8_unicode_ci, COLLATION_DATABASE = utf8_unicode_ci, COLLATION_SERVER = utf8_unicode_ci', |
|
21 | + 'utf8' => 'SET NAMES utf8 COLLATE utf8_unicode_ci, COLLATION_CONNECTION = utf8_unicode_ci, COLLATION_DATABASE = utf8_unicode_ci, COLLATION_SERVER = utf8_unicode_ci', |
|
22 | + ), |
|
22 | 23 | ), |
23 | - ), |
|
24 | 24 | )); |
25 | 25 | $manager->setName('default'); |
26 | 26 | $serviceContainer->setConnectionManager('default', $manager); |
@@ -4,20 +4,20 @@ |
||
4 | 4 | $serviceContainer->checkVersion('2.0.0-dev'); |
5 | 5 | $serviceContainer->setAdapterClass('default', 'mysql'); |
6 | 6 | $manager = new \Propel\Runtime\Connection\ConnectionManagerSingle(); |
7 | -$manager->setConfiguration(array ( |
|
7 | +$manager->setConfiguration(array( |
|
8 | 8 | 'classname' => 'Propel\\Runtime\\Connection\\ProfilerConnectionWrapper', |
9 | 9 | 'dsn' => getenv('DB_CONN'), |
10 | 10 | 'user' => getenv('DB_USER'), |
11 | 11 | 'password' => getenv('DB_PASS'), |
12 | 12 | 'attributes' => |
13 | - array ( |
|
13 | + array( |
|
14 | 14 | 'ATTR_EMULATE_PREPARES' => false, |
15 | 15 | ), |
16 | 16 | 'settings' => |
17 | - array ( |
|
17 | + array( |
|
18 | 18 | 'charset' => 'utf8', |
19 | 19 | 'queries' => |
20 | - array ( |
|
20 | + array( |
|
21 | 21 | 'utf8' => 'SET NAMES utf8 COLLATE utf8_unicode_ci, COLLATION_CONNECTION = utf8_unicode_ci, COLLATION_DATABASE = utf8_unicode_ci, COLLATION_SERVER = utf8_unicode_ci', |
22 | 22 | ), |
23 | 23 | ), |