Uhl
This commit is contained in:
parent
aca304880d
commit
e154336cb7
@ -13,7 +13,7 @@
|
||||
}
|
||||
},
|
||||
"require": {
|
||||
"php": ">=5.4",
|
||||
"php": ">=7.0",
|
||||
"doctrine/orm": "^2.5"
|
||||
},
|
||||
"require-dev": {
|
||||
|
||||
@ -83,8 +83,12 @@ class CalcValues
|
||||
$calcValueAccount1 = 0;
|
||||
$calcValueAccount2 = 0;
|
||||
|
||||
eval($this->engine->getParameters());
|
||||
eval($this->engine->getFormulas());
|
||||
try{
|
||||
@eval($this->engine->getParameters());
|
||||
@eval($this->engine->getFormulas());
|
||||
}catch (\Throwable $e) {
|
||||
|
||||
}
|
||||
|
||||
/** @var EdgeCollection $collection */
|
||||
foreach ($container as $collection) {
|
||||
|
||||
@ -82,8 +82,12 @@ class Formel
|
||||
preg_match_all('/\$P\w*\$P/', $formel, $founds);
|
||||
|
||||
if (!empty($founds [0])) {
|
||||
eval(str_replace('\\', '', $this->engine->getParameters()));
|
||||
try{
|
||||
@eval($this->engine->getParameters());
|
||||
@eval($this->engine->getFormulas());
|
||||
}catch (\Throwable $e) {
|
||||
|
||||
}
|
||||
foreach ($founds [0] as $key => $found) {
|
||||
$foundvalue = str_replace('$P', '', $found);
|
||||
if (isset($$foundvalue)) {
|
||||
@ -102,7 +106,12 @@ class Formel
|
||||
preg_match_all('/\$F\w*\$F/', $formel, $founds);
|
||||
|
||||
if (!empty($founds [0])) {
|
||||
eval(str_replace('\\', '', $this->engine->getFormulas()));
|
||||
try{
|
||||
@eval($this->engine->getParameters());
|
||||
@eval($this->engine->getFormulas());
|
||||
}catch (\Throwable $e) {
|
||||
|
||||
}
|
||||
|
||||
foreach ($founds [0] as $key => $found) {
|
||||
$foundvalue = str_replace('$F', '', $found);
|
||||
|
||||
Loading…
Reference in New Issue
Block a user