Passed
Push — master ( db039c...4d8c20 )
by Dāvis
04:33
created

AlertController   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 11
Duplicated Lines 0 %

Importance

Changes 0
Metric Value
dl 0
loc 11
rs 10
c 0
b 0
f 0
wmc 1

1 Method

Rating   Name   Duplication   Size   Complexity  
A displayAlertsAction() 0 9 1
1
<?php
2
3
namespace Sludio\HelperBundle\Script\Controller;
4
5
use Symfony\Bundle\FrameworkBundle\Controller\Controller;
6
7
class AlertController extends Controller
8
{
9
    public function displayAlertsAction($isAddStyles = true, $isAddJsAlertClose = true)
10
    {
11
        $options = [
12
            'alert_publisher' => $this->get('sludio_helper.alert.publisher'),
13
            'alert_use_styles' => $isAddStyles,
14
            'alert_use_scripts' => $isAddJsAlertClose,
15
        ];
16
17
        return $this->render('SludioHelperBundle:Script:layout.html.twig', $options);
18
    }
19
}
20