Completed
Branch master (bcf0c1)
by Adeniyi
08:21 queued 11s
created
Category
index.php 1 patch
Spacing   +5 added lines, -5 removed lines patch added patch discarded remove patch
@@ -8,23 +8,23 @@
 block discarded – undo
8 8
 $app = new Slim();
9 9
 $get = new Emoji();
10 10
 
11
-$app->get('/emojis', function () use ($get) {
11
+$app->get('/emojis', function() use ($get) {
12 12
     echo $get->getAll();
13 13
 });
14 14
 
15
-$app->get('/emojis/:id', function ($id) use ($get) {
15
+$app->get('/emojis/:id', function($id) use ($get) {
16 16
     echo $get->where('id', $id);
17 17
 });
18 18
 
19
-$app->post('/emojis/:name', function($name){
19
+$app->post('/emojis/:name', function($name) {
20 20
 
21 21
     $save = new Emoji();
22 22
     $save->id = NULL;
23 23
     $save->name = $name;
24
-    echo $save->save() . " " .$name;
24
+    echo $save->save() . " " . $name;
25 25
 });
26 26
 
27
-$app->patch('/emojis/:id/:name', function($id, $name){
27
+$app->patch('/emojis/:id/:name', function($id, $name) {
28 28
 
29 29
     $find = Emoji::find($id);
30 30
     $find->name = $name;
Please login to merge, or discard this patch.