버그 수정

This commit is contained in:
2019-04-21 11:43:23 +09:00
parent 03510ee1e7
commit 1a0e84e6d7
56 changed files with 77 additions and 73 deletions
+4 -3
View File
@@ -18,7 +18,7 @@ class ReqGeneralValue extends Constraint{
protected $comp;
public function checkInputValues(bool $throwExeception=true){
if(!parent::checkInputValues($throwExeception) && !$throwException){
if(!parent::checkInputValues($throwExeception) && !$throwExeception){
return false;
}
@@ -67,6 +67,7 @@ class ReqGeneralValue extends Constraint{
public function test():bool{
$this->checkInputValues();
$this->tested = true;
$keyNick = $this->keyNick;
if ($this->isPercent) {
$reqVal = $this->general[$this->maxKey] * $this->reqVal;
@@ -85,13 +86,13 @@ class ReqGeneralValue extends Constraint{
'=='=>function($target, $src)use($keyNick){
return ($target == $src)?true:"올바르지 않은 {$keyNick} 입니다.";
},
'!='=>function($targeta, $src)use($keyNick){
'!='=>function($target, $src)use($keyNick){
return ($target != $src)?true:"올바르지 않은 {$keyNick} 입니다.";
},
'==='=>function($target, $src)use($keyNick){
return ($target === $src)?true:"올바르지 않은 {$keyNick} 입니다.";
},
'!=='=>function($targeta, $src)use($keyNick){
'!=='=>function($target, $src)use($keyNick){
return ($target !== $src)?true:"올바르지 않은 {$keyNick} 입니다.";
},
'>='=>function($target, $src){