Passed
Push — master ( 1c2c2f...3c9428 )
by Mauro
02:19
created
app/dependencies.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -3,7 +3,7 @@  discard block
 block discarded – undo
3 3
 $container = $app->getContainer();
4 4
 
5 5
 // PDO database library
6
-$container['db'] = function ($c) {
6
+$container['db'] = function($c) {
7 7
     $settings = $c->get('settings')['db'];
8 8
     $pdo = new PDO(
9 9
         'mysql:host=' . $settings['host'] . ';dbname=' . $settings['dbname'],
@@ -17,7 +17,7 @@  discard block
 block discarded – undo
17 17
 };
18 18
 
19 19
 // monolog
20
-$container['logger'] = function ($c) {
20
+$container['logger'] = function($c) {
21 21
     $settings = $c->get('settings')['logger'];
22 22
     $logger = new Monolog\Logger($settings['name']);
23 23
     $logger->pushProcessor(new Monolog\Processor\UidProcessor());
Please login to merge, or discard this patch.
app/routes.php 1 patch
Spacing   +2 added lines, -2 removed lines patch added patch discarded remove patch
@@ -4,7 +4,7 @@  discard block
 block discarded – undo
4 4
 
5 5
 $app->get('/version', 'App\Controller\DefaultController:getVersion');
6 6
 
7
-$app->group('/tasks', function () use ($app) {
7
+$app->group('/tasks', function() use ($app) {
8 8
     $app->get('', 'App\Controller\TaskController:getTasks');
9 9
     $app->get('/[{id}]', 'App\Controller\TaskController:getTask');
10 10
     $app->get('/search/[{query}]', 'App\Controller\TaskController:searchTasks');
@@ -13,7 +13,7 @@  discard block
 block discarded – undo
13 13
     $app->delete('/[{id}]', 'App\Controller\TaskController:deleteTask');
14 14
 });
15 15
 
16
-$app->group('/users', function () use ($app) {
16
+$app->group('/users', function() use ($app) {
17 17
     $app->get('', 'App\Controller\UserController:getUsers');
18 18
     $app->get('/[{id}]', 'App\Controller\UserController:getUser');
19 19
     $app->get('/search/[{query}]', 'App\Controller\UserController:searchUsers');
Please login to merge, or discard this patch.