phpcs fixes

This commit is contained in:
Dennis Eichhorn 2019-10-06 17:50:12 +02:00
parent de2fe42dbf
commit 760c7a10b1
7 changed files with 72 additions and 11 deletions

View File

@ -38,15 +38,25 @@ class Event
*/ */
private int $id = 0; private int $id = 0;
private $type = EventType::DEFAULT; private int $type = EventType::DEFAULT;
private $start = null; private $start = null;
private $end = null; private $end = null;
/**
private $name = ''; * Name.
*
private $description = ''; * @var string
* @since 1.0.0
*/
private string $name = '';
/**
* Description.
*
* @var string
* @since 1.0.0
*/
private string $description = '';
private $calendar = null; private $calendar = null;
@ -148,21 +158,53 @@ class Event
return $this->calendar; return $this->calendar;
} }
/**
* Set description
*
* @param string $description Description
*
* @return void
*
* @since 1.0.0
*/
public function setDescription(string $description) : void public function setDescription(string $description) : void
{ {
$this->description = $description; $this->description = $description;
} }
/**
* Get description
*
* @return string
*
* @since 1.0.0
*/
public function getDescription() : string public function getDescription() : string
{ {
return $this->description; return $this->description;
} }
/**
* Set name
*
* @param string $name Name
*
* @return void
*
* @since 1.0.0
*/
public function setName(string $name) : void public function setName(string $name) : void
{ {
$this->name = $name; $this->name = $name;
} }
/**
* Get name
*
* @return string
*
* @since 1.0.0
*/
public function getName() : string public function getName() : string
{ {
return $this->name; return $this->name;
@ -203,6 +245,13 @@ class Event
return \count($this->tasks); return \count($this->tasks);
} }
/**
* Get id.
*
* @return int Model id
*
* @since 1.0.0
*/
public function getId() : int public function getId() : int
{ {
return $this->id; return $this->id;

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1); <?php
/** /**
* Orange Management * Orange Management
* *
@ -10,6 +10,8 @@
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1);
return ['Navigation' => [ return ['Navigation' => [
'EventManagement' => 'Event Management', 'EventManagement' => 'Event Management',
]]; ]];

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1); <?php
/** /**
* Orange Management * Orange Management
* *
@ -10,5 +10,7 @@
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1);
$MODLANG[1] = [ $MODLANG[1] = [
]; ];

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1); <?php
/** /**
* Orange Management * Orange Management
* *
@ -10,6 +10,8 @@
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1);
return ['EventManagement' => [ return ['EventManagement' => [
'Account' => 'Account', 'Account' => 'Account',
'Actual' => 'Actual', 'Actual' => 'Actual',

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1); <?php
/** /**
* Orange Management * Orange Management
* *
@ -10,6 +10,8 @@
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1);
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1); <?php
/** /**
* Orange Management * Orange Management
* *
@ -10,6 +10,8 @@
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1);
$footerView = new \phpOMS\Views\PaginationView($this->app, $this->request, $this->response); $footerView = new \phpOMS\Views\PaginationView($this->app, $this->request, $this->response);
$footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig'); $footerView->setTemplate('/Web/Templates/Lists/Footer/PaginationBig');

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1); <?php
/** /**
* Orange Management * Orange Management
* *
@ -10,6 +10,8 @@
* @version 1.0.0 * @version 1.0.0
* @link https://orange-management.org * @link https://orange-management.org
*/ */
declare(strict_types=1);
$event = $this->getData('event'); $event = $this->getData('event');
$tasks = $event->getTasks(); $tasks = $event->getTasks();