Completed
Pull Request — development (#565)
by Thomas
06:38
created

ChangelogController::indexAction()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 7
Code Lines 4

Duplication

Lines 0
Ratio 0 %

Importance

Changes 2
Bugs 1 Features 0
Metric Value
cc 1
eloc 4
c 2
b 1
f 0
nc 1
nop 0
dl 0
loc 7
rs 9.4285
1
<?php
2
3
namespace AppBundle\Controller;
4
5
use League\CommonMark\CommonMarkConverter;
6
use Sensio\Bundle\FrameworkExtraBundle\Configuration\Route;
7
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
8
9
class ChangelogController extends Controller
10
{
11
    /**
12
     * @Route("/changelog")
13
     */
0 ignored issues
show
Coding Style Documentation introduced by
Missing @return tag in function comment
Loading history...
14
    public function indexAction()
0 ignored issues
show
introduced by
Method does not have a return statement in doc block: indexAction
Loading history...
15
    {
16
        $markConverter = $this->container->get('app.library.common_mark_converter');
17
        $changelog = $markConverter->convertToHtml(file_get_contents(__DIR__ . '/../../../../ChangeLog-3.1.md'));
18
19
        return $this->render('AppBundle:ChangelogController:index.html.twig', ['changelog' => $changelog]);
20
    }
21
}
22