Passed
Push — scrutinizer-code-quality ( 09f5a1...c4c5fb )
by Adam
56:05 queued 14:08
created

AOS_PDF_Templates   A

Complexity

Total Complexity 3

Size/Duplication

Total Lines 22
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 30%
Metric Value
dl 0
loc 22
ccs 3
cts 10
cp 0.3
rs 10
wmc 3
lcom 0
cbo 1

2 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A AOS_PDF_Templates() 0 10 2
1
<?PHP
2
/**
3
 * Products, Quotations & Invoices modules.
4
 * Extensions to SugarCRM
5
 * @package Advanced OpenSales for SugarCRM
6
 * @subpackage Products
7
 * @copyright SalesAgility Ltd http://www.salesagility.com
8
 *
9
 * This program is free software; you can redistribute it and/or modify
10
 * it under the terms of the GNU AFFERO GENERAL PUBLIC LICENSE as published by
11
 * the Free Software Foundation; either version 3 of the License, or
12
 * (at your option) any later version.
13
 *
14
 * This program is distributed in the hope that it will be useful,
15
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
16
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
17
 * GNU General Public License for more details.
18
 *
19
 * You should have received a copy of the GNU AFFERO GENERAL PUBLIC LICENSE
20
 * along with this program; if not, see http://www.gnu.org/licenses
21
 * or write to the Free Software Foundation,Inc., 51 Franklin Street,
22
 * Fifth Floor, Boston, MA 02110-1301  USA
23
 *
24
 * @author Salesagility Ltd <[email protected]>
25
 */
26
27
/**
28
 * THIS CLASS IS FOR DEVELOPERS TO MAKE CUSTOMIZATIONS IN
29
 */
30 1
require_once('modules/AOS_PDF_Templates/AOS_PDF_Templates_sugar.php');
31
class AOS_PDF_Templates extends AOS_PDF_Templates_sugar {
32
33 6
	function __construct(){
34 6
		parent::__construct();
35 6
	}
36
37
    /**
38
     * @deprecated deprecated since version 7.6, PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code, use __construct instead
39
     */
40
    function AOS_PDF_Templates(){
41
        $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
42
        if(isset($GLOBALS['log'])) {
43
            $GLOBALS['log']->deprecated($deprecatedMessage);
44
        }
45
        else {
46
            trigger_error($deprecatedMessage, E_USER_DEPRECATED);
47
        }
48
        self::__construct();
49
    }
50
51
52
}
53
?>