LabelSst   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 22
Duplicated Lines 100 %

Coupling/Cohesion

Components 0
Dependencies 1

Importance

Changes 3
Bugs 0 Features 0
Metric Value
wmc 1
c 3
b 0
f 0
lcom 0
cbo 1
dl 22
loc 22
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getData() 8 8 1

How to fix   Duplicated Code   

Duplicated Code

Duplicate code is one of the most pungent code smells. A rule that is often used is to re-structure code once it is duplicated in three or more places.

Common duplication problems, and corresponding solutions are:

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