Completed
Push — master ( 3a7506...9c28d3 )
by Christopher
09:33 queued 03:28
created
public/api/v1/index.php 1 patch
Spacing   +4 added lines, -4 removed lines patch added patch discarded remove patch
@@ -23,9 +23,9 @@  discard block
 block discarded – undo
23 23
 // Start of API
24 24
 // ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
25 25
 
26
-require_once __DIR__.'/../../../vendor/autoload.php';
26
+require_once __DIR__ . '/../../../vendor/autoload.php';
27 27
 
28
-require_once __DIR__.'/../../../generated-conf/config.php';
28
+require_once __DIR__ . '/../../../generated-conf/config.php';
29 29
 
30 30
 // Create and configure Slim app
31 31
 $app = new \Slim\App(['settings' => $config]);
@@ -36,7 +36,7 @@  discard block
 block discarded – undo
36 36
 
37 37
 $container = $app->getContainer();
38 38
 
39
-$container['db'] = function ($c) {
39
+$container['db'] = function($c) {
40 40
     $db_config = $c['settings']['db'];
41 41
     $db = new Database($db_config);
42 42
 
@@ -49,7 +49,7 @@  discard block
 block discarded – undo
49 49
 
50 50
 // ~~~~~~~~~~~~~~~ Series ~~~~~~~~~~~~~~~
51 51
 
52
-$app->post('/series', function ($request, $response, $args) {
52
+$app->post('/series', function($request, $response, $args) {
53 53
     $postData = $request->getParsedBody();
54 54
 
55 55
     $name = filter_var($postData['name'], FILTER_SANITIZE_STRING);
Please login to merge, or discard this patch.