1 | <?php |
||
21 | class SlideDefault extends BaseObject |
||
22 | { |
||
23 | /** |
||
24 | * @var SwiperSlider widget object that owns this slide. |
||
25 | */ |
||
26 | public $slider; |
||
27 | /** |
||
28 | * @var array the HTML attributes for the slide tag. |
||
29 | * |
||
30 | * @see \yii\helpers\Html::renderTagAttributes() for details on how attributes are being rendered. |
||
31 | */ |
||
32 | public $options = []; |
||
33 | /** |
||
34 | * Vilue contain all content pasted from tag. |
||
35 | * |
||
36 | * @var string |
||
37 | */ |
||
38 | public $value = ''; |
||
39 | |||
40 | /** |
||
41 | * Undocumented function. |
||
42 | * |
||
43 | * @param string $tag |
||
44 | * @param int $index $index the zero-based index of the data item among the item array returned by [[SwiperSlider::makeHtml]] |
||
45 | * |
||
46 | * @return string |
||
47 | */ |
||
48 | 3 | public function renderSlideHtml($tag, $index) |
|
61 | } |
||
62 |
This check looks for variable assignements that are either overwritten by other assignments or where the variable is not used subsequently.
Both the
$myVar
assignment in line 1 and the$higher
assignment in line 2 are dead. The first because$myVar
is never used and the second because$higher
is always overwritten for every possible time line.