Completed
Pull Request — development (#565)
by Thomas
24:00
created

ChangelogController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

Changes 1
Bugs 0 Features 0
Metric Value
c 1
b 0
f 0
dl 0
loc 13
rs 10
wmc 1
lcom 0
cbo 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A indexAction() 0 6 1
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
     * @return \Symfony\Component\HttpFoundation\Response
14
     */
15
    public function indexAction()
16
    {   $converter = new CommonMarkConverter();
0 ignored issues
show
Coding Style introduced by
Opening brace must be the last content on the line
Loading history...
17
        $changelog = $converter->convertToHtml(file_get_contents(__DIR__ . '/../../../../ChangeLog-3.1.md'));
18
19
        return $this->render('AppBundle:ChangelogController:index.html.twig', ['changelog' => $changelog]);
20
    }
21
}
22