for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* @author Donatas Navidonskis <[email protected]>
* @since 2017
* @class MapsSiteTree
*
*/
class MapsSiteTree extends \DataExtension {
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.
public function MetaTags(&$tags) {
$api = \GoogleMapField::config()->api;
if (empty($api)) {
$api = \SiteConfig::current_site_config()->GoogleMapsApiKey;
}
if (! empty($api)) {
$tags .= "<meta property=\"maps:key\" content=\"{$api}\" />\n";
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.