Style   A
last analyzed

Complexity

Total Complexity 1

Size/Duplication

Total Lines 20
Duplicated Lines 0 %

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 0
loc 20
rs 10

1 Method

Rating   Name   Duplication   Size   Complexity  
A getData() 0 10 1
1
<?php
2
3
namespace Xls\Record;
4
5
class Style extends AbstractRecord
6
{
7
    const NAME = 'STYLE';
8
    const ID = 0x0293;
9
10
    /**
11
     * Generate the TYLE records
12
     * @return string
13
     */
14
    public function getData()
15
    {
16
        $ixfe = 0x8000; // Index to style XF
17
        $builtIn = 0x00; // Built-in style
18
        $iLevel = 0xff; // Outline style level
19
20
        $data = pack("vCC", $ixfe, $builtIn, $iLevel);
21
22
        return $this->getFullRecord($data);
23
    }
24
}
25