Skip to content

Commit

Permalink
Apply style changes
Browse files Browse the repository at this point in the history
  • Loading branch information
railken authored and actions-user committed Apr 5, 2024
1 parent 19d01f1 commit 7333d1b
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/DataSchema/Manager.php
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ public function newEntity(array $parameters = [])
$namespace = "App\Models\DataSchema";
$fullAliasName = "\\".$namespace."\\".$aliasName;

// Possibility to write your own model
// Possibility to write your own model
if (!class_exists($fullAliasName)) {
$this->newAlias($namespace, Model::class, $aliasName);
}
Expand All @@ -87,7 +87,8 @@ public function newEntity(array $parameters = [])
return $model;
}

public function newAlias($namespace, $original, $alias) {
public function newAlias($namespace, $original, $alias)
{
eval("namespace $namespace;\n class $alias extends \\$original {}");
}
}

0 comments on commit 7333d1b

Please sign in to comment.