Completed
Branch AUTOMATED_TESTING (4870f5)
by Gordon
03:01
created

PointsOfInterestLayer::getCMSFields()   A

Complexity

Conditions 1
Paths 1

Size

Total Lines 14
Code Lines 11

Duplication

Lines 0
Ratio 0 %
Metric Value
dl 0
loc 14
rs 9.4286
cc 1
eloc 11
nc 1
nop 0
1
<?php
2
class PointsOfInterestLayer extends DataObject {
1 ignored issue
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
	private static $db = array(
2 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
Unused Code introduced by
The property $db is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
4
		'Name' => 'Varchar',
5
		'ShowGuideMarkers' => 'Boolean'
6
	);
7
8
	private static $many_many = array('PointsOfInterest' => 'PointOfInterest');
2 ignored issues
show
Comprehensibility introduced by
Consider using a different property name as you override a private property of the parent class.
Loading history...
Unused Code introduced by
The property $many_many is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
9
10
	static $has_one = array(
0 ignored issues
show
Coding Style introduced by
The visibility should be declared for property $has_one.

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...
11
	    'DefaultIcon' => 'Image'
12
	);
13
14
}
15