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