for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
* Class UserCheckboxField
*
* @author Bram de Leeuw
* @package UserTextField
*/
class UserCheckboxField extends Broarm\EventTickets\UserField
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.
{
* Create a default text field
* @param string $fieldName
* @param null $defaultValue
* @return CheckboxField
public function createField($fieldName, $defaultValue = null)
return CheckboxField::create($fieldName, $this->Title, $defaultValue);
}
* Get the value in a readable manner
* @return string
public function getValue()
return (bool)$this->getField('Value')
? _t('Boolean.YESANSWER', 'Yes')
: _t('Boolean.NOANSWER', 'No');
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.