From 43d3987bbd7b77fab709acd19328bbcc9638a143 Mon Sep 17 00:00:00 2001 From: Thomas Lange Date: Tue, 22 Jun 2021 20:39:07 +0200 Subject: Add missing static keywords and fix typos --- core/namespace/Application.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'core/namespace/Application.php') diff --git a/core/namespace/Application.php b/core/namespace/Application.php index 7473e1f..1597801 100644 --- a/core/namespace/Application.php +++ b/core/namespace/Application.php @@ -71,7 +71,7 @@ class Application { #=============================================================================== # Return singleton repository instance #=============================================================================== - public function getRepository(string $namespace): Repository { + public static function getRepository(string $namespace): Repository { $identifier = strtolower($namespace); $repository = "$namespace\Repository"; @@ -156,9 +156,9 @@ class Application { } #=============================================================================== - # Return absolute URL of a specifc entity + # Return absolute URL of a specific entity #=============================================================================== - public function getEntityURL(EntityInterface $Entity) { + public static function getEntityURL(EntityInterface $Entity) { switch($class = get_class($Entity)) { case 'Page\Entity': $attr = self::get('PAGE.SLUG_URLS') ? 'slug' : 'id'; -- cgit v1.2.3