WidgetMapHelper::getWidgetMapByWidgetAndView()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 0
Metric Value
c 0
b 0
f 0
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 2
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