LabelSst::getData()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 8
Code Lines 4

Duplication

Lines 8
Ratio 100 %

Importance

Changes 2
Bugs 0 Features 0
Metric Value
c 2
b 0
f 0
dl 8
loc 8
rs 9.4285
cc 1
eloc 4
nc 1
nop 4
1
<?php
2
namespace Xls\Record;
3
4 View Code Duplication
class LabelSst extends AbstractRecord
0 ignored issues
show
Duplication introduced by
This class seems to be duplicated in your project.

Duplicated code is one of the most pungent code smells. If you need to duplicate the same code in three or more different places, we strongly encourage you to look into extracting the code into a single class or operation.

You can also find more detailed suggestions in the “Code” section of your repository.

Loading history...
5
{
6
    const NAME = 'LABELSST';
7
    const ID = 0x00FD;
8
9
    /**
10
     * @param integer $row
11
     * @param integer $col
12
     * @param integer $strIdx
13
     * @param null $format
14
     *
15
     * @return string
16
     */
17
    public function getData($row, $col, $strIdx, $format = null)
18
    {
19
        $xf = $this->xf($format);
20
21
        $data = pack('vvvV', $row, $col, $xf, $strIdx);
22
23
        return $this->getFullRecord($data);
24
    }
25
}
26