Skip to content

Commit 22a6dcb

Browse files
committed
🔧 quick fix on ci() and app() diety functions
Signed-off-by: otengkwame <[email protected]>
1 parent e19c860 commit 22a6dcb

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

Core/helpers/ci_core_helper.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ function ci(string $class = null, array $params = [])
3535
if ($class === 'database') {
3636
get_instance()->use->database();
3737
return get_instance()->db;
38-
}
38+
}
3939

4040
// Special cases 'user_agent' and 'unit_test' are loaded
4141
// with diferent names
@@ -95,7 +95,7 @@ function app(string $class = null, array $params = [])
9595
if ($class === 'database') {
9696
get_instance()->use->database();
9797
return get_instance()->db;
98-
}
98+
}
9999

100100
if ((!empty($class) && class_exists($class)) && !empty($params)) {
101101
return new $class($params);

0 commit comments

Comments
 (0)