Skip to content

Commit

Permalink
chore: cs and method name fix
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielfs7 committed Oct 1, 2024
1 parent 9984d50 commit 6c2c76a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions core/kernel/persistence/smoothsql/class.Class.php
Original file line number Diff line number Diff line change
Expand Up @@ -203,9 +203,9 @@ public function getProperties(core_kernel_classes_Class $resource, $recursive =
public function getInstances(core_kernel_classes_Class $resource, $recursive = false, $params = [])
{
$returnValue = [];

if (empty($params)) {
$resourceIds = $this->getInstanceIds($resource->getUri(), $recursive);
$resourceIds = $this->getInstanceUris($resource->getUri(), $recursive);

foreach ($resourceIds as $resourceId) {
$returnValue[$resourceId] = $this->getModel()->getResource($resourceId);
Expand Down Expand Up @@ -641,7 +641,7 @@ public function updateUri(core_kernel_classes_Class $resource, string $newUri):
);
}

public function getInstanceIds(string $classUri, bool $recursive = false): array
public function getInstanceUris(string $classUri, bool $recursive = false): array
{
if (!$recursive) {
$query = 'SELECT subject FROM statements WHERE predicate = ? AND object = ?';
Expand Down

0 comments on commit 6c2c76a

Please sign in to comment.