Conditions | 1 |
Paths | 1 |
Total Lines | 16 |
Code Lines | 5 |
Lines | 0 |
Ratio | 0 % |
Tests | 6 |
CRAP Score | 1 |
Changes | 1 | ||
Bugs | 0 | Features | 0 |
1 | <?php |
||
60 | 1 | public function render() |
|
61 | { |
||
62 | // register code |
||
63 | 1 | $result = self::TYPE; |
|
64 | |||
65 | // sum of charges values |
||
66 | 1 | $result .= str_pad(str_replace('.', '', $this->sum), 11, Numeric::FILL, Numeric::ALIGN); |
|
67 | |||
68 | // whitespace |
||
69 | 1 | $result .= str_pad(' ', 132, Alphanumeric::FILL, Alphanumeric::ALIGN); |
|
70 | |||
71 | // sequence line |
||
72 | 1 | $result .= str_pad($this->sequence->getValue(), 6, Numeric::FILL, Numeric::ALIGN); |
|
73 | |||
74 | // resulting... |
||
75 | 1 | return $result; |
|
76 | } |
||
78 |