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; use phpOMS\Router\RouteVerb;

View File

@ -1,4 +1,4 @@
<?php <?php declare(strict_types=1);
use Modules\Admin\Controller\ApiController; use Modules\Admin\Controller\ApiController;
use Modules\Admin\Models\PermissionState; 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\Controller\BackendController;
use Modules\Admin\Models\PermissionState; use Modules\Admin\Models\PermissionState;

View File

@ -71,7 +71,7 @@ final class ApiController extends Controller
$response->set( $response->set(
$request->getUri()->__toString(), $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', 'status' => 'warning',
'title' => 'Module', 'title' => 'Module',
'message' => 'Invalid module or status', 'message' => 'Invalid module or status',
'response' => [] 'response' => [],
]); ]);
$response->getHeader()->setStatusCode(RequestStatusCode::R_403); $response->getHeader()->setStatusCode(RequestStatusCode::R_403);

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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