ContactPageMessageAdmin
last analyzed

Complexity

Total Complexity 0

Size/Duplication

Total Lines 12
Duplicated Lines 0 %

Coupling/Cohesion

Components 0
Dependencies 1
Metric Value
wmc 0
lcom 0
cbo 1
dl 0
loc 12
1
<?php
2
class ContactPageMessageAdmin extends ModelAdmin {
0 ignored issues
show
Coding Style Compatibility introduced by
PSR1 recommends that each class must be in a namespace of at least one level to avoid collisions.

You can fix this by adding a namespace to your class:

namespace YourVendor;

class YourClass { }

When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.

Loading history...
3
	// Can manage multiple models
4
	public static $managed_models = array('ContactPageMessage');
5
6
	// Linked as /admin/products/
7
	static $url_segment = 'contactpagemessages';
0 ignored issues
show
Coding Style introduced by
The visibility should be declared for property $url_segment.

The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using

class A {
    var $property;
}

the property is implicitly global.

To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.

Loading history...
8
9
	static $menu_title = 'ContactPageMessages';
0 ignored issues
show
Coding Style introduced by
The visibility should be declared for property $menu_title.

The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using

class A {
    var $property;
}

the property is implicitly global.

To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.

Loading history...
10
11
	static $menu_icon = '/contactage/icons/menuicon.png';
0 ignored issues
show
Coding Style introduced by
The visibility should be declared for property $menu_icon.

The PSR-2 coding standard requires that all properties in a class have their visibility explicitly declared. If you declare a property using

class A {
    var $property;
}

the property is implicitly global.

To learn more about the PSR-2, please see the PHP-FIG site on the PSR-2.

Loading history...
12
13
}
14