php cs fixer

This commit is contained in:
Dennis Eichhorn 2018-12-28 19:13:17 +01:00
parent faeab25c7d
commit ecca76c05d
3 changed files with 16 additions and 16 deletions

View File

@ -56,7 +56,7 @@ class Collection extends Media implements \Iterator
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setSources(array $sources) public function setSources(array $sources) : void
{ {
$this->sources = $sources; $this->sources = $sources;
} }
@ -70,7 +70,7 @@ class Collection extends Media implements \Iterator
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function addSource($source) public function addSource($source) : void
{ {
$this->sources[] = $source; $this->sources[] = $source;
} }
@ -87,15 +87,15 @@ class Collection extends Media implements \Iterator
return $this->sources; return $this->sources;
} }
public function setExtension(string $extension) public function setExtension(string $extension) : void
{ {
} }
public function setVersioned(bool $versioned) public function setVersioned(bool $versioned) : void
{ {
} }
public function rewind() public function rewind() : void
{ {
reset($this->sources); reset($this->sources);
} }
@ -110,7 +110,7 @@ class Collection extends Media implements \Iterator
return key($this->sources); return key($this->sources);
} }
public function next() public function next() : void
{ {
next($this->sources); next($this->sources);
} }

View File

@ -141,7 +141,7 @@ class Media implements \JsonSerializable
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setAbsolute(bool $absolute) /* void */ public function setAbsolute(bool $absolute) : void /* void */
{ {
$this->isAbsolute = $absolute; $this->isAbsolute = $absolute;
} }
@ -243,7 +243,7 @@ class Media implements \JsonSerializable
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setCreatedBy($createdBy) public function setCreatedBy($createdBy) : void
{ {
$this->createdBy = $createdBy; $this->createdBy = $createdBy;
} }
@ -255,7 +255,7 @@ class Media implements \JsonSerializable
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setExtension(string $extension) public function setExtension(string $extension) : void
{ {
$this->extension = $extension; $this->extension = $extension;
} }
@ -267,7 +267,7 @@ class Media implements \JsonSerializable
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setPath(string $path) public function setPath(string $path) : void
{ {
$this->path = \str_replace('\\', '/', $path); $this->path = \str_replace('\\', '/', $path);
} }
@ -279,7 +279,7 @@ class Media implements \JsonSerializable
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setName(string $name) public function setName(string $name) : void
{ {
$this->name = $name; $this->name = $name;
} }
@ -291,7 +291,7 @@ class Media implements \JsonSerializable
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDescription(string $description) public function setDescription(string $description) : void
{ {
$this->description = $description; $this->description = $description;
} }
@ -303,7 +303,7 @@ class Media implements \JsonSerializable
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setDescriptionRaw(string $description) public function setDescriptionRaw(string $description) : void
{ {
$this->descriptionRaw = $description; $this->descriptionRaw = $description;
} }
@ -315,7 +315,7 @@ class Media implements \JsonSerializable
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setSize(int $size) public function setSize(int $size) : void
{ {
$this->size = $size; $this->size = $size;
} }
@ -327,7 +327,7 @@ class Media implements \JsonSerializable
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setVersioned(bool $versioned) public function setVersioned(bool $versioned) : void
{ {
$this->versioned = $versioned; $this->versioned = $versioned;
} }

View File

@ -353,7 +353,7 @@ class UploadFile
* *
* @since 1.0.0 * @since 1.0.0
*/ */
public function setAllowedTypes(array $allowedTypes) public function setAllowedTypes(array $allowedTypes) : void
{ {
$this->allowedTypes = $allowedTypes; $this->allowedTypes = $allowedTypes;
} }