for testing and deploying your application
for finding and fixing issues
for empowering human code reviews
<?php
/**
*
* @category Mygento
* @package Mygento_Yandexdelivery
* @copyright © 2017 NKS LLC. (http://www.mygento.ru)
*/
class Mygento_Yandexdelivery_Model_Source_Tax {
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 toOptionArray() {
return [
['value' => 1, 'label' => Mage::helper('yandexdelivery')->__('Ставка НДС 18%')],
['value' => 2, 'label' => Mage::helper('yandexdelivery')->__('Ставка НДС 10%')],
['value' => 3, 'label' => Mage::helper('yandexdelivery')->__('Ставка НДС расч. 18/118')],
['value' => 4, 'label' => Mage::helper('yandexdelivery')->__('Ставка НДС расч. 10/110')],
['value' => 5, 'label' => Mage::helper('yandexdelivery')->__('Ставка НДС 0%')],
['value' => 6, 'label' => Mage::helper('yandexdelivery')->__('НДС не облагается')]
];
}
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.