Test Failed
Pull Request — master (#59)
by
unknown
03:00
created

QrBillFooter   A

Complexity

Total Complexity 2

Size/Duplication

Total Lines 10
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 6
dl 0
loc 10
rs 10
c 1
b 0
f 0
wmc 2

1 Method

Rating   Name   Duplication   Size   Complexity  
A SetDash() 0 8 2
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