Remove namespace from scalars

This commit is contained in:
Dennis Eichhorn 2016-01-23 10:17:21 +01:00
parent 700f060ca4
commit 9fe4694f43
6 changed files with 75 additions and 75 deletions

View File

@ -48,7 +48,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__;
@ -56,7 +56,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';
@ -64,7 +64,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 = 'Media'; const MODULE_NAME = 'Media';
@ -72,7 +72,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 = [
@ -82,7 +82,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 = [];
@ -90,7 +90,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 = [
@ -213,7 +213,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>
*/ */
public function uploadFiles(array $files, \int $account) : array public function uploadFiles(array $files, int $account) : array
{ {
$mediaCreated = []; $mediaCreated = [];
@ -255,7 +255,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

@ -34,7 +34,7 @@ class Collection extends Media
/** /**
* Resource id. * Resource id.
* *
* @var \int[] * @var int[]
* @since 1.0.0 * @since 1.0.0
*/ */
private $sources = []; private $sources = [];
@ -67,14 +67,14 @@ class Collection extends Media
/** /**
* Set sources. * Set sources.
* *
* @param \int $source Source * @param int $source Source
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function addSource(\int $source) public function addSource(int $source)
{ {
$this->sources[] = $source; $this->sources[] = $source;
} }

View File

@ -33,7 +33,7 @@ class CollectionMapper extends MediaMapper
/** /**
* Primary table. * Primary table.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $table = 'media'; protected static $table = 'media';
@ -41,7 +41,7 @@ class CollectionMapper extends MediaMapper
/** /**
* Created at. * Created at.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $createdAt = 'media_created_at'; protected static $createdAt = 'media_created_at';
@ -49,7 +49,7 @@ class CollectionMapper extends MediaMapper
/** /**
* Primary field name. * Primary field name.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $primaryField = 'media_id'; protected static $primaryField = 'media_id';

View File

@ -32,7 +32,7 @@ class Media
/** /**
* ID. * ID.
* *
* @var \int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected $id = 0; protected $id = 0;
@ -40,7 +40,7 @@ class Media
/** /**
* Name. * Name.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected $name = ''; protected $name = '';
@ -48,7 +48,7 @@ class Media
/** /**
* Extension. * Extension.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected $extension = ''; protected $extension = '';
@ -56,7 +56,7 @@ class Media
/** /**
* File size in bytes. * File size in bytes.
* *
* @var \int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected $size = 0; protected $size = 0;
@ -64,7 +64,7 @@ class Media
/** /**
* Author. * Author.
* *
* @var \int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
protected $createdBy = 0; protected $createdBy = 0;
@ -80,7 +80,7 @@ class Media
/** /**
* Resource path. * Resource path.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected $path = ''; protected $path = '';
@ -88,7 +88,7 @@ class Media
/** /**
* Is versioned. * Is versioned.
* *
* @var \bool * @var bool
* @since 1.0.0 * @since 1.0.0
*/ */
protected $versioned = false; protected $versioned = false;
@ -96,7 +96,7 @@ class Media
/** /**
* Media Description. * Media Description.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected $description = ''; protected $description = '';
@ -129,36 +129,36 @@ class Media
} }
/** /**
* @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;
} }
/** /**
* @param \int $id Id * @param int $id Id
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function setId(\int $id) public function setId(int $id)
{ {
$this->id = $id; $this->id = $id;
} }
/** /**
* @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;
} }
@ -175,69 +175,69 @@ class Media
} }
/** /**
* @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 getExtension() : \string public function getExtension() : string
{ {
return $this->extension; return $this->extension;
} }
/** /**
* @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 getPath() : \string public function getPath() : string
{ {
return $this->path; return $this->path;
} }
/** /**
* @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 getName() : \string public function getName() : string
{ {
return $this->name; return $this->name;
} }
/** /**
* @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;
} }
/** /**
* @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 getSize() : \int public function getSize() : int
{ {
return $this->size; return $this->size;
} }
/** /**
* @param \int $createdBy Creator * @param int $createdBy Creator
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function setCreatedBy(\int $createdBy) public function setCreatedBy(int $createdBy)
{ {
$this->createdBy = $createdBy; $this->createdBy = $createdBy;
} }
@ -256,90 +256,90 @@ class Media
} }
/** /**
* @param \string $extension Extension * @param string $extension Extension
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function setExtension(\string $extension) public function setExtension(string $extension)
{ {
$this->extension = $extension; $this->extension = $extension;
} }
/** /**
* @param \string $path $filepath * @param string $path $filepath
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function setPath(\string $path) public function setPath(string $path)
{ {
$this->path = $path; $this->path = $path;
} }
/** /**
* @param \string $name Media name (not file name) * @param string $name Media name (not file name)
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function setName(\string $name) public function setName(string $name)
{ {
$this->name = $name; $this->name = $name;
} }
/** /**
* @param \string $description Media description * @param string $description Media description
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function setDescription(\string $description) public function setDescription(string $description)
{ {
$this->description = $description; $this->description = $description;
} }
/** /**
* @param \int $size Filesize * @param int $size Filesize
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function setSize(\int $size) public function setSize(int $size)
{ {
$this->size = $size; $this->size = $size;
} }
/** /**
* @param \bool $versioned File is version controlled * @param bool $versioned File is version controlled
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function setVersioned(\bool $versioned) public function setVersioned(bool $versioned)
{ {
$this->versioned = $versioned; $this->versioned = $versioned;
} }
/** /**
* @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 getVersioned() : \bool public function getVersioned() : bool
{ {
return $this->versioned; return $this->versioned;
} }

View File

@ -43,7 +43,7 @@ class MediaMapper extends DataMapperAbstract
/** /**
* Primary table. * Primary table.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $table = 'media'; protected static $table = 'media';
@ -53,7 +53,7 @@ class MediaMapper extends DataMapperAbstract
/** /**
* Primary field name. * Primary field name.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
protected static $primaryField = 'media_id'; protected static $primaryField = 'media_id';
@ -63,7 +63,7 @@ class MediaMapper extends DataMapperAbstract
* *
* @param Media $obj Media * @param Media $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>

View File

@ -33,7 +33,7 @@ class UploadFile
/** /**
* Upload max size. * Upload max size.
* *
* @var \int * @var int
* @since 1.0.0 * @since 1.0.0
*/ */
private $maxSize = 50000000; private $maxSize = 50000000;
@ -49,7 +49,7 @@ class UploadFile
/** /**
* Output directory. * Output directory.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $outputDir = '/Modules/Media/Files'; private $outputDir = '/Modules/Media/Files';
@ -57,7 +57,7 @@ class UploadFile
/** /**
* Output file name. * Output file name.
* *
* @var \string * @var string
* @since 1.0.0 * @since 1.0.0
*/ */
private $fileName = ''; private $fileName = '';
@ -65,7 +65,7 @@ class UploadFile
/** /**
* Output file name. * Output file name.
* *
* @var \bool * @var bool
* @since 1.0.0 * @since 1.0.0
*/ */
private $preserveFileName = true; private $preserveFileName = true;
@ -193,25 +193,25 @@ class UploadFile
} }
/** /**
* @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 getMaxSize() : \int public function getMaxSize() : int
{ {
return $this->maxSize; return $this->maxSize;
} }
/** /**
* @param \int $maxSize * @param int $maxSize
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function setMaxSize(\int $maxSize) public function setMaxSize(int $maxSize)
{ {
$this->maxSize = $maxSize; $this->maxSize = $maxSize;
} }
@ -254,62 +254,62 @@ class UploadFile
} }
/** /**
* @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 getOutputDir() : \string public function getOutputDir() : string
{ {
return $this->outputDir; return $this->outputDir;
} }
/** /**
* @param \string $outputDir * @param string $outputDir
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function setOutputDir(\string $outputDir) public function setOutputDir(string $outputDir)
{ {
$this->outputDir = $outputDir; $this->outputDir = $outputDir;
} }
/** /**
* @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 getFileName() : \string public function getFileName() : string
{ {
return $this->fileName; return $this->fileName;
} }
/** /**
* @param \string $fileName * @param string $fileName
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function setFileName(\string $fileName) public function setFileName(string $fileName)
{ {
$this->fileName = $fileName; $this->fileName = $fileName;
} }
/** /**
* @param \bool $preserveFileName * @param bool $preserveFileName
* *
* @return void * @return void
* *
* @since 1.0.0 * @since 1.0.0
* @author Dennis Eichhorn <d.eichhorn@oms.com> * @author Dennis Eichhorn <d.eichhorn@oms.com>
*/ */
public function setPreserveFileName(\bool $preserveFileName) public function setPreserveFileName(bool $preserveFileName)
{ {
$this->preserveFileName = $preserveFileName; $this->preserveFileName = $preserveFileName;
} }