Skip to content

Commit

Permalink
More PHPDocs work
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCartpenter committed Sep 3, 2024
1 parent fca7b39 commit 3d8aca5
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 5 deletions.
8 changes: 6 additions & 2 deletions upload/system/engine/loader.php
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,8 @@ public function __construct($registry) {
*
* Removing the mixed output as a temporary workaround since admin extension
* installers don't seem to like that really much
*
* @return mixed
*/
public function controller(string $route, array $data = []) {
// Sanitize the call
Expand Down Expand Up @@ -201,6 +203,8 @@ public function helper(string $route): void {
* Config
*
* @param string $route
*
* @return void
*/
public function config(string $route): void {
$this->registry->get('event')->trigger('config/' . $route . '/before', [&$route]);
Expand All @@ -216,7 +220,7 @@ public function config(string $route): void {
* @param string $route
* @param string $key
*
* @return array
* @return array<string, string>
*/
public function language(string $route, string $key = ''): array {
// Sanitize the call
Expand Down Expand Up @@ -250,7 +254,7 @@ public function language(string $route, string $key = ''): array {
*
* @return mixed
*/
protected function callback($registry, $route): mixed {
protected function callback($registry, $route) {
return function($args) use ($registry, $route) {
static $model;

Expand Down
6 changes: 3 additions & 3 deletions upload/system/engine/proxy.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,12 +48,12 @@ public function __set(string $key, object $value): void {
/**
* __call
*
* @param string $key
* @param array $args
* @param string $key
* @param array<string, mixed> $args
*
* @return mixed
*/
public function __call(string $key, $args) {
public function __call(string $key, array $args) {
$arg_data = [];

$args = func_get_args();
Expand Down

0 comments on commit 3d8aca5

Please sign in to comment.