mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-07 08:54:36 +02:00
Fixed code style.
This commit is contained in:
parent
2853e471c4
commit
d0b1024d80
212 changed files with 495 additions and 1005 deletions
|
@ -40,7 +40,7 @@ class ParameterExtractor
|
|||
*/
|
||||
public function extractParameters(string $input, string $class = PartParameter::class): array
|
||||
{
|
||||
if (! is_a($class, AbstractParameter::class, true)) {
|
||||
if (!is_a($class, AbstractParameter::class, true)) {
|
||||
throw new \InvalidArgumentException('$class must be a child class of AbstractParameter!');
|
||||
}
|
||||
|
||||
|
@ -68,7 +68,7 @@ class ParameterExtractor
|
|||
|
||||
$matches = [];
|
||||
\preg_match($regex, $input, $matches);
|
||||
if (! empty($matches)) {
|
||||
if (!empty($matches)) {
|
||||
[, $name, $value] = $matches;
|
||||
$value = trim($value);
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue