Completed
Push — master ( 6ffc3f...4609e3 )
by Antonio
51:14 queued 46:44
created

Jpg   A

Complexity

Total Complexity 1

Size/Duplication

Total Lines 16
Duplicated Lines 0 %

Coupling/Cohesion

Components 1
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 0
Metric Value
wmc 1
lcom 1
cbo 1
dl 0
loc 16
ccs 0
cts 6
cp 0
rs 10
c 0
b 0
f 0

1 Method

Rating   Name   Duplication   Size   Complexity  
A getByteStream() 0 7 1
1
<?php
2
3
/*
4
 * This file is part of the 2amigos/yii2-qrcode-component project.
5
 *
6
 * (c) 2amigOS! <http://2amigos.us/>
7
 *
8
 * For the full copyright and license information, please view
9
 * the LICENSE file that was distributed with this source code.
10
 */
11
12
namespace Da\QrCode\Renderer;
13
14
use BaconQrCode\Renderer\Image\Png;
15
16
class Jpg extends Png
17
{
18
    /**
19
     * getByteStream(): defined by RendererInterface.
20
     *
21
     * @see    ImageRendererInterface::getByteStream()
22
     * @return string
23
     */
24
    public function getByteStream()
25
    {
26
        ob_start();
27
        imagejpeg($this->image);
28
29
        return ob_get_clean();
30
    }
31
}
32