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

FavoritesViewEdit::FavoritesViewEdit()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 10
Code Lines 7

Duplication

Lines 0
Ratio 0 %

Code Coverage

Tests 0
CRAP Score 6

Importance

Changes 1
Bugs 1 Features 1
Metric Value
cc 2
eloc 7
c 1
b 1
f 1
nc 2
nop 0
dl 0
loc 10
ccs 0
cts 10
cp 0
crap 6
rs 9.4285
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