mirror of
https://github.com/Karaka-Management/oms-Support.git
synced 2026-02-14 15:28:41 +00:00
phpcs, static and unit test fixes
This commit is contained in:
parent
29ed71a99c
commit
7f8af07fdf
|
|
@ -31,6 +31,14 @@ use phpOMS\Config\SettingsInterface;
|
||||||
*/
|
*/
|
||||||
final class Installer extends InstallerAbstract
|
final class Installer extends InstallerAbstract
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Path of the file
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public const PATH = __DIR__;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* {@inheritdoc}
|
* {@inheritdoc}
|
||||||
*/
|
*/
|
||||||
|
|
|
||||||
|
|
@ -26,4 +26,11 @@ use phpOMS\Module\StatusAbstract;
|
||||||
*/
|
*/
|
||||||
final class Status extends StatusAbstract
|
final class Status extends StatusAbstract
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Path of the file
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public const PATH = __DIR__;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -24,6 +24,13 @@ use phpOMS\Module\UninstallerAbstract;
|
||||||
* @link https://orange-management.org
|
* @link https://orange-management.org
|
||||||
* @since 1.0.0
|
* @since 1.0.0
|
||||||
*/
|
*/
|
||||||
final class Uninstaller extends UninstallerAbstract
|
final class Installer extends InstallerAbstract
|
||||||
{
|
{
|
||||||
|
/**
|
||||||
|
* Path of the file
|
||||||
|
*
|
||||||
|
* @var string
|
||||||
|
* @since 1.0.0
|
||||||
|
*/
|
||||||
|
public const PATH = __DIR__;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -380,7 +380,7 @@ final class ApiController extends Controller
|
||||||
*/
|
*/
|
||||||
public function createSupportAppFromRequest(RequestAbstract $request) : SupportApp
|
public function createSupportAppFromRequest(RequestAbstract $request) : SupportApp
|
||||||
{
|
{
|
||||||
$app = new SupportApp();
|
$app = new SupportApp();
|
||||||
$app->name = $request->getData('name') ?? '';
|
$app->name = $request->getData('name') ?? '';
|
||||||
|
|
||||||
return $app;
|
return $app;
|
||||||
|
|
|
||||||
|
|
@ -51,6 +51,9 @@ final class BackendController extends Controller
|
||||||
*/
|
*/
|
||||||
public function viewSettings(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
public function viewSettings(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface
|
||||||
{
|
{
|
||||||
|
$view = new View($this->app->l11nManager, $request, $response);
|
||||||
|
|
||||||
|
return $view;
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user