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

ChangelogController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 2

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A indexAction() 0 7 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
     */
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