phpcs fixes

This commit is contained in:
Dennis Eichhorn 2019-10-06 17:50:12 +02:00
parent 6d07806a0a
commit d21b8b0cf1
7 changed files with 60 additions and 13 deletions

View File

@ -24,20 +24,34 @@ namespace Modules\Profile\Models;
*/ */
class ContactElement class ContactElement
{ {
private $id = 0; /**
* ID.
*
* @var int
* @since 1.0.0
*/
protected int $id = 0;
private $type = 0; private int $type = 0;
private $subtype = 0; private $subtype = 0;
private $value = ''; private $value = '';
/**
* Description.
*
* @var string
* @since 1.0.0
*/
private string $description = '';
private $description = ''; /**
* Get id.
public function __construct() *
{ * @return int Model id
} *
* @since 1.0.0
*/
public function getId() : int public function getId() : int
{ {
return $this->id; return $this->id;
@ -73,11 +87,27 @@ class ContactElement
$this->value = $value; $this->value = $value;
} }
/**
* Get description
*
* @return string
*
* @since 1.0.0
*/
public function getDescription() : string public function getDescription() : string
{ {
return $this->description; return $this->description;
} }
/**
* 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;

View File

@ -51,6 +51,13 @@ class BaseView extends View
return $this->id; return $this->id;
} }
/**
* Get name
*
* @return string
*
* @since 1.0.0
*/
public function getName() : string public function getName() : string
{ {
return $this->name; return $this->name;

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' => [
'List' => 'List', 'List' => 'List',
'Overview' => 'Overview', 'Overview' => 'Overview',

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);
$MODLANG[1] = [ $MODLANG[1] = [
'i:ModuleInstalled' => 'Installation of the module {$1} was successful.', 'i:ModuleInstalled' => 'Installation of the module {$1} was successful.',
]; ];

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 ['Profile' => [ return ['Profile' => [
'Account' => 'Account', 'Account' => 'Account',
'Account/Group' => 'Account/Group', 'Account/Group' => 'Account/Group',

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);
use Modules\Media\Models\NullMedia; use Modules\Media\Models\NullMedia;
use phpOMS\Uri\UriFactory; use phpOMS\Uri\UriFactory;