diff --git a/flight/Engine.php b/flight/Engine.php index 09504f4..628a397 100644 --- a/flight/Engine.php +++ b/flight/Engine.php @@ -258,15 +258,10 @@ class Engine $this->loader->register($name, $class, $params, $callback); } - /** - * Unregisters a class to a framework method - * - * @param string $name Method Name - * @return void - */ - public function unregister(string $name): void + /** Unregisters a class to a framework method. */ + public function unregister(string $methodName): void { - $this->loader->unregister($name); + $this->loader->unregister($methodName); } /** diff --git a/flight/Flight.php b/flight/Flight.php index 4276756..c75a209 100644 --- a/flight/Flight.php +++ b/flight/Flight.php @@ -113,16 +113,11 @@ class Flight static::__callStatic('register', func_get_args()); } - /** - * Unregisters a class. - * - * @param string $name Method name - * @return void - */ - public static function unregister($name): void - { - static::__callStatic('unregister', func_get_args()); - } + /** Unregisters a class. */ + public static function unregister(string $methodName): void + { + static::__callStatic('unregister', func_get_args()); + } /** * Handles calls to static methods.