diff options
author | Thomas Lange <code@nerdmind.de> | 2021-06-22 20:39:07 +0200 |
---|---|---|
committer | Thomas Lange <code@nerdmind.de> | 2021-06-22 20:39:07 +0200 |
commit | 43d3987bbd7b77fab709acd19328bbcc9638a143 (patch) | |
tree | e7809480ebc0949fc17dc1ccf52cf992abf6149a /core/namespace | |
parent | 8cd1105b111b89106f24c5b50795afb5ff28a935 (diff) | |
download | blog-43d3987bbd7b77fab709acd19328bbcc9638a143.tar.gz blog-43d3987bbd7b77fab709acd19328bbcc9638a143.tar.xz blog-43d3987bbd7b77fab709acd19328bbcc9638a143.zip |
Add missing static keywords and fix typos
Diffstat (limited to 'core/namespace')
-rw-r--r-- | core/namespace/Application.php | 6 | ||||
-rw-r--r-- | core/namespace/Repository.php | 2 |
2 files changed, 4 insertions, 4 deletions
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'; diff --git a/core/namespace/Repository.php b/core/namespace/Repository.php index 2c238b8..e2b42a7 100644 --- a/core/namespace/Repository.php +++ b/core/namespace/Repository.php @@ -125,7 +125,7 @@ abstract class Repository { } #=============================================================================== - # Find previous entitiy + # Find previous entity #=============================================================================== public function findPrev(EntityInterface $Entity): ?EntityInterface { $query = 'SELECT * FROM %s WHERE time_insert < ? ORDER BY time_insert DESC LIMIT 1'; |