From 897690878a8c12fe4bd4081d608cb6efb13696f3 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Thu, 12 Sep 2019 19:48:00 +0200 Subject: [PATCH] fix phpcs findings --- Admin/Install/Navigation.php | 20 +++--- Admin/Installer.php | 18 ++--- Admin/Status.php | 18 ++--- Admin/Uninstaller.php | 18 ++--- Admin/Updater.php | 18 ++--- Controller/ApiController.php | 36 +++++----- Controller/BackendController.php | 38 ++++++---- Controller/Controller.php | 30 ++++---- Models/NewsArticle.php | 88 +++++++++++------------ Models/NewsArticleMapper.php | 28 ++++---- Models/NewsStatus.php | 18 ++--- Models/NewsType.php | 18 ++--- Models/NullNewsArticle.php | 18 ++--- Models/PermissionState.php | 18 ++--- Theme/Backend/Lang/Navigation.en.lang.php | 10 +-- Theme/Backend/Lang/en.lang.php | 10 +-- Theme/Backend/dashboard-news.tpl.php | 10 +-- Theme/Backend/news-archive.tpl.php | 10 +-- Theme/Backend/news-create.tpl.php | 10 +-- Theme/Backend/news-dashboard.tpl.php | 10 +-- Theme/Backend/news-single.tpl.php | 10 +-- 21 files changed, 232 insertions(+), 222 deletions(-) diff --git a/Admin/Install/Navigation.php b/Admin/Install/Navigation.php index 845b080..b9c8549 100644 --- a/Admin/Install/Navigation.php +++ b/Admin/Install/Navigation.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\News\Admin\Install - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\News\Admin\Install + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -19,10 +19,10 @@ use phpOMS\DataStorage\Database\DatabasePool; /** * Navigation class. * - * @package Modules\News\Admin\Install - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\News\Admin\Install + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ class Navigation { @@ -34,7 +34,7 @@ class Navigation * * @return void * - * @since 1.0.0 + * @since 1.0.0 */ public static function install(string $path, DatabasePool $dbPool) : void { diff --git a/Admin/Installer.php b/Admin/Installer.php index 08e0ef5..0e8b0bd 100644 --- a/Admin/Installer.php +++ b/Admin/Installer.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\News\Admin - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\News\Admin + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -19,10 +19,10 @@ use phpOMS\Module\InstallerAbstract; /** * Installer class. * - * @package Modules\News\Admin - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\News\Admin + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ class Installer extends InstallerAbstract { diff --git a/Admin/Status.php b/Admin/Status.php index 513411b..fe922ef 100644 --- a/Admin/Status.php +++ b/Admin/Status.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\News\Admin - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\News\Admin + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -19,10 +19,10 @@ use phpOMS\Module\StatusAbstract; /** * Navigation class. * - * @package Modules\News\Admin - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\News\Admin + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ class Status extends StatusAbstract { diff --git a/Admin/Uninstaller.php b/Admin/Uninstaller.php index 171dc33..82724ea 100644 --- a/Admin/Uninstaller.php +++ b/Admin/Uninstaller.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\News\Admin - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\News\Admin + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -19,10 +19,10 @@ use phpOMS\Module\UninstallerAbstract; /** * Uninstaller class. * - * @package Modules\News\Admin - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\News\Admin + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ class Uninstaller extends UninstallerAbstract { diff --git a/Admin/Updater.php b/Admin/Updater.php index 3751ad8..ae2b1dc 100644 --- a/Admin/Updater.php +++ b/Admin/Updater.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\News\Admin - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\News\Admin + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -19,10 +19,10 @@ use phpOMS\Module\UpdaterAbstract; /** * Updater class. * - * @package Modules\News\Admin - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\News\Admin + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ class Updater extends UpdaterAbstract { diff --git a/Controller/ApiController.php b/Controller/ApiController.php index a97a080..ff472db 100644 --- a/Controller/ApiController.php +++ b/Controller/ApiController.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\News - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\News + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -30,10 +30,10 @@ use phpOMS\Utils\Parser\Markdown\Markdown; /** * News controller class. * - * @package Modules\News - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\News + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ final class ApiController extends Controller { @@ -44,7 +44,7 @@ final class ApiController extends Controller * * @return array * - * @since 1.0.0 + * @since 1.0.0 */ private function validateNewsCreate(RequestAbstract $request) : array { @@ -81,7 +81,7 @@ final class ApiController extends Controller * * @api * - * @since 1.0.0 + * @since 1.0.0 */ public function apiNewsUpdate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void { @@ -98,7 +98,7 @@ final class ApiController extends Controller * * @return NewsArticle * - * @since 1.0.0 + * @since 1.0.0 */ private function updateNewsFromRequest(RequestAbstract $request) : NewsArticle { @@ -126,7 +126,7 @@ final class ApiController extends Controller * * @api * - * @since 1.0.0 + * @since 1.0.0 */ public function apiNewsCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : void { @@ -148,7 +148,7 @@ final class ApiController extends Controller * * @return NewsArticle * - * @since 1.0.0 + * @since 1.0.0 */ private function createNewsArticleFromRequest(RequestAbstract $request) : NewsArticle { @@ -177,7 +177,7 @@ final class ApiController extends Controller * * @api * - * @since 1.0.0 + * @since 1.0.0 */ public function apiNewsGet(RequestAbstract $request, ResponseAbstract $response, $data = null) : void { @@ -196,7 +196,7 @@ final class ApiController extends Controller * * @return array * - * @since 1.0.0 + * @since 1.0.0 */ public function getNewsListR(int $limit = 50, int $offset = 0, string $orderBy = 'news_created', string $ordered = 'ASC', Account $account = null) { @@ -221,7 +221,7 @@ final class ApiController extends Controller * * @return array * - * @since 1.0.0 + * @since 1.0.0 */ public function getHeadlineListR(int $limit = 50, int $offset = 0, string $orderBy = 'news_created', string $ordered = 'ASC', Account $account = null) { @@ -246,7 +246,7 @@ final class ApiController extends Controller * * @api * - * @since 1.0.0 + * @since 1.0.0 */ public function apiNewsDelete(RequestAbstract $request, ResponseAbstract $response, $data = null) : void { diff --git a/Controller/BackendController.php b/Controller/BackendController.php index b699819..1767ae0 100644 --- a/Controller/BackendController.php +++ b/Controller/BackendController.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\News - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\News + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -27,22 +27,24 @@ use phpOMS\Views\View; /** * News controller class. * - * @package Modules\News - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\News + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ final class BackendController extends Controller { /** + * Routing end-point for application behaviour. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * * @return RenderableInterface * - * @since 1.0.0 + * @since 1.0.0 * @codeCoverageIgnore */ public function viewNewsDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface @@ -58,13 +60,15 @@ final class BackendController extends Controller return $view; } /** + * Routing end-point for application behaviour. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * * @return RenderableInterface * - * @since 1.0.0 + * @since 1.0.0 * @codeCoverageIgnore */ public function viewDashboard(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface @@ -79,13 +83,15 @@ final class BackendController extends Controller } /** + * Routing end-point for application behaviour. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * * @return RenderableInterface * - * @since 1.0.0 + * @since 1.0.0 * @codeCoverageIgnore */ public function viewNewsArticle(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface @@ -112,13 +118,15 @@ final class BackendController extends Controller } /** + * Routing end-point for application behaviour. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * * @return RenderableInterface * - * @since 1.0.0 + * @since 1.0.0 * @codeCoverageIgnore */ public function viewNewsArchive(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface @@ -135,13 +143,15 @@ final class BackendController extends Controller } /** + * Routing end-point for application behaviour. + * * @param RequestAbstract $request Request * @param ResponseAbstract $response Response * @param mixed $data Generic data * * @return RenderableInterface * - * @since 1.0.0 + * @since 1.0.0 * @codeCoverageIgnore */ public function viewNewsCreate(RequestAbstract $request, ResponseAbstract $response, $data = null) : RenderableInterface diff --git a/Controller/Controller.php b/Controller/Controller.php index 61c872b..e839aa3 100644 --- a/Controller/Controller.php +++ b/Controller/Controller.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\News - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\News + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -20,10 +20,10 @@ use phpOMS\Module\WebInterface; /** * News controller class. * - * @package Modules\News - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\News + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ class Controller extends ModuleAbstract implements WebInterface { @@ -31,7 +31,7 @@ class Controller extends ModuleAbstract implements WebInterface /** * Module path. * - * @var string + * @var string * @since 1.0.0 */ public const MODULE_PATH = __DIR__ . '/../'; @@ -39,7 +39,7 @@ class Controller extends ModuleAbstract implements WebInterface /** * Module version. * - * @var string + * @var string * @since 1.0.0 */ public const MODULE_VERSION = '1.0.0'; @@ -47,7 +47,7 @@ class Controller extends ModuleAbstract implements WebInterface /** * Module name. * - * @var string + * @var string * @since 1.0.0 */ public const MODULE_NAME = 'News'; @@ -55,7 +55,7 @@ class Controller extends ModuleAbstract implements WebInterface /** * Module id. * - * @var int + * @var int * @since 1.0.0 */ public const MODULE_ID = 1000600000; @@ -63,7 +63,7 @@ class Controller extends ModuleAbstract implements WebInterface /** * Providing. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static array $providing = []; @@ -71,7 +71,7 @@ class Controller extends ModuleAbstract implements WebInterface /** * Dependencies. * - * @var string[] + * @var string[] * @since 1.0.0 */ protected static array $dependencies = []; diff --git a/Models/NewsArticle.php b/Models/NewsArticle.php index 06aaee7..3a5d599 100644 --- a/Models/NewsArticle.php +++ b/Models/NewsArticle.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\News\Models - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\News\Models + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -21,10 +21,10 @@ use phpOMS\Stdlib\Base\Exception\InvalidEnumValue; /** * News article class. * - * @package Modules\News\Models - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\News\Models + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ class NewsArticle implements ArrayableInterface, \JsonSerializable { @@ -32,7 +32,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable /** * Article ID. * - * @var int + * @var int * @since 1.0.0 */ private int $id = 0; @@ -40,7 +40,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable /** * Title. * - * @var string + * @var string * @since 1.0.0 */ private string $title = ''; @@ -48,7 +48,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable /** * Content. * - * @var string + * @var string * @since 1.0.0 */ private string $content = ''; @@ -56,7 +56,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable /** * Unparsed. * - * @var string + * @var string * @since 1.0.0 */ private string $plain = ''; @@ -64,7 +64,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable /** * News type. * - * @var int + * @var int * @since 1.0.0 */ private int $type = NewsType::ARTICLE; @@ -72,7 +72,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable /** * News status. * - * @var int + * @var int * @since 1.0.0 */ private int $status = NewsStatus::DRAFT; @@ -80,7 +80,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable /** * Language. * - * @var string + * @var string * @since 1.0.0 */ private string $language = ISO639x1Enum::_EN; @@ -88,7 +88,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable /** * Created. * - * @var null|\DateTime + * @var null|\DateTime * @since 1.0.0 */ private ?\DateTime $createdAt = null; @@ -96,7 +96,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable /** * Creator. * - * @var int + * @var int * @since 1.0.0 */ private $createdBy = 0; @@ -104,7 +104,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable /** * Publish. * - * @var null|\DateTime + * @var null|\DateTime * @since 1.0.0 */ private ?\DateTime $publish = null; @@ -112,7 +112,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable /** * Featured. * - * @var bool + * @var bool * @since 1.0.0 */ private bool $featured = false; @@ -120,7 +120,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable /** * Badge. * - * @var array + * @var array * @since 1.0.0 */ private array $badges = []; @@ -128,7 +128,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable /** * Constructor. * - * @since 1.0.0 + * @since 1.0.0 */ public function __construct() { @@ -141,7 +141,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return array * - * @since 1.0.0 + * @since 1.0.0 */ public function getBadges() : array { @@ -155,7 +155,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return void * - * @since 1.0.0 + * @since 1.0.0 */ public function addBadge($badge) : void { @@ -167,7 +167,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return string * - * @since 1.0.0 + * @since 1.0.0 */ public function getContent() : string { @@ -181,7 +181,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return void * - * @since 1.0.0 + * @since 1.0.0 */ public function setContent(string $content) : void { @@ -195,7 +195,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return void * - * @since 1.0.0 + * @since 1.0.0 */ public function setPlain(string $plain) : void { @@ -207,7 +207,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return string * - * @since 1.0.0 + * @since 1.0.0 */ public function getPlain() : string { @@ -219,7 +219,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return \DateTime * - * @since 1.0.0 + * @since 1.0.0 */ public function getCreatedAt() : \DateTime { @@ -231,7 +231,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return int * - * @since 1.0.0 + * @since 1.0.0 */ public function getId() : int { @@ -243,7 +243,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return string * - * @since 1.0.0 + * @since 1.0.0 */ public function getLanguage() : string { @@ -255,7 +255,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return \DateTime * - * @since 1.0.0 + * @since 1.0.0 */ public function getPublish() : \DateTime { @@ -269,7 +269,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return void * - * @since 1.0.0 + * @since 1.0.0 */ public function setLanguage(string $language) : void { @@ -287,7 +287,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return void * - * @since 1.0.0 + * @since 1.0.0 */ public function setPublish(\DateTime $publish) : void { @@ -299,7 +299,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return int|\phpOMS\Account\Account * - * @since 1.0.0 + * @since 1.0.0 */ public function getCreatedBy() { @@ -313,7 +313,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return void * - * @since 1.0.0 + * @since 1.0.0 */ public function setCreatedBy($id) : void { @@ -323,7 +323,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable /** * @return string * - * @since 1.0.0 + * @since 1.0.0 */ public function getTitle() : string { @@ -337,7 +337,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return void * - * @since 1.0.0 + * @since 1.0.0 */ public function setTitle(string $title) : void { @@ -349,7 +349,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return int * - * @since 1.0.0 + * @since 1.0.0 */ public function getType() : int { @@ -363,7 +363,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return void * - * @since 1.0.0 + * @since 1.0.0 */ public function setType(int $type) : void { @@ -379,7 +379,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return int * - * @since 1.0.0 + * @since 1.0.0 */ public function getStatus() : int { @@ -393,7 +393,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @throws InvalidEnumValue * - * @since 1.0.0 + * @since 1.0.0 */ public function setStatus(int $status) : void { @@ -407,7 +407,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable /** * @return bool * - * @since 1.0.0 + * @since 1.0.0 */ public function isFeatured() : bool { @@ -421,7 +421,7 @@ class NewsArticle implements ArrayableInterface, \JsonSerializable * * @return void * - * @since 1.0.0 + * @since 1.0.0 */ public function setFeatured(bool $featured) : void { diff --git a/Models/NewsArticleMapper.php b/Models/NewsArticleMapper.php index 8e7c5c2..41e1f2c 100644 --- a/Models/NewsArticleMapper.php +++ b/Models/NewsArticleMapper.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package TBD - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package TBD + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -20,10 +20,10 @@ use phpOMS\DataStorage\Database\DataMapperAbstract; /** * News mapper class. * - * @package Modules\News - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\News + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ final class NewsArticleMapper extends DataMapperAbstract { @@ -31,7 +31,7 @@ final class NewsArticleMapper extends DataMapperAbstract /** * Columns. * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $columns = [ @@ -51,7 +51,7 @@ final class NewsArticleMapper extends DataMapperAbstract /** * Belongs to. * - * @var array> + * @var array> * @since 1.0.0 */ protected static array $belongsTo = [ @@ -64,7 +64,7 @@ final class NewsArticleMapper extends DataMapperAbstract /** * Primary table. * - * @var string + * @var string * @since 1.0.0 */ protected static string $table = 'news'; @@ -72,7 +72,7 @@ final class NewsArticleMapper extends DataMapperAbstract /** * Primary field name. * - * @var string + * @var string * @since 1.0.0 */ protected static string $primaryField = 'news_id'; @@ -80,7 +80,7 @@ final class NewsArticleMapper extends DataMapperAbstract /** * Created at. * - * @var string + * @var string * @since 1.0.0 */ protected static string $createdAt = 'news_created_at'; diff --git a/Models/NewsStatus.php b/Models/NewsStatus.php index 934aa87..722104f 100644 --- a/Models/NewsStatus.php +++ b/Models/NewsStatus.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\News\Models - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\News\Models + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum; /** * News type status. * - * @package Modules\News\Models - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\News\Models + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ abstract class NewsStatus extends Enum { diff --git a/Models/NewsType.php b/Models/NewsType.php index c9b046f..d0963cc 100644 --- a/Models/NewsType.php +++ b/Models/NewsType.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\News\Models - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\News\Models + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum; /** * News type enum. * - * @package Modules\News\Models - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\News\Models + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ abstract class NewsType extends Enum { diff --git a/Models/NullNewsArticle.php b/Models/NullNewsArticle.php index bbec15c..6b01bd6 100644 --- a/Models/NullNewsArticle.php +++ b/Models/NullNewsArticle.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\News - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\News + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -17,10 +17,10 @@ namespace Modules\News\Models; /** * Null model * - * @package Modules\News - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\News + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ class NullNewsArticle extends NewsArticle { diff --git a/Models/PermissionState.php b/Models/PermissionState.php index e08b399..cc5812a 100644 --- a/Models/PermissionState.php +++ b/Models/PermissionState.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package Modules\News\Models - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package Modules\News\Models + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ declare(strict_types=1); @@ -19,10 +19,10 @@ use phpOMS\Stdlib\Base\Enum; /** * Permision state enum. * - * @package Modules\News\Models - * @license OMS License 1.0 - * @link https://orange-management.org - * @since 1.0.0 + * @package Modules\News\Models + * @license OMS License 1.0 + * @link https://orange-management.org + * @since 1.0.0 */ abstract class PermissionState extends Enum { diff --git a/Theme/Backend/Lang/Navigation.en.lang.php b/Theme/Backend/Lang/Navigation.en.lang.php index 8db3082..98e02ba 100644 --- a/Theme/Backend/Lang/Navigation.en.lang.php +++ b/Theme/Backend/Lang/Navigation.en.lang.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package TBD - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package TBD + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ return ['Navigation' => [ 'Archive' => 'Archive', diff --git a/Theme/Backend/Lang/en.lang.php b/Theme/Backend/Lang/en.lang.php index a9cb34d..fc20f30 100644 --- a/Theme/Backend/Lang/en.lang.php +++ b/Theme/Backend/Lang/en.lang.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package TBD - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package TBD + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ return ['News' => [ 'Additional' => 'Additional', diff --git a/Theme/Backend/dashboard-news.tpl.php b/Theme/Backend/dashboard-news.tpl.php index 7d873ca..795ec55 100644 --- a/Theme/Backend/dashboard-news.tpl.php +++ b/Theme/Backend/dashboard-news.tpl.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package TBD - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package TBD + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ /** * @var \phpOMS\Views\View $this diff --git a/Theme/Backend/news-archive.tpl.php b/Theme/Backend/news-archive.tpl.php index 88a2003..1dc2a0c 100644 --- a/Theme/Backend/news-archive.tpl.php +++ b/Theme/Backend/news-archive.tpl.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package TBD - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package TBD + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ /** * @var \phpOMS\Views\View $this diff --git a/Theme/Backend/news-create.tpl.php b/Theme/Backend/news-create.tpl.php index c564f6a..a8c04b7 100644 --- a/Theme/Backend/news-create.tpl.php +++ b/Theme/Backend/news-create.tpl.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package TBD - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package TBD + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ /** * @var \phpOMS\Views\View $this diff --git a/Theme/Backend/news-dashboard.tpl.php b/Theme/Backend/news-dashboard.tpl.php index 7054029..1408a59 100644 --- a/Theme/Backend/news-dashboard.tpl.php +++ b/Theme/Backend/news-dashboard.tpl.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package TBD - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package TBD + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ /** * @var \phpOMS\Views\View $this diff --git a/Theme/Backend/news-single.tpl.php b/Theme/Backend/news-single.tpl.php index 5daf1e7..4746a71 100644 --- a/Theme/Backend/news-single.tpl.php +++ b/Theme/Backend/news-single.tpl.php @@ -4,11 +4,11 @@ * * PHP Version 7.4 * - * @package TBD - * @copyright Dennis Eichhorn - * @license OMS License 1.0 - * @version 1.0.0 - * @link https://orange-management.org + * @package TBD + * @copyright Dennis Eichhorn + * @license OMS License 1.0 + * @version 1.0.0 + * @link https://orange-management.org */ /** * @var \phpOMS\Views\View $this