Remove namespace from scalars

This commit is contained in:
Dennis Eichhorn 2016-01-23 10:17:21 +01:00
parent a7330ea1bc
commit 8d5d933339
4 changed files with 51 additions and 51 deletions

View File

@ -43,7 +43,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Module path. * Module path.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
const MODULE_PATH = __DIR__; const MODULE_PATH = __DIR__;
@ -51,7 +51,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Module version. * Module version.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
const MODULE_VERSION = '1.0.0'; const MODULE_VERSION = '1.0.0';
@ -59,7 +59,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Module name. * Module name.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
const MODULE_NAME = 'Tasks'; const MODULE_NAME = 'Tasks';
@ -67,7 +67,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Localization files. * Localization files.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $localization = [ protected static $localization = [
@ -77,7 +77,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Providing. * Providing.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $providing = []; protected static $providing = [];
@ -85,7 +85,7 @@ class Controller extends ModuleAbstract implements WebInterface
/** /**
* Dependencies. * Dependencies.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $dependencies = [ protected static $dependencies = [
@ -190,7 +190,7 @@ class Controller extends ModuleAbstract implements WebInterface
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
private function createNavigation(\int $pageId, RequestAbstract $request, ResponseAbstract $response) private function createNavigation(int $pageId, RequestAbstract $request, ResponseAbstract $response)
{ {
$nav = Navigation::getInstance($request, $this->app->dbPool); $nav = Navigation::getInstance($request, $this->app->dbPool);
$navView = new NavigationView($this->app, $request, $response); $navView = new NavigationView($this->app, $request, $response);

View File

@ -32,7 +32,7 @@ class Task
/** /**
* ID. * ID.
* *
* @var \int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $id = null; private $id = null;
@ -40,7 +40,7 @@ class Task
/** /**
* Title. * Title.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $title = ''; private $title = '';
@ -48,7 +48,7 @@ class Task
/** /**
* Creator. * Creator.
* *
* @var \int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $createdBy = null; private $createdBy = null;
@ -64,7 +64,7 @@ class Task
/** /**
* Description. * Description.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $description = ''; private $description = '';
@ -72,7 +72,7 @@ class Task
/** /**
* Plain unparsed. * Plain unparsed.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $plain = ''; private $plain = '';
@ -137,7 +137,7 @@ class Task
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function addElement(TaskElement $element) : \bool public function addElement(TaskElement $element) : bool
{ {
if (!isset($this->taskElements[$element->getId()])) { if (!isset($this->taskElements[$element->getId()])) {
$this->taskElements[$element->getId()] = $element; $this->taskElements[$element->getId()] = $element;
@ -160,23 +160,23 @@ class Task
} }
/** /**
* @return \int * @return int
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function getCreatedBy() : \int public function getCreatedBy() : int
{ {
return $this->createdBy; return $this->createdBy;
} }
/** /**
* @return \string * @return string
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function getDescription() : \string public function getDescription() : string
{ {
return $this->description; return $this->description;
} }
@ -204,12 +204,12 @@ class Task
} }
/** /**
* @return \int * @return int
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function getId() : \int public function getId() : int
{ {
return $this->id; return $this->id;
} }
@ -226,12 +226,12 @@ class Task
} }
/** /**
* @return \string * @return string
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function getTitle() : \string public function getTitle() : string
{ {
return $this->title; return $this->title;
} }
@ -239,14 +239,14 @@ class Task
/** /**
* Remove Element from list. * Remove Element from list.
* *
* @param \int $id Task element * @param int $id Task element
* *
* @return bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function removeElement($id) : \bool public function removeElement($id) : bool
{ {
if (isset($this->taskElements[$id])) { if (isset($this->taskElements[$id])) {
unset($this->taskElements[$id]); unset($this->taskElements[$id]);
@ -273,14 +273,14 @@ class Task
/** /**
* Get task elements. * Get task elements.
* *
* @param \int $id Element id * @param int $id Element id
* *
* @return TaskElement * @return TaskElement
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function getTaskElement(\int $id) : TaskElement public function getTaskElement(int $id) : TaskElement
{ {
return $this->taskElements[$id] ?? new NullTaskElement(); return $this->taskElements[$id] ?? new NullTaskElement();
} }
@ -288,12 +288,12 @@ class Task
/** /**
* Get task type. * Get task type.
* *
* @return \int * @return int
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function getType() : \int public function getType() : int
{ {
return $this->type; return $this->type;
} }
@ -301,12 +301,12 @@ class Task
/** /**
* Get plain. * Get plain.
* *
* @return \string * @return string
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function getPlain() : \string public function getPlain() : string
{ {
return $this->plain; return $this->plain;
} }

View File

@ -32,7 +32,7 @@ class TaskElement
/** /**
* Id. * Id.
* *
* @var \int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $id = null; private $id = null;
@ -40,7 +40,7 @@ class TaskElement
/** /**
* Description. * Description.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $description = ''; private $description = '';
@ -48,7 +48,7 @@ class TaskElement
/** /**
* Task. * Task.
* *
* @var \int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $task = 0; private $task = 0;
@ -56,7 +56,7 @@ class TaskElement
/** /**
* Creator. * Creator.
* *
* @var \int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $creator = 0; private $creator = 0;
@ -72,7 +72,7 @@ class TaskElement
/** /**
* Status. * Status.
* *
* @var \int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $status = null; private $status = null;
@ -88,7 +88,7 @@ class TaskElement
/** /**
* Forwarded to. * Forwarded to.
* *
* @var \int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $forwarded = 0; private $forwarded = 0;
@ -106,7 +106,7 @@ class TaskElement
/** /**
* Init task element. * Init task element.
* *
* @param \int $id Article ID * @param int $id Article ID
* *
* @return void * @return void
* *
@ -142,7 +142,7 @@ class TaskElement
} }
/** /**
* @return \int * @return int
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
@ -153,7 +153,7 @@ class TaskElement
} }
/** /**
* @param \int $creator * @param int $creator
* *
* @return void * @return void
* *
@ -166,7 +166,7 @@ class TaskElement
} }
/** /**
* @return \string * @return string
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
@ -177,7 +177,7 @@ class TaskElement
} }
/** /**
* @param \string $description * @param string $description
* *
* @return void * @return void
* *
@ -214,7 +214,7 @@ class TaskElement
} }
/** /**
* @return \int * @return int
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
@ -225,7 +225,7 @@ class TaskElement
} }
/** /**
* @param \int $forwarded * @param int $forwarded
* *
* @return void * @return void
* *
@ -238,7 +238,7 @@ class TaskElement
} }
/** /**
* @return \int * @return int
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
@ -249,7 +249,7 @@ class TaskElement
} }
/** /**
* @param \int $id * @param int $id
* *
* @return void * @return void
* *
@ -262,7 +262,7 @@ class TaskElement
} }
/** /**
* @return \int * @return int
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
@ -273,7 +273,7 @@ class TaskElement
} }
/** /**
* @param \int $status * @param int $status
* *
* @return void * @return void
* *
@ -286,7 +286,7 @@ class TaskElement
} }
/** /**
* @return \int * @return int
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
@ -297,7 +297,7 @@ class TaskElement
} }
/** /**
* @param \int $task * @param int $task
* *
* @return void * @return void
* *

View File

@ -44,7 +44,7 @@ class TaskMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $table = 'task'; protected static $table = 'task';
@ -54,7 +54,7 @@ class TaskMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $primaryField = 'task_id'; protected static $primaryField = 'task_id';
@ -64,7 +64,7 @@ class TaskMapper extends DataMapperAbstract
* *
* @param Task $obj Media * @param Task $obj Media
* *
* @return \bool * @return bool
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>