for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class PointsOfInterestLayer extends DataObject {
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.
private static $db = array(
$db
This check marks private properties in classes that are never used. Those properties can be removed.
'Name' => 'Varchar',
'ShowGuideMarkers' => 'Boolean'
);
private static $many_many = array('PointsOfInterest' => 'PointOfInterest');
$many_many
static $has_one = array(
$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.
'DefaultIcon' => 'Image'
}
You can fix this by adding a namespace to your class:
When choosing a vendor namespace, try to pick something that is not too generic to avoid conflicts with other libraries.