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

View File

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

View File

@ -26,7 +26,13 @@ use Modules\Organization\Models\NullDepartment as NullOrgDepartment;
*/ */
class Department class Department
{ {
private $id = 0; /**
* ID.
*
* @var int
* @since 1.0.0
*/
protected int $id = 0;
private $department = null; private $department = null;
@ -34,10 +40,13 @@ class Department
private $deputy = null; private $deputy = null;
public function __construct() /**
{ * 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

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

View File

@ -24,7 +24,13 @@ namespace Modules\RiskManagement\Models;
*/ */
class Project class Project
{ {
private $id = 0; /**
* ID.
*
* @var int
* @since 1.0.0
*/
protected int $id = 0;
private $project = null; private $project = null;
@ -32,10 +38,13 @@ class Project
private $deputy = null; private $deputy = null;
public function __construct() /**
{ * 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

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

View File

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

View File

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

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' => [
'Categories' => 'Categories', 'Categories' => 'Categories',
'Causes' => 'Causes', 'Causes' => 'Causes',

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 ['RiskManagement' => [ return ['RiskManagement' => [
'Active' => 'Active', 'Active' => 'Active',
'All' => 'All', 'All' => 'All',

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);
$categories = $this->getData('categories'); $categories = $this->getData('categories');
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,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);
$category = $this->getData('category'); $category = $this->getData('category');
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,4 +10,6 @@
* @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);
$causes = $this->getData('causes'); $causes = $this->getData('causes');
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,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);
$cause = $this->getData('cause'); $cause = $this->getData('cause');
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);
/** /**
* @var \phpOMS\Views\View $this * @var \phpOMS\Views\View $this
*/ */

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);
$departments = $this->getData('departments'); $departments = $this->getData('departments');
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);
$department = $this->getData('department'); $department = $this->getData('department');
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);
$processes = $this->getData('processes'); $processes = $this->getData('processes');
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,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);
$process = $this->getData('process'); $process = $this->getData('process');
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);
$projects = $this->getData('projects'); $projects = $this->getData('projects');
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,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);
$project = $this->getData('project'); $project = $this->getData('project');
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);
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>
<div class="tabview tab-2"> <div class="tabview tab-2">

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);
$risks = $this->getData('risks'); $risks = $this->getData('risks');
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);
$risk = $this->getData('risk'); $risk = $this->getData('risk');
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,4 +10,6 @@
* @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,4 +10,6 @@
* @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);
$solutions = $this->getData('solutions'); $solutions = $this->getData('solutions');
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,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);
$solution = $this->getData('solution'); $solution = $this->getData('solution');
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);
$units = $this->getData('units'); $units = $this->getData('units');
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);
$unit = $this->getData('unit'); $unit = $this->getData('unit');
echo $this->getData('nav')->render(); ?> echo $this->getData('nav')->render(); ?>