mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-17 17:42:28 +02:00
Fixed some inspection issues.
This commit is contained in:
parent
6caf605fe2
commit
e01b06fb85
80 changed files with 173 additions and 218 deletions
|
@ -79,7 +79,7 @@ class EntityColumn extends AbstractColumn
|
|||
|
||||
$resolver->setRequired('property');
|
||||
|
||||
$resolver->setDefault('field', function (Options $option) {
|
||||
$resolver->setDefault('field', static function (Options $option) {
|
||||
return $option['property'].'.name';
|
||||
});
|
||||
|
||||
|
|
|
@ -78,7 +78,7 @@ class IconLinkColumn extends AbstractColumn
|
|||
return $provider;
|
||||
}
|
||||
if (is_callable($provider)) {
|
||||
return call_user_func($provider, $value, $context);
|
||||
return $provider($value, $context);
|
||||
}
|
||||
|
||||
return false;
|
||||
|
@ -91,7 +91,7 @@ class IconLinkColumn extends AbstractColumn
|
|||
return $provider;
|
||||
}
|
||||
if (is_callable($provider)) {
|
||||
return call_user_func($provider, $value, $context);
|
||||
return $provider($value, $context);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
@ -104,7 +104,7 @@ class IconLinkColumn extends AbstractColumn
|
|||
return $provider;
|
||||
}
|
||||
if (is_callable($provider)) {
|
||||
return call_user_func($provider, $value, $context);
|
||||
return $provider($value, $context);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
@ -117,7 +117,7 @@ class IconLinkColumn extends AbstractColumn
|
|||
return $provider;
|
||||
}
|
||||
if (is_callable($provider)) {
|
||||
return call_user_func($provider, $value, $context);
|
||||
return $provider($value, $context);
|
||||
}
|
||||
|
||||
return null;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue