mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-07 08:54:36 +02:00
Applied rector with PHP8.1 migration rules
This commit is contained in:
parent
dc6a67c2f0
commit
7ee01d9a05
303 changed files with 1228 additions and 3465 deletions
|
@ -74,7 +74,7 @@ class ParameterExtractor
|
|||
$split = $this->splitString($input);
|
||||
foreach ($split as $param_string) {
|
||||
$tmp = $this->stringToParam($param_string, $class);
|
||||
if (null !== $tmp) {
|
||||
if ($tmp instanceof \App\Entity\Parameters\AbstractParameter) {
|
||||
$parameters[] = $tmp;
|
||||
}
|
||||
}
|
||||
|
@ -89,7 +89,7 @@ class ParameterExtractor
|
|||
|
||||
$matches = [];
|
||||
preg_match($regex, $input, $matches);
|
||||
if (!empty($matches)) {
|
||||
if ($matches !== []) {
|
||||
[, $name, $value] = $matches;
|
||||
$value = trim($value);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue