Skip to content

Commit c057e69

Browse files
committed
refactor: by rector
1 parent 1737584 commit c057e69

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

system/Config/Factories.php

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -342,12 +342,10 @@ public static function getComponentInstances(string $component): array
342342
];
343343
}
344344

345-
$data = [
345+
return [
346346
'basenames' => static::$basenames[$component],
347347
'instances' => self::$instances[$component],
348348
];
349-
350-
return $data;
351349
}
352350

353351
/**
@@ -369,6 +367,6 @@ public static function setComponentInstances(string $component, array $data)
369367
*/
370368
public static function isUpdated(string $component): bool
371369
{
372-
return isset(self::$updated[$component]) ? true : false;
370+
return isset(self::$updated[$component]);
373371
}
374372
}

0 commit comments

Comments
 (0)