Passed
Pull Request — master (#59)
by Manuel
10:00
created

QrBillFooter::SetDash()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 8
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
cc 2
eloc 5
nc 2
nop 2
dl 0
loc 8
rs 10
c 1
b 0
f 0
1
<?php
2
3
4
namespace Sprain\SwissQrBill\PaymentPart\Output\FpdfOutput\Template;
5
6
use Fpdf\Fpdf;
7
8
class QrBillFooter extends Fpdf
9
{
10
    public function SetDash($black = null, $white = null)
11
    {
12
        if ($black !== null) {
13
            $s = sprintf('[%.3F %.3F] 0 d', $black * $this->k, $white * $this->k);
14
        } else {
15
            $s = '[] 0 d';
16
        }
17
        $this->_out($s);
18
    }
19
}
20