Issues (99)

src/Gateways/barcode/BCGFont.php (1 issue)

Severity
1
<?php
2
namespace tinymeng\code\Gateways\barcode;
3
4
/**
5
 *--------------------------------------------------------------------
6
 *
7
 * Interface for a font.
8
 *
9
 *--------------------------------------------------------------------
10
 * Copyright (C) Jean-Sebastien Goupil
11
 * http://www.barcodephp.com
12
 */
13
interface BCGFont {
14
    public /*internal*/ function getText();
15
    public /*internal*/ function setText($text);
16
    public /*internal*/ function getRotationAngle();
17
    public /*internal*/ function setRotationAngle($rotationDegree);
18
    public /*internal*/ function getBackgroundColor();
19
    public /*internal*/ function setBackgroundColor($backgroundColor);
20
    public /*internal*/ function getForegroundColor();
21
    public /*internal*/ function setForegroundColor($foregroundColor);
22
    public /*internal*/ function getDimension();
23
    public /*internal*/ function draw($im, $x, $y);
24
}
25
?>
0 ignored issues
show
It is not recommended to use PHP's closing tag ?> in files other than templates.

Using a closing tag in PHP files that only contain PHP code is not recommended as you might accidentally add whitespace after the closing tag which would then be output by PHP. This can cause severe problems, for example headers cannot be sent anymore.

A simple precaution is to leave off the closing tag as it is not required, and it also has no negative effects whatsoever.

Loading history...