phpcs fixes

This commit is contained in:
Dennis Eichhorn 2019-10-06 17:50:12 +02:00
parent 6ca465a7d2
commit 5ad9272598
31 changed files with 335 additions and 85 deletions

View File

@ -24,13 +24,29 @@ namespace Modules\RiskManagement\Models;
*/
class Category
{
private $id = 0;
/**
* ID.
*
* @var int
* @since 1.0.0
*/
protected int $id = 0;
private $title = '';
private $description = '';
private $descriptionRaw = '';
/**
* Description.
*
* @var string
* @since 1.0.0
*/
private string $description = '';
/**
* Description.
*
* @var string
* @since 1.0.0
*/
private string $descriptionRaw = '';
private $parent = null;
@ -38,10 +54,13 @@ class Category
private $deputy = null;
public function __construct()
{
}
/**
* Get id.
*
* @return int Model id
*
* @since 1.0.0
*/
public function getId() : int
{
return $this->id;
@ -87,6 +106,13 @@ class Category
$this->title = $title;
}
/**
* Get description
*
* @return string
*
* @since 1.0.0
*/
public function getDescription() : string
{
return $this->description;

View File

@ -24,13 +24,29 @@ namespace Modules\RiskManagement\Models;
*/
class Cause
{
private $id = 0;
/**
* ID.
*
* @var int
* @since 1.0.0
*/
protected int $id = 0;
private $title = '';
private $description = '';
private $descriptionRaw = '';
/**
* Description.
*
* @var string
* @since 1.0.0
*/
private string $description = '';
/**
* Description.
*
* @var string
* @since 1.0.0
*/
private string $descriptionRaw = '';
private $probability = 0;
@ -40,10 +56,13 @@ class Cause
private $category = null;
public function __construct()
{
}
/**
* Get id.
*
* @return int Model id
*
* @since 1.0.0
*/
public function getId() : int
{
return $this->id;
@ -99,6 +118,13 @@ class Cause
$this->title = $title;
}
/**
* Get description
*
* @return string
*
* @since 1.0.0
*/
public function getDescription() : string
{
return $this->description;

View File

@ -26,7 +26,13 @@ use Modules\Organization\Models\NullDepartment as NullOrgDepartment;
*/
class Department
{
private $id = 0;
/**
* ID.
*
* @var int
* @since 1.0.0
*/
protected int $id = 0;
private $department = null;
@ -34,10 +40,13 @@ class Department
private $deputy = null;
public function __construct()
{
}
/**
* Get id.
*
* @return int Model id
*
* @since 1.0.0
*/
public function getId() : int
{
return $this->id;

View File

@ -24,13 +24,29 @@ namespace Modules\RiskManagement\Models;
*/
class Process
{
private $id = 0;
/**
* ID.
*
* @var int
* @since 1.0.0
*/
protected int $id = 0;
private $title = '';
private $description = '';
private $descriptionRaw = '';
/**
* Description.
*
* @var string
* @since 1.0.0
*/
private string $description = '';
/**
* Description.
*
* @var string
* @since 1.0.0
*/
private string $descriptionRaw = '';
private $department = null;
@ -40,10 +56,13 @@ class Process
private $unit = 1;
public function __construct()
{
}
/**
* Get id.
*
* @return int Model id
*
* @since 1.0.0
*/
public function getId() : int
{
return $this->id;
@ -59,6 +78,13 @@ class Process
$this->title = $title;
}
/**
* Get description
*
* @return string
*
* @since 1.0.0
*/
public function getDescription() : string
{
return $this->description;

View File

@ -24,7 +24,13 @@ namespace Modules\RiskManagement\Models;
*/
class Project
{
private $id = 0;
/**
* ID.
*
* @var int
* @since 1.0.0
*/
protected int $id = 0;
private $project = null;
@ -32,10 +38,13 @@ class Project
private $deputy = null;
public function __construct()
{
}
/**
* Get id.
*
* @return int Model id
*
* @since 1.0.0
*/
public function getId() : int
{
return $this->id;

View File

@ -24,13 +24,34 @@ namespace Modules\RiskManagement\Models;
*/
class Risk
{
private $id = 0;
private $name = '';
private $description = '';
private $descriptionRaw = '';
/**
* ID.
*
* @var int
* @since 1.0.0
*/
protected int $id = 0;
/**
* Name.
*
* @var string
* @since 1.0.0
*/
private string $name = '';
/**
* Description.
*
* @var string
* @since 1.0.0
*/
private string $description = '';
/**
* Description.
*
* @var string
* @since 1.0.0
*/
private string $descriptionRaw = '';
private $unit = 1;
@ -58,11 +79,23 @@ class Risk
private $createdAt = null;
/**
* Constructor.
*
* @since 1.0.0
*/
public function __construct()
{
$this->createdAt = new \DateTime('now');
}
/**
* Get id.
*
* @return int Model id
*
* @since 1.0.0
*/
public function getId() : int
{
return $this->id;
@ -118,16 +151,39 @@ class Risk
return $this->histScore;
}
/**
* Get name
*
* @return string
*
* @since 1.0.0
*/
public function getName() : string
{
return $this->name;
}
/**
* Set name
*
* @param string $name Name
*
* @return void
*
* @since 1.0.0
*/
public function setName(string $name) : void
{
$this->name = $name;
}
/**
* Get description
*
* @return string
*
* @since 1.0.0
*/
public function getDescription() : string
{
return $this->description;

View File

@ -24,20 +24,39 @@ namespace Modules\RiskManagement\Models;
*/
class RiskObject
{
private $id = 0;
/**
* ID.
*
* @var int
* @since 1.0.0
*/
protected int $id = 0;
private $title = '';
private $description = '';
private $descriptionRaw = '';
/**
* Description.
*
* @var string
* @since 1.0.0
*/
private string $description = '';
/**
* Description.
*
* @var string
* @since 1.0.0
*/
private string $descriptionRaw = '';
private $risk = null;
public function __construct()
{
}
/**
* Get id.
*
* @return int Model id
*
* @since 1.0.0
*/
public function getId() : int
{
return $this->id;
@ -63,6 +82,13 @@ class RiskObject
$this->title = $title;
}
/**
* Get description
*
* @return string
*
* @since 1.0.0
*/
public function getDescription() : string
{
return $this->description;

View File

@ -24,13 +24,29 @@ namespace Modules\RiskManagement\Models;
*/
class Solution
{
private $id = 0;
/**
* ID.
*
* @var int
* @since 1.0.0
*/
protected int $id = 0;
private $title = '';
private $description = '';
private $descriptionRaw = '';
/**
* Description.
*
* @var string
* @since 1.0.0
*/
private string $description = '';
/**
* Description.
*
* @var string
* @since 1.0.0
*/
private string $descriptionRaw = '';
private $probability = 0;
@ -38,10 +54,13 @@ class Solution
private $risk = null;
public function __construct()
{
}
/**
* Get id.
*
* @return int Model id
*
* @since 1.0.0
*/
public function getId() : int
{
return $this->id;
@ -87,6 +106,13 @@ class Solution
$this->title = $title;
}
/**
* Get description
*
* @return string
*
* @since 1.0.0
*/
public function getDescription() : string
{
return $this->description;

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -1,4 +1,4 @@
<?php declare(strict_types=1);
<?php
/**
* Orange Management
*
@ -10,6 +10,8 @@
* @version 1.0.0
* @link https://orange-management.org
*/
declare(strict_types=1);
/**
* @var \phpOMS\Views\View $this
*/

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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