mirror of
https://github.com/Part-DB/Part-DB-server.git
synced 2025-07-19 10:24:50 +02:00
Fixed code style.
This commit is contained in:
parent
2853e471c4
commit
d0b1024d80
212 changed files with 495 additions and 1005 deletions
|
@ -81,10 +81,10 @@ class EntityImporter
|
|||
//Expand every line to a single entry:
|
||||
$names = explode("\n", $lines);
|
||||
|
||||
if (! is_a($class_name, AbstractStructuralDBElement::class, true)) {
|
||||
if (!is_a($class_name, AbstractStructuralDBElement::class, true)) {
|
||||
throw new InvalidArgumentException('$class_name must be a StructuralDBElement type!');
|
||||
}
|
||||
if (null !== $parent && ! is_a($parent, $class_name)) {
|
||||
if (null !== $parent && !is_a($parent, $class_name)) {
|
||||
throw new InvalidArgumentException('$parent must have the same type as specified in $class_name!');
|
||||
}
|
||||
|
||||
|
@ -201,7 +201,7 @@ class EntityImporter
|
|||
]);
|
||||
|
||||
//Ensure we have an array of entitity elements.
|
||||
if (! is_array($entities)) {
|
||||
if (!is_array($entities)) {
|
||||
$entities = [$entities];
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue