fix cs
This commit is contained in:
@@ -171,7 +171,6 @@ abstract class ConditionAbstract implements ConditionInterface
|
||||
return $serializableCondition;
|
||||
}
|
||||
|
||||
|
||||
/**
|
||||
* Check if currency if valid or not
|
||||
*
|
||||
@@ -232,7 +231,7 @@ abstract class ConditionAbstract implements ConditionInterface
|
||||
$selectHtml = '';
|
||||
$optionHtml = '';
|
||||
$inputs = $this->getValidators();
|
||||
if(isset($inputs['inputs'][$inputKey])) {
|
||||
if (isset($inputs['inputs'][$inputKey])) {
|
||||
$operators = $inputs['inputs'][$inputKey]['availableOperators'];
|
||||
foreach ($operators as $key => $operator) {
|
||||
$selected = '';
|
||||
@@ -282,6 +281,7 @@ abstract class ConditionAbstract implements ConditionInterface
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
@@ -316,4 +316,4 @@ abstract class ConditionAbstract implements ConditionInterface
|
||||
return $selectHtml;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -24,7 +24,6 @@
|
||||
namespace Thelia\Condition\Implementation;
|
||||
|
||||
use Thelia\Condition\SerializableCondition;
|
||||
use Thelia\Core\Translation\Translator;
|
||||
use Thelia\Coupon\FacadeInterface;
|
||||
|
||||
/**
|
||||
@@ -41,7 +40,7 @@ interface ConditionInterface
|
||||
*
|
||||
* @param FacadeInterface $adapter Service adapter
|
||||
*/
|
||||
function __construct(FacadeInterface $adapter);
|
||||
public function __construct(FacadeInterface $adapter);
|
||||
|
||||
/**
|
||||
* Get Condition Service id
|
||||
@@ -75,7 +74,6 @@ interface ConditionInterface
|
||||
*/
|
||||
public function getAvailableOperators();
|
||||
|
||||
|
||||
/**
|
||||
* Get I18n name
|
||||
*
|
||||
|
||||
@@ -148,8 +148,7 @@ class MatchForEveryone extends ConditionAbstract
|
||||
public function drawBackOfficeInputs()
|
||||
{
|
||||
// No input
|
||||
|
||||
return '';
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -23,7 +23,6 @@
|
||||
|
||||
namespace Thelia\Condition\Implementation;
|
||||
|
||||
use Symfony\Component\Intl\Exception\NotImplementedException;
|
||||
use Thelia\Condition\Implementation\ConditionAbstract;
|
||||
use Thelia\Condition\Operators;
|
||||
use Thelia\Exception\InvalidConditionOperatorException;
|
||||
@@ -119,10 +118,8 @@ class MatchForTotalAmount extends ConditionAbstract
|
||||
|
||||
$this->isPriceValid($priceValue);
|
||||
|
||||
|
||||
$this->isCurrencyValid($currencyValue);
|
||||
|
||||
|
||||
$this->operators = array(
|
||||
self::INPUT1 => $priceOperator,
|
||||
self::INPUT2 => $currencyOperator,
|
||||
@@ -335,4 +332,4 @@ class MatchForTotalAmount extends ConditionAbstract
|
||||
return $selectHtml;
|
||||
}
|
||||
|
||||
}
|
||||
}
|
||||
|
||||
@@ -247,6 +247,7 @@ class MatchForXArticles extends ConditionAbstract
|
||||
</div>
|
||||
</div>
|
||||
';
|
||||
|
||||
return $html;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user