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

FavoritesViewEdit::__construct()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 3
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 2
Metric Value
cc 1
eloc 2
nc 1
nop 0
dl 0
loc 3
ccs 0
cts 3
cp 0
crap 2
rs 10
1
<?php
2
if(!defined('sugarEntry') || !sugarEntry) die('Not A Valid Entry Point');
3
4
require_once('include/MVC/View/views/view.edit.php');
5
6
class FavoritesViewEdit extends ViewEdit {
7
	function __construct(){
8
 		parent::__construct();
9
 	}
10
11
    /**
12
     * @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
13
     */
14
    function FavoritesViewEdit(){
15
        $deprecatedMessage = 'PHP4 Style Constructors are deprecated and will be remove in 7.8, please update your code';
16
        if(isset($GLOBALS['log'])) {
17
            $GLOBALS['log']->deprecated($deprecatedMessage);
18
        }
19
        else {
20
            trigger_error($deprecatedMessage, E_USER_DEPRECATED);
21
        }
22
        self::__construct();
23
    }
24
25
26
	function display(){
27
		parent::display();
28
	}
29
30
}
31
?>
32