for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
class DMSDocumentAdminExtension extends Extension
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 $managed_models = array(
$managed_models
This check marks private properties in classes that are never used. Those properties can be removed.
'DMSDocumentCartSubmission'
);
/**
* Remove ability to add new items in these grid fields
*
* @param CMSForm $form
*/
public function updateEditForm(CMSForm $form)
$gridField = $form->Fields()->fieldByName('DMSDocumentCartSubmission');
if ($gridField) {
$gridField->getConfig()->removeComponentsByType('GridFieldAddNewButton');
}
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.