php cs fixer

This commit is contained in:
Dennis Eichhorn 2019-04-27 12:05:33 +02:00
parent 70a1fb8dfc
commit a4d6a19165
18 changed files with 154 additions and 154 deletions

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
use phpOMS\Router\RouteVerb;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
use Modules\Admin\Controller\ApiController;
use Modules\Admin\Models\PermissionState;

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
use Modules\Admin\Controller\BackendController;
use Modules\Admin\Models\PermissionState;

View File

@ -71,7 +71,7 @@ final class ApiController extends Controller
$response->set(
$request->getUri()->__toString(),
[
'response' => $this->app->appSettings->get((int) $request->getData('id'))
'response' => $this->app->appSettings->get((int) $request->getData('id')),
]
);
}
@ -559,7 +559,7 @@ final class ApiController extends Controller
'status' => 'warning',
'title' => 'Module',
'message' => 'Invalid module or status',
'response' => []
'response' => [],
]);
$response->getHeader()->setStatusCode(RequestStatusCode::R_403);

View File

@ -1,62 +1,62 @@
<?php
/**
* Orange Management
*
* PHP Version 7.2
*
* @package TBD
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://website.orange-management.de
*/
declare(strict_types=1);
namespace Modules\Admin\Theme\Backend\Components\GroupTagSelector;
use phpOMS\ApplicationAbstract;
use phpOMS\Message\RequestAbstract;
use phpOMS\Message\ResponseAbstract;
use phpOMS\Views\View;
/**
* Component view.
*
* @package TBD
* @license OMS License 1.0
* @link http://website.orange-management.de
* @since 1.0.0
* @codeCoverageIgnore
*/
class GroupTagSelectorPopupView extends View
{
private $id = '';
/**
* {@inheritdoc}
*/
public function __construct(ApplicationAbstract $app, RequestAbstract $request, ResponseAbstract $response)
{
parent::__construct($app, $request, $response);
$this->setTemplate('/Modules/Admin/Theme/Backend/Components/GroupTagSelector/group-selector-popup');
}
public function setId(string $id) : void
{
$this->id = $id;
}
public function getId() : string
{
return $this->id;
}
/**
* {@inheritdoc}
*/
public function render(...$data) : string
{
$this->id = $data[0] ?? $this->id;
return parent::render();
}
}
<?php
/**
* Orange Management
*
* PHP Version 7.2
*
* @package TBD
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://website.orange-management.de
*/
declare(strict_types=1);
namespace Modules\Admin\Theme\Backend\Components\GroupTagSelector;
use phpOMS\ApplicationAbstract;
use phpOMS\Message\RequestAbstract;
use phpOMS\Message\ResponseAbstract;
use phpOMS\Views\View;
/**
* Component view.
*
* @package TBD
* @license OMS License 1.0
* @link http://website.orange-management.de
* @since 1.0.0
* @codeCoverageIgnore
*/
class GroupTagSelectorPopupView extends View
{
private $id = '';
/**
* {@inheritdoc}
*/
public function __construct(ApplicationAbstract $app, RequestAbstract $request, ResponseAbstract $response)
{
parent::__construct($app, $request, $response);
$this->setTemplate('/Modules/Admin/Theme/Backend/Components/GroupTagSelector/group-selector-popup');
}
public function setId(string $id) : void
{
$this->id = $id;
}
public function getId() : string
{
return $this->id;
}
/**
* {@inheritdoc}
*/
public function render(...$data) : string
{
$this->id = $data[0] ?? $this->id;
return parent::render();
}
}

View File

@ -1,69 +1,69 @@
<?php
/**
* Orange Management
*
* PHP Version 7.2
*
* @package TBD
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://website.orange-management.de
*/
declare(strict_types=1);
namespace Modules\Admin\Theme\Backend\Components\GroupTagSelector;
use phpOMS\ApplicationAbstract;
use phpOMS\Message\RequestAbstract;
use phpOMS\Message\ResponseAbstract;
use phpOMS\Views\View;
/**
* Component view.
*
* @package TBD
* @license OMS License 1.0
* @link http://website.orange-management.de
* @since 1.0.0
* @codeCoverageIgnore
*/
class GroupTagSelectorView extends View
{
private $id = '';
private $isRequired = false;
/**
* {@inheritdoc}
*/
public function __construct(ApplicationAbstract $app, RequestAbstract $request, ResponseAbstract $response)
{
parent::__construct($app, $request, $response);
$this->setTemplate('/Modules/Admin/Theme/Backend/Components/GroupTagSelector/group-selector');
$view = new GroupTagSelectorPopupView($app, $request, $response);
$this->addData('group-selector-popup', $view);
}
public function getId() : string
{
return $this->id;
}
public function isRequired() : bool
{
return $this->isRequired;
}
/**
* {@inheritdoc}
*/
public function render(...$data) : string
{
$this->id = $data[0];
$this->isRequired = $data[1] ?? false;
$this->getData('group-selector-popup')->setId($this->id);
return parent::render();
}
}
<?php
/**
* Orange Management
*
* PHP Version 7.2
*
* @package TBD
* @copyright Dennis Eichhorn
* @license OMS License 1.0
* @version 1.0.0
* @link http://website.orange-management.de
*/
declare(strict_types=1);
namespace Modules\Admin\Theme\Backend\Components\GroupTagSelector;
use phpOMS\ApplicationAbstract;
use phpOMS\Message\RequestAbstract;
use phpOMS\Message\ResponseAbstract;
use phpOMS\Views\View;
/**
* Component view.
*
* @package TBD
* @license OMS License 1.0
* @link http://website.orange-management.de
* @since 1.0.0
* @codeCoverageIgnore
*/
class GroupTagSelectorView extends View
{
private $id = '';
private $isRequired = false;
/**
* {@inheritdoc}
*/
public function __construct(ApplicationAbstract $app, RequestAbstract $request, ResponseAbstract $response)
{
parent::__construct($app, $request, $response);
$this->setTemplate('/Modules/Admin/Theme/Backend/Components/GroupTagSelector/group-selector');
$view = new GroupTagSelectorPopupView($app, $request, $response);
$this->addData('group-selector-popup', $view);
}
public function getId() : string
{
return $this->id;
}
public function isRequired() : bool
{
return $this->isRequired;
}
/**
* {@inheritdoc}
*/
public function render(...$data) : string
{
$this->id = $data[0];
$this->isRequired = $data[1] ?? false;
$this->getData('group-selector-popup')->setId($this->id);
return parent::render();
}
}

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* Orange Management
*

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* Orange Management
*

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* Orange Management
*

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* Orange Management
*

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* Orange Management
*
@ -13,7 +13,7 @@
use \phpOMS\Account\AccountStatus;
/**
/**
* @var \phpOMS\Views\View $this
*/
echo $this->getData('nav')->render(); ?>

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* Orange Management
*

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* Orange Management
*

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* Orange Management
*

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* Orange Management
*

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* Orange Management
*

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* Orange Management
*
@ -31,7 +31,7 @@ if ($nav !== null) {
<div class="row">
<div class="col-xs-12 col-md-4">
<section class="box wf-100">
<header><h1><?= $this->printHtml($modules[$id]['name']['external'] ); ?></h1></header>
<header><h1><?= $this->printHtml($modules[$id]['name']['external']); ?></h1></header>
<div class="inner">
<table class="list wf-100">
@ -41,16 +41,16 @@ if ($nav !== null) {
<td><?= $this->printHtml($modules[$id]['name']['external']); ?>
<tr>
<td><?= $this->getHtml('Version'); ?>
<td><?= $this->printHtml($modules[$id]['version'] ); ?>
<td><?= $this->printHtml($modules[$id]['version']); ?>
<tr>
<td><?= $this->getHtml('CreatedBy'); ?>
<td><?= $this->printHtml($modules[$id]['creator']['name'] ); ?>
<td><?= $this->printHtml($modules[$id]['creator']['name']); ?>
<tr>
<td><?= $this->getHtml('Website'); ?>
<td><?= $this->printHtml($modules[$id]['creator']['website'] ); ?>
<td><?= $this->printHtml($modules[$id]['creator']['website']); ?>
<tr>
<td><?= $this->getHtml('Description'); ?>
<td><?= $this->printHtml($modules[$id]['description'] ); ?>
<td><?= $this->printHtml($modules[$id]['description']); ?>
<tr>
<td colspan="2">
<?php if (isset($active[$id])) : ?>

View File

@ -1,4 +1,4 @@
<?php
<?php declare(strict_types=1);
/**
* Orange Management
*