Fixed code style.

This commit is contained in:
Jan Böhmer 2020-08-21 21:36:22 +02:00
parent 2853e471c4
commit d0b1024d80
212 changed files with 495 additions and 1005 deletions

View file

@ -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];
}