WidgetMapHelper   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 13
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

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

1 Method

Rating   Name   Duplication   Size   Complexity  
A getWidgetMapByWidgetAndView() 0 4 1
1
<?php
2
3
namespace Victoire\Bundle\WidgetMapBundle\Helper;
4
5
use Victoire\Bundle\CoreBundle\Entity\View;
6
use Victoire\Bundle\WidgetBundle\Entity\Widget;
7
use Victoire\Bundle\WidgetMapBundle\Entity\WidgetMap;
8
use Victoire\Bundle\WidgetMapBundle\Exception\WidgetMapNotFoundException;
9
10
/**
11
 * @deprecated Just call $widget->getWidgetMap();
12
 *
13
 * Class WidgetMapHelper
14
 */
15
class WidgetMapHelper
16
{
17
    /**
18
     * @param Widget $widget
19
     * @param View   $view
20
     *
21
     * @return WidgetMap|WidgetMapNotFoundException
22
     */
23
    public static function getWidgetMapByWidgetAndView(Widget $widget, View $view)
0 ignored issues
show
Unused Code introduced by
The parameter $view is not used and could be removed.

This check looks from parameters that have been defined for a function or method, but which are not used in the method body.

Loading history...
24
    {
25
        return $widget->getWidgetMap();
26
    }
27
}
28