Fix cs and refactor FormFirewall raw values usage

modified:   core/lib/Thelia/Form/FirewallForm.php
	modified:   core/lib/Thelia/Model/FormFirewallQuery.php
	modified:   core/lib/Thelia/Model/Tax.php
This commit is contained in:
lovenunu
2014-07-14 21:06:11 +02:00
committed by Benjamin Perche
parent 5f6871154c
commit 13cb3dbbdc
3 changed files with 13 additions and 8 deletions

View File

@@ -4,7 +4,6 @@ namespace Thelia\Model;
use Thelia\Model\Base\FormFirewallQuery as BaseFormFirewallQuery;
/**
* Skeleton subclass for performing query and update operations on the 'form_firewall' table.
*

View File

@@ -59,14 +59,14 @@ class Tax extends BaseTax
if (!class_exists($class)) {
throw new TaxEngineException('Recorded type `' . $class . '` does not exists', TaxEngineException::BAD_RECORDED_TYPE);
}
/** @var \Thelia\TaxEngine\BaseTaxType $instance */
/** @var \Thelia\TaxEngine\BaseTaxType $instance */
$instance = new $class;
if (!$instance instanceof BaseTaxType) {
throw new TaxEngineException('Recorded type `' . $class . '` does not extends BaseTaxType', TaxEngineException::BAD_RECORDED_TYPE);
}
$instance->loadRequirements($this->getRequirements());
$instance->loadRequirements($this->getRequirements());
return $instance;
}