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

FavoritesViewEdit   A

Complexity

Total Complexity 4

Size/Duplication

Total Lines 25
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1

Test Coverage

Coverage 0%

Importance

Changes 1
Bugs 1 Features 1
Metric Value
c 1
b 1
f 1
dl 0
loc 25
ccs 0
cts 16
cp 0
rs 10
wmc 4
lcom 0
cbo 1

3 Methods

Rating   Name   Duplication   Size   Complexity  
A __construct() 0 3 1
A FavoritesViewEdit() 0 10 2
A display() 0 3 1
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