From ab5e11a242e093cc1146e3760ac621c9eeb817c7 Mon Sep 17 00:00:00 2001 From: Dennis Eichhorn Date: Sat, 3 Dec 2016 21:59:21 +0100 Subject: [PATCH] Preparing for void return type --- Account/Account.php | 14 ++++++------ Account/Group.php | 6 +++--- Algorithm/Knappsack/Backpack.php | 8 +++---- Config/SettingsAbstract.php | 2 +- DataStorage/Cache/FileCache.php | 2 +- DataStorage/Cache/MemCache.php | 4 ++-- DataStorage/Cache/NullCache.php | 4 ++-- DataStorage/Cache/RedisCache.php | 4 ++-- DataStorage/Cache/WinCache.php | 4 ++-- DataStorage/Database/DataMapperAbstract.php | 4 ++-- DataStorage/Database/GrammarAbstract.php | 2 +- DataStorage/Database/Query/Builder.php | 2 +- DataStorage/Database/Query/Column.php | 2 +- DataStorage/Database/Schema/Builder.php | 2 +- DataStorage/Session/ConsoleSession.php | 2 +- DataStorage/Session/HttpSession.php | 4 ++-- DataStorage/Session/SocketSession.php | 2 +- Datatypes/Address.php | 6 +++--- Datatypes/ExactFloat.php | 2 +- Datatypes/Iban.php | 2 +- Datatypes/Location.php | 14 ++++++------ Localization/Localization.php | 18 ++++++++-------- Localization/Money.php | 4 ++-- Math/Matrix/Matrix.php | 2 +- Math/Number/Complex.php | 4 ++-- Math/Optimization/TSP/Population.php | 2 +- Math/Optimization/TSP/Tour.php | 2 +- Math/Shape/D2/Polygon.php | 8 +++---- Message/Http/Request.php | 2 +- Message/Http/Response.php | 2 +- Message/Http/Rest.php | 2 +- Message/Mail/Mail.php | 6 +++--- Message/RequestAbstract.php | 12 +++++------ Message/ResponseAbstract.php | 6 +++--- Model/Html/Head.php | 8 +++---- Model/Html/Meta.php | 8 +++---- Module/InfoManager.php | 2 +- Security/Encryption/Encryption.php | 8 +++---- Socket/Client/ClientConnection.php | 8 +++---- Socket/Packets/Header.php | 12 +++++------ Socket/Packets/PacketAbstract.php | 2 +- Socket/Server/Server.php | 2 +- Stdlib/Collection/Collection.php | 2 +- Stdlib/Graph/BinaryTree.php | 2 +- Stdlib/Graph/Graph.php | 2 +- Stdlib/Queue/PriorityQueue.php | 2 +- Uri/Http.php | 4 ++-- Utils/Barcode/C128Abstract.php | 6 +++--- Utils/Barcode/C128a.php | 2 +- Utils/Barcode/C25.php | 2 +- Utils/Barcode/C39.php | 2 +- Utils/Barcode/Codebar.php | 2 +- Utils/Encoding/Huffman/Dictionary.php | 2 +- Utils/Encoding/Huffman/Huffman.php | 2 +- Utils/Git/Author.php | 6 +++--- Utils/Git/Branch.php | 2 +- Utils/Git/Commit.php | 12 +++++------ Utils/Git/Git.php | 2 +- Utils/Git/Repository.php | 4 ++-- Utils/Git/Tag.php | 2 +- Utils/IO/Csv/CsvDatabaseMapper.php | 4 ++-- Utils/IO/Excel/ExcelDatabaseMapper.php | 4 ++-- Utils/JobQueue/Job.php | 2 +- Utils/JobQueue/JobQueue.php | 8 +++---- Utils/JsonBuilder.php | 2 +- Utils/Parser/Php/ClassParser.php | 12 +++++------ Utils/Parser/Php/FunctionParser.php | 16 +++++++------- Utils/Parser/Php/MemberParser.php | 10 ++++----- Utils/RnG/Text.php | 4 ++-- Utils/TaskSchedule/CronJob.php | 2 +- Utils/TaskSchedule/Interval.php | 24 ++++++++++----------- Utils/TaskSchedule/Schedule.php | 2 +- Utils/TaskSchedule/SchedulerAbstract.php | 4 ++-- Utils/TaskSchedule/TaskAbstract.php | 18 ++++++++-------- Validation/ModelValidationTrait.php | 4 ++-- Views/View.php | 2 +- Views/ViewAbstract.php | 4 ++-- 77 files changed, 196 insertions(+), 196 deletions(-) diff --git a/Account/Account.php b/Account/Account.php index 3484f238b..306c455dd 100644 --- a/Account/Account.php +++ b/Account/Account.php @@ -199,7 +199,7 @@ class Account implements ArrayableInterface, \JsonSerializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setL11n(Localization $l11n) + public function setL11n(Localization $l11n) /* : void */ { $this->l11n = $l11n; } @@ -322,7 +322,7 @@ class Account implements ArrayableInterface, \JsonSerializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setName1(string $name) + public function setName1(string $name) /* : void */ { $this->name1 = $name; } @@ -337,7 +337,7 @@ class Account implements ArrayableInterface, \JsonSerializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setName2(string $name) + public function setName2(string $name) /* : void */ { $this->name2 = $name; } @@ -352,7 +352,7 @@ class Account implements ArrayableInterface, \JsonSerializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setName3(string $name) + public function setName3(string $name) /* : void */ { $this->name3 = $name; } @@ -367,7 +367,7 @@ class Account implements ArrayableInterface, \JsonSerializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setEmail(string $email) + public function setEmail(string $email) /* : void */ { if (!Email::isValid($email)) { throw new \InvalidArgumentException(); @@ -386,7 +386,7 @@ class Account implements ArrayableInterface, \JsonSerializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setStatus(int $status) + public function setStatus(int $status) /* : void */ { if (!AccountStatus::isValidValue($status)) { throw new \InvalidArgumentException(); @@ -405,7 +405,7 @@ class Account implements ArrayableInterface, \JsonSerializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setType(int $type) + public function setType(int $type) /* : void */ { if (!AccountType::isValidValue($type)) { throw new \InvalidArgumentException(); diff --git a/Account/Group.php b/Account/Group.php index 159698ade..cbc1c5213 100644 --- a/Account/Group.php +++ b/Account/Group.php @@ -148,7 +148,7 @@ class Group implements ArrayableInterface, \JsonSerializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setName(string $name) + public function setName(string $name) /* : void */ { $this->name = $name; } @@ -174,7 +174,7 @@ class Group implements ArrayableInterface, \JsonSerializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setDescription(string $description) + public function setDescription(string $description) /* : void */ { $this->description = $description; } @@ -200,7 +200,7 @@ class Group implements ArrayableInterface, \JsonSerializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setStatus(int $status) + public function setStatus(int $status) /* : void */ { // todo: check valid $this->status = $status; diff --git a/Algorithm/Knappsack/Backpack.php b/Algorithm/Knappsack/Backpack.php index 0e7f3f4a3..7da98193a 100644 --- a/Algorithm/Knappsack/Backpack.php +++ b/Algorithm/Knappsack/Backpack.php @@ -54,22 +54,22 @@ class Backpack return true; } - public function setPopulationItem(ItemInterface $item) + public function setPopulationItem(ItemInterface $item) /* : void */ { $this->population[$item->getId()] = $item; } - public function setCostCalculation(\Closure $callback) + public function setCostCalculation(\Closure $callback) /* : void */ { } - public function setValueCalculation(\Closure $callback) + public function setValueCalculation(\Closure $callback) /* : void */ { } - public function setTestPopulationBuilder(\Closure $callback) + public function setTestPopulationBuilder(\Closure $callback) /* : void */ { } diff --git a/Config/SettingsAbstract.php b/Config/SettingsAbstract.php index f14798ec2..c6cedb85e 100644 --- a/Config/SettingsAbstract.php +++ b/Config/SettingsAbstract.php @@ -131,7 +131,7 @@ abstract class SettingsAbstract implements OptionsInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function set(array $options, bool $store = false) + public function set(array $options, bool $store = false) /* : void */ { $this->setOptions($options); diff --git a/DataStorage/Cache/FileCache.php b/DataStorage/Cache/FileCache.php index 2a9aa9232..cef68a849 100644 --- a/DataStorage/Cache/FileCache.php +++ b/DataStorage/Cache/FileCache.php @@ -136,7 +136,7 @@ class FileCache implements CacheInterface /** * {@inheritdoc} */ - public function set($key, $value, int $expire = -1) + public function set($key, $value, int $expire = -1) /* : void */ { if($this->status !== CacheStatus::ACTIVE) { return false; diff --git a/DataStorage/Cache/MemCache.php b/DataStorage/Cache/MemCache.php index faab742e1..3779cbc34 100644 --- a/DataStorage/Cache/MemCache.php +++ b/DataStorage/Cache/MemCache.php @@ -74,7 +74,7 @@ class MemCache implements CacheInterface /** * {@inheritdoc} */ - public function set($key, $value, int $expire = -1) + public function set($key, $value, int $expire = -1) /* : void */ { $this->memc->set($key, $value, false, $expire); } @@ -151,7 +151,7 @@ class MemCache implements CacheInterface /** * {@inheritdoc} */ - public function setStatus(int $status) + public function setStatus(int $status) /* : void */ { $this->status = $status; } diff --git a/DataStorage/Cache/NullCache.php b/DataStorage/Cache/NullCache.php index ada8a005b..5e748907e 100644 --- a/DataStorage/Cache/NullCache.php +++ b/DataStorage/Cache/NullCache.php @@ -32,7 +32,7 @@ class NullCache implements CacheInterface /** * {@inheritdoc} */ - public function set($key, $value, int $expire = -1) + public function set($key, $value, int $expire = -1) /* : void */ { // TODO: Implement set() method. } @@ -108,7 +108,7 @@ class NullCache implements CacheInterface /** * {@inheritdoc} */ - public function setStatus(int $status) + public function setStatus(int $status) /* : void */ { // TODO: Implement setStatus() method. } diff --git a/DataStorage/Cache/RedisCache.php b/DataStorage/Cache/RedisCache.php index b3afb4cc9..f9a5447d3 100644 --- a/DataStorage/Cache/RedisCache.php +++ b/DataStorage/Cache/RedisCache.php @@ -34,7 +34,7 @@ class RedisCache implements CacheInterface /** * {@inheritdoc} */ - public function set($key, $value, int $expire = -1) + public function set($key, $value, int $expire = -1) /* : void */ { // TODO: Implement set() method. } @@ -110,7 +110,7 @@ class RedisCache implements CacheInterface /** * {@inheritdoc} */ - public function setStatus(int $status) + public function setStatus(int $status) /* : void */ { // TODO: Implement setStatus() method. } diff --git a/DataStorage/Cache/WinCache.php b/DataStorage/Cache/WinCache.php index a41bfe7f9..4c5864480 100644 --- a/DataStorage/Cache/WinCache.php +++ b/DataStorage/Cache/WinCache.php @@ -34,7 +34,7 @@ class WinCache implements CacheInterface /** * {@inheritdoc} */ - public function set($key, $value, int $expire = -1) + public function set($key, $value, int $expire = -1) /* : void */ { // TODO: Implement set() method. } @@ -110,7 +110,7 @@ class WinCache implements CacheInterface /** * {@inheritdoc} */ - public function setStatus(int $status) + public function setStatus(int $status) /* : void */ { // TODO: Implement setStatus() method. } diff --git a/DataStorage/Database/DataMapperAbstract.php b/DataStorage/Database/DataMapperAbstract.php index dba3be76e..c2af1d607 100644 --- a/DataStorage/Database/DataMapperAbstract.php +++ b/DataStorage/Database/DataMapperAbstract.php @@ -175,7 +175,7 @@ class DataMapperAbstract implements DataMapperInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public static function setConnection(ConnectionAbstract $con) + public static function setConnection(ConnectionAbstract $con) /* : void */ { self::$db = $con; } @@ -425,7 +425,7 @@ class DataMapperAbstract implements DataMapperInterface * @since 1.0.0 * @author Dennis Eichhorn */ - private static function setObjectId(\ReflectionClass $reflectionClass, $obj, $objId) + private static function setObjectId(\ReflectionClass $reflectionClass, $obj, $objId) /* : void */ { $reflectionProperty = $reflectionClass->getProperty(static::$columns[static::$primaryField]['internal']); diff --git a/DataStorage/Database/GrammarAbstract.php b/DataStorage/Database/GrammarAbstract.php index 1c91395c3..1aabee83f 100644 --- a/DataStorage/Database/GrammarAbstract.php +++ b/DataStorage/Database/GrammarAbstract.php @@ -147,7 +147,7 @@ abstract class GrammarAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setTablePrefix(string $prefix) + public function setTablePrefix(string $prefix) /* : void */ { $this->tablePrefix = $prefix; } diff --git a/DataStorage/Database/Query/Builder.php b/DataStorage/Database/Query/Builder.php index ffa6ce35e..35147355b 100644 --- a/DataStorage/Database/Query/Builder.php +++ b/DataStorage/Database/Query/Builder.php @@ -226,7 +226,7 @@ class Builder extends BuilderAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setConnection(ConnectionAbstract $connection) + public function setConnection(ConnectionAbstract $connection) /* : void */ { $this->connection = $connection; $this->grammar = $connection->getGrammar(); diff --git a/DataStorage/Database/Query/Column.php b/DataStorage/Database/Query/Column.php index 1587e7c2b..34efc0865 100644 --- a/DataStorage/Database/Query/Column.php +++ b/DataStorage/Database/Query/Column.php @@ -64,7 +64,7 @@ class Column return $this->column; } - public function setColumn(string $column) + public function setColumn(string $column) /* : void */ { $this->column = $column; } diff --git a/DataStorage/Database/Schema/Builder.php b/DataStorage/Database/Schema/Builder.php index e1113a6b9..60a80dfce 100644 --- a/DataStorage/Database/Schema/Builder.php +++ b/DataStorage/Database/Schema/Builder.php @@ -51,7 +51,7 @@ class Builder extends BuilderAbstract $this->grammar = $connection->getSchemaGrammar(); } - public function select(...$table) + public function select(...$table) /* : void */ { $this->type = QueryType::SELECT; $this->table += $table; diff --git a/DataStorage/Session/ConsoleSession.php b/DataStorage/Session/ConsoleSession.php index 088e25b82..9f6ae47f8 100644 --- a/DataStorage/Session/ConsoleSession.php +++ b/DataStorage/Session/ConsoleSession.php @@ -84,7 +84,7 @@ class ConsoleSession implements SessionInterface /** * {@inheritdoc} */ - public function setSID($sid) + public function setSID($sid) /* : void */ { $this->sid = $sid; } diff --git a/DataStorage/Session/HttpSession.php b/DataStorage/Session/HttpSession.php index 6134baebe..2bc104b2d 100644 --- a/DataStorage/Session/HttpSession.php +++ b/DataStorage/Session/HttpSession.php @@ -93,7 +93,7 @@ class HttpSession implements SessionInterface * @since 1.0.0 * @author Dennis Eichhorn */ - private function setCsrfProtection() + private function setCsrfProtection() /* : void */ { $this->set('UID', 0, false); @@ -187,7 +187,7 @@ class HttpSession implements SessionInterface /** * {@inheritdoc} */ - public function setSID($sid) + public function setSID($sid) /* : void */ { $this->sid = $sid; } diff --git a/DataStorage/Session/SocketSession.php b/DataStorage/Session/SocketSession.php index 0ae50a265..462857ebd 100644 --- a/DataStorage/Session/SocketSession.php +++ b/DataStorage/Session/SocketSession.php @@ -84,7 +84,7 @@ class SocketSession implements SessionInterface /** * {@inheritdoc} */ - public function setSID($sid) + public function setSID($sid) /* : void */ { $this->sid = $sid; } diff --git a/Datatypes/Address.php b/Datatypes/Address.php index 868651f12..200244417 100644 --- a/Datatypes/Address.php +++ b/Datatypes/Address.php @@ -87,7 +87,7 @@ class Address implements \JsonSerializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setRecipient(string $recipient) + public function setRecipient(string $recipient) /* : void */ { $this->recipient = $recipient; } @@ -115,7 +115,7 @@ class Address implements \JsonSerializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setFAO(string $fao) + public function setFAO(string $fao) /* : void */ { $this->fao = $fao; } @@ -143,7 +143,7 @@ class Address implements \JsonSerializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setLocation(Location $location) + public function setLocation(Location $location) /* : void */ { $this->location = $location; } diff --git a/Datatypes/ExactFloat.php b/Datatypes/ExactFloat.php index 41aa4efc3..2fe5a96ee 100644 --- a/Datatypes/ExactFloat.php +++ b/Datatypes/ExactFloat.php @@ -20,7 +20,7 @@ class ExactFloat private static $length = 0; - public static function setLength($length) + public static function setLength($length) /* : void */ { self::$length = (int) $length; } diff --git a/Datatypes/Iban.php b/Datatypes/Iban.php index 1d529a752..484683d2d 100644 --- a/Datatypes/Iban.php +++ b/Datatypes/Iban.php @@ -276,7 +276,7 @@ class Iban implements \Serializable * @return string the string representation of the object or null * @since 5.1.0 */ - public function serialize() + public function serialize() /* : void */ { return $this->prettyPrint(); } diff --git a/Datatypes/Location.php b/Datatypes/Location.php index aa40936aa..d20399da6 100644 --- a/Datatypes/Location.php +++ b/Datatypes/Location.php @@ -106,7 +106,7 @@ class Location implements \JsonSerializable, \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setPostal(string $postal) + public function setPostal(string $postal) /* : void */ { $this->postal = $postal; } @@ -130,7 +130,7 @@ class Location implements \JsonSerializable, \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setCity(string $city) + public function setCity(string $city) /* : void */ { $this->city = $city; } @@ -154,7 +154,7 @@ class Location implements \JsonSerializable, \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setCountry(string $country) + public function setCountry(string $country) /* : void */ { $this->country = $country; } @@ -178,7 +178,7 @@ class Location implements \JsonSerializable, \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setAddress(string $address) + public function setAddress(string $address) /* : void */ { $this->address = $address; } @@ -202,7 +202,7 @@ class Location implements \JsonSerializable, \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setState(string $state) + public function setState(string $state) /* : void */ { $this->state = $state; } @@ -226,7 +226,7 @@ class Location implements \JsonSerializable, \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setGeo(array $geo) + public function setGeo(array $geo) /* : void */ { $this->geo = $geo; } @@ -237,7 +237,7 @@ class Location implements \JsonSerializable, \Serializable * @return string the string representation of the object or null * @since 5.1.0 */ - public function serialize() + public function serialize() /* : void */ { return $this->jsonSerialize(); } diff --git a/Localization/Localization.php b/Localization/Localization.php index edfdb6a18..bea87e1cb 100644 --- a/Localization/Localization.php +++ b/Localization/Localization.php @@ -171,7 +171,7 @@ class Localization * @since 1.0.0 * @author Dennis Eichhorn */ - public function setCountry(string $country) + public function setCountry(string $country) /* : void */ { if (!ISO3166TwoEnum::isValidValue($country)) { throw new InvalidEnumValue($country); @@ -199,7 +199,7 @@ class Localization * @since 1.0.0 * @author Dennis Eichhorn */ - public function setTimezone(string $timezone) + public function setTimezone(string $timezone) /* : void */ { if (!TimeZoneEnumArray::isValidValue($timezone)) { throw new InvalidEnumValue($timezone); @@ -229,7 +229,7 @@ class Localization * @since 1.0.0 * @author Dennis Eichhorn */ - public function setLanguage(string $language) + public function setLanguage(string $language) /* : void */ { if (!ISO639x1Enum::isValidValue($language)) { throw new InvalidEnumValue($language); @@ -257,7 +257,7 @@ class Localization * @since 1.0.0 * @author Dennis Eichhorn */ - public function setCurrency(string $currency) + public function setCurrency(string $currency) /* : void */ { if (!ISO4217Enum::isValidValue($currency)) { throw new InvalidEnumValue($currency); @@ -285,7 +285,7 @@ class Localization * @since 1.0.0 * @author Dennis Eichhorn */ - public function setDatetime(string $datetime) + public function setDatetime(string $datetime) /* : void */ { $this->datetime = $datetime; } @@ -309,7 +309,7 @@ class Localization * @since 1.0.0 * @author Dennis Eichhorn */ - public function setDecimal(string $decimal) + public function setDecimal(string $decimal) /* : void */ { $this->decimal = $decimal; } @@ -333,7 +333,7 @@ class Localization * @since 1.0.0 * @author Dennis Eichhorn */ - public function setThousands(string $thousands) + public function setThousands(string $thousands) /* : void */ { $this->thousands = $thousands; } @@ -357,7 +357,7 @@ class Localization * @since 1.0.0 * @author Dennis Eichhorn */ - public function setAngle(string $angle) + public function setAngle(string $angle) /* : void */ { $this->angle = $angle; } @@ -381,7 +381,7 @@ class Localization * @since 1.0.0 * @author Dennis Eichhorn */ - public function setTemperature(string $temperature) + public function setTemperature(string $temperature) /* : void */ { $this->temperature = $temperature; } diff --git a/Localization/Money.php b/Localization/Money.php index 492131381..7e4cfb5f9 100644 --- a/Localization/Money.php +++ b/Localization/Money.php @@ -139,7 +139,7 @@ class Money implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setLocalization(string $thousands = ',', string $decimal = '.', string $symbol = '', int $position = 0) + public function setLocalization(string $thousands = ',', string $decimal = '.', string $symbol = '', int $position = 0) /* : void */ { $this->thousands = $thousands; $this->decimal = $decimal; @@ -345,7 +345,7 @@ class Money implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function serialize() + public function serialize() /* : void */ { return $this->getInt(); } diff --git a/Math/Matrix/Matrix.php b/Math/Matrix/Matrix.php index 7c3d6b962..1b52176e3 100644 --- a/Math/Matrix/Matrix.php +++ b/Math/Matrix/Matrix.php @@ -92,7 +92,7 @@ class Matrix implements \ArrayAccess, \Iterator * @since 1.0.0 * @author Dennis Eichhorn */ - public function set(int $m, int $n, $value) + public function set(int $m, int $n, $value) /* : void */ { if (!isset($this->matrix[$m][$n])) { throw new DimensionException($m, $n); diff --git a/Math/Number/Complex.php b/Math/Number/Complex.php index e7364fc02..653492655 100644 --- a/Math/Number/Complex.php +++ b/Math/Number/Complex.php @@ -25,11 +25,11 @@ class Complex { } - public function setReal() + public function setReal() /* : void */ { } - public function setImaginary() + public function setImaginary() /* : void */ { } diff --git a/Math/Optimization/TSP/Population.php b/Math/Optimization/TSP/Population.php index 9d8024ed3..2a0ca90c1 100644 --- a/Math/Optimization/TSP/Population.php +++ b/Math/Optimization/TSP/Population.php @@ -79,7 +79,7 @@ class Population implements \Countable * @since 1.0.0 * @author Dennis Eichhorn */ - public function set(int $index, Tour $tour) + public function set(int $index, Tour $tour) /* : void */ { $this->tours[$index] = $tour; asort($this->tours); diff --git a/Math/Optimization/TSP/Tour.php b/Math/Optimization/TSP/Tour.php index 6b1b64a53..50f1b66ed 100644 --- a/Math/Optimization/TSP/Tour.php +++ b/Math/Optimization/TSP/Tour.php @@ -164,7 +164,7 @@ class Tour implements \Countable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setCity(int $index, City $city) + public function setCity(int $index, City $city) /* : void */ { $this->cities[$index] = $city; asort($this->cities); diff --git a/Math/Shape/D2/Polygon.php b/Math/Shape/D2/Polygon.php index cfcc16577..4949aad4c 100644 --- a/Math/Shape/D2/Polygon.php +++ b/Math/Shape/D2/Polygon.php @@ -201,7 +201,7 @@ class Polygon implements D2ShapeInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function setCoordinates($coord) + public function setCoordinates($coord) /* : void */ { $this->coord = $coord; } @@ -218,7 +218,7 @@ class Polygon implements D2ShapeInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function setCoordinate($i, $x, $y) + public function setCoordinate($i, $x, $y) /* : void */ { $this->coord[$i] = ['x' => $x, 'y' => $y]; } @@ -278,7 +278,7 @@ class Polygon implements D2ShapeInterface /** * {@inheritdoc} */ - public function setSurface($surface) + public function setSurface($surface) /* : void */ { $this->reset(); @@ -326,7 +326,7 @@ class Polygon implements D2ShapeInterface /** * {@inheritdoc} */ - public function setPerimeter($perimeter) + public function setPerimeter($perimeter) /* : void */ { $this->reset(); diff --git a/Message/Http/Request.php b/Message/Http/Request.php index a59766a64..310a3b487 100644 --- a/Message/Http/Request.php +++ b/Message/Http/Request.php @@ -196,7 +196,7 @@ class Request extends RequestAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - private function setupUriBuilder() + private function setupUriBuilder() /* : void */ { UriFactory::setQuery('/scheme', $this->uri->getScheme()); UriFactory::setQuery('/host', $this->uri->getHost()); diff --git a/Message/Http/Response.php b/Message/Http/Response.php index 37b9f10ed..da1932868 100644 --- a/Message/Http/Response.php +++ b/Message/Http/Response.php @@ -58,7 +58,7 @@ class Response extends ResponseAbstract implements RenderableInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function setResponse(array $response) + public function setResponse(array $response) /* : void */ { $this->response = $response; } diff --git a/Message/Http/Rest.php b/Message/Http/Rest.php index 8e7ef1a65..245315d71 100644 --- a/Message/Http/Rest.php +++ b/Message/Http/Rest.php @@ -44,7 +44,7 @@ class Rest * @since 1.0.0 * @author Dennis Eichhorn */ - public function setRequest(Request $request) + public function setRequest(Request $request) /* : void */ { $this->request = $request; } diff --git a/Message/Mail/Mail.php b/Message/Mail/Mail.php index 130862ad9..bcd525ee6 100644 --- a/Message/Mail/Mail.php +++ b/Message/Mail/Mail.php @@ -208,7 +208,7 @@ class Mail * @since 1.0.0 * @author Dennis Eichhorn */ - public function setBody(string $body) + public function setBody(string $body) /* : void */ { $this->body = $body; } @@ -223,7 +223,7 @@ class Mail * @since 1.0.0 * @author Dennis Eichhorn */ - public function setOverview(string $overview) + public function setOverview(string $overview) /* : void */ { $this->overview = $overview; } @@ -238,7 +238,7 @@ class Mail * @since 1.0.0 * @author Dennis Eichhorn */ - public function setEncoding(int $encoding) + public function setEncoding(int $encoding) /* : void */ { $this->encoding = $encoding; } diff --git a/Message/RequestAbstract.php b/Message/RequestAbstract.php index 53fa0da1d..dd72bb544 100644 --- a/Message/RequestAbstract.php +++ b/Message/RequestAbstract.php @@ -163,7 +163,7 @@ abstract class RequestAbstract implements MessageInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function setUri(UriInterface $uri) + public function setUri(UriInterface $uri) /* : void */ { $this->uri = $uri; } @@ -192,7 +192,7 @@ abstract class RequestAbstract implements MessageInterface /** * {@inheritdoc} */ - public function setRequestSource($source) + public function setRequestSource($source) /* : void */ { if (!RequestSource::isValidValue($source)) { throw new InvalidEnumValue($source); @@ -219,7 +219,7 @@ abstract class RequestAbstract implements MessageInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function setMethod(string $method) + public function setMethod(string $method) /* : void */ { $this->method = $method; } @@ -246,7 +246,7 @@ abstract class RequestAbstract implements MessageInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function setType(string $type) + public function setType(string $type) /* : void */ { $this->type = $type; } @@ -332,7 +332,7 @@ abstract class RequestAbstract implements MessageInterface /** * {@inheritdoc} */ - public function setAccount(int $account) + public function setAccount(int $account) /* : void */ { $this->account = $account; } @@ -340,7 +340,7 @@ abstract class RequestAbstract implements MessageInterface /** * {@inheritdoc} */ - public function setStatusCode(string $status) + public function setStatusCode(string $status) /* : void */ { $this->status = $status; } diff --git a/Message/ResponseAbstract.php b/Message/ResponseAbstract.php index ddf9525b2..28b1c1ae3 100644 --- a/Message/ResponseAbstract.php +++ b/Message/ResponseAbstract.php @@ -107,7 +107,7 @@ abstract class ResponseAbstract implements MessageInterface, \JsonSerializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function set($key, $response, bool $overwrite = true) + public function set($key, $response, bool $overwrite = true) /* : void */ { $this->response = ArrayUtils::setArray($key, $this->response, $response, ':', $overwrite); } @@ -116,7 +116,7 @@ abstract class ResponseAbstract implements MessageInterface, \JsonSerializable * {@inheritdoc} * todo: shouldn't this only be available in the header?! */ - public function setStatusCode(string $status) + public function setStatusCode(string $status) /* : void */ { $this->status = $status; $this->header->generate($status); @@ -142,7 +142,7 @@ abstract class ResponseAbstract implements MessageInterface, \JsonSerializable /** * {@inheritdoc} */ - public function setAccount(int $account) + public function setAccount(int $account) /* : void */ { $this->account = $account; } diff --git a/Model/Html/Head.php b/Model/Html/Head.php index ccc02840b..c9b52190c 100644 --- a/Model/Html/Head.php +++ b/Model/Html/Head.php @@ -138,7 +138,7 @@ class Head implements RenderableInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function setTitle(string $title) + public function setTitle(string $title) /* : void */ { $this->title = $title; } @@ -169,7 +169,7 @@ class Head implements RenderableInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function setLanguage(string $language) + public function setLanguage(string $language) /* : void */ { $this->language = $language; } @@ -242,7 +242,7 @@ class Head implements RenderableInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function setStyle(string $key, string $style, bool $overwrite = true) + public function setStyle(string $key, string $style, bool $overwrite = true) /* : void */ { if ($overwrite || !isset($this->script[$key])) { $this->style[$key] = $style; @@ -261,7 +261,7 @@ class Head implements RenderableInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function setScript(string $key, string $script, bool $overwrite = true) + public function setScript(string $key, string $script, bool $overwrite = true) /* : void */ { if ($overwrite || !isset($this->script[$key])) { $this->script[$key] = $script; diff --git a/Model/Html/Meta.php b/Model/Html/Meta.php index 74e3240b6..337b9cbf5 100644 --- a/Model/Html/Meta.php +++ b/Model/Html/Meta.php @@ -124,7 +124,7 @@ class Meta implements RenderableInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function setAuthor(string $author) + public function setAuthor(string $author) /* : void */ { $this->author = $author; } @@ -152,7 +152,7 @@ class Meta implements RenderableInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function setCharset(string $charset) + public function setCharset(string $charset) /* : void */ { $this->charset = $charset; } @@ -180,7 +180,7 @@ class Meta implements RenderableInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function setDescription(string $description) + public function setDescription(string $description) /* : void */ { $this->description = $description; } @@ -208,7 +208,7 @@ class Meta implements RenderableInterface * @since 1.0.0 * @author Dennis Eichhorn */ - public function setLanguage(string $language) + public function setLanguage(string $language) /* : void */ { $this->language = $language; } diff --git a/Module/InfoManager.php b/Module/InfoManager.php index 66b3dc112..f7929f4c7 100644 --- a/Module/InfoManager.php +++ b/Module/InfoManager.php @@ -103,7 +103,7 @@ class InfoManager * @since 1.0.0 * @author Dennis Eichhorn */ - public function set(string $path, $data, string $delim = '/') + public function set(string $path, $data, string $delim = '/') /* : void */ { if (!is_scalar($data) || !is_array($data)) { throw new \InvalidArgumentException('Type of $data "' . gettype($data) . '" is not supported.'); diff --git a/Security/Encryption/Encryption.php b/Security/Encryption/Encryption.php index 498d0b7b0..915620536 100644 --- a/Security/Encryption/Encryption.php +++ b/Security/Encryption/Encryption.php @@ -101,7 +101,7 @@ class Encryption * @since 1.0.0 * @author Dennis Eichhorn */ - public function setKey(string $key) + public function setKey(string $key) /* : void */ { $this->key = $key; } @@ -129,7 +129,7 @@ class Encryption * @since 1.0.0 * @author Dennis Eichhorn */ - public function setCipher(string $key) + public function setCipher(string $key) /* : void */ { $this->key = $key; } @@ -157,7 +157,7 @@ class Encryption * @since 1.0.0 * @author Dennis Eichhorn */ - public function setBlock(int $block) + public function setBlock(int $block) /* : void */ { $this->block = $block; } @@ -185,7 +185,7 @@ class Encryption * @since 1.0.0 * @author Dennis Eichhorn */ - public function setMode(string $mode) + public function setMode(string $mode) /* : void */ { $this->mode = $mode; } diff --git a/Socket/Client/ClientConnection.php b/Socket/Client/ClientConnection.php index d440df019..d178a48e7 100644 --- a/Socket/Client/ClientConnection.php +++ b/Socket/Client/ClientConnection.php @@ -50,7 +50,7 @@ class ClientConnection return $this->socket; } - public function setSocket($socket) + public function setSocket($socket) /* : void */ { $this->socket = $socket; } @@ -60,7 +60,7 @@ class ClientConnection return $this->handshake; } - public function setHandshake($handshake) + public function setHandshake($handshake) /* : void */ { $this->handshake = $handshake; } @@ -70,7 +70,7 @@ class ClientConnection return $this->pid; } - public function setPid($pid) + public function setPid($pid) /* : void */ { $this->pid = $pid; } @@ -80,7 +80,7 @@ class ClientConnection return $this->connected; } - public function setConnected(bool $connected) + public function setConnected(bool $connected) /* : void */ { $this->connected = $connected; } diff --git a/Socket/Packets/Header.php b/Socket/Packets/Header.php index 7a1936882..b676689f9 100644 --- a/Socket/Packets/Header.php +++ b/Socket/Packets/Header.php @@ -63,7 +63,7 @@ class Header implements \Serializable return $this->sendFrom; } - public function setSendFrom($sendFrom) + public function setSendFrom($sendFrom) /* : void */ { $this->sendFrom = $sendFrom; } @@ -73,7 +73,7 @@ class Header implements \Serializable return $this->sendTo; } - public function setSendTo($sendTo) + public function setSendTo($sendTo) /* : void */ { $this->sendTo = $sendTo; } @@ -97,7 +97,7 @@ class Header implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setLength($length) + public function setLength($length) /* : void */ { $this->length = $length; } @@ -121,7 +121,7 @@ class Header implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setType($type) + public function setType($type) /* : void */ { $this->type = $type; } @@ -145,7 +145,7 @@ class Header implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setSubtype($subtype) + public function setSubtype($subtype) /* : void */ { $this->subtype = $subtype; } @@ -158,7 +158,7 @@ class Header implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function serialize() + public function serialize() /* : void */ { return $this->__toString(); } diff --git a/Socket/Packets/PacketAbstract.php b/Socket/Packets/PacketAbstract.php index cc70c4c1b..a4ce6beba 100644 --- a/Socket/Packets/PacketAbstract.php +++ b/Socket/Packets/PacketAbstract.php @@ -95,7 +95,7 @@ abstract class PacketAbstract implements \Serializable * @var Header * @since 1.0.0 */ - public function setHeader(Header $header) + public function setHeader(Header $header) /* : void */ { $this->header = $header; } diff --git a/Socket/Server/Server.php b/Socket/Server/Server.php index d3603f900..24099cbf3 100644 --- a/Socket/Server/Server.php +++ b/Socket/Server/Server.php @@ -127,7 +127,7 @@ class Server extends SocketAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setLimit(int $limit) + public function setLimit(int $limit) /* : void */ { $this->limit = $limit; } diff --git a/Stdlib/Collection/Collection.php b/Stdlib/Collection/Collection.php index 3ccb31be9..1d8064142 100644 --- a/Stdlib/Collection/Collection.php +++ b/Stdlib/Collection/Collection.php @@ -567,7 +567,7 @@ class Collection implements \Countable, \ArrayAccess, \Iterator, \JsonSerializab return $total; } - public function search($filter, bool $strict = true) + public function search($filter, bool $strict = true) /* : void */ { if (is_scalar($filter)) { array_search($filter, $this->collection, $strict); diff --git a/Stdlib/Graph/BinaryTree.php b/Stdlib/Graph/BinaryTree.php index 1255068eb..bd93d3bf4 100644 --- a/Stdlib/Graph/BinaryTree.php +++ b/Stdlib/Graph/BinaryTree.php @@ -114,7 +114,7 @@ class BinaryTree extends Tree * @since 1.0.0 * @author Dennis Eichhorn */ - public function setRight(Node $base, Node $right) + public function setRight(Node $base, Node $right) /* : void */ { if($this->getRight($base) === null) { $this->addNode($base, $right); diff --git a/Stdlib/Graph/Graph.php b/Stdlib/Graph/Graph.php index fdb493e7e..75e9c2548 100644 --- a/Stdlib/Graph/Graph.php +++ b/Stdlib/Graph/Graph.php @@ -107,7 +107,7 @@ class Graph * @since 1.0.0 * @author Dennis Eichhorn */ - public function setEdge($key, Edge $edge) + public function setEdge($key, Edge $edge) /* : void */ { $this->edges[$key] = $edge; diff --git a/Stdlib/Queue/PriorityQueue.php b/Stdlib/Queue/PriorityQueue.php index 01150bde1..f13021398 100644 --- a/Stdlib/Queue/PriorityQueue.php +++ b/Stdlib/Queue/PriorityQueue.php @@ -163,7 +163,7 @@ class PriorityQueue implements \Countable, \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setPriority(int $id, float $priority) + public function setPriority(int $id, float $priority) /* : void */ { $this->queue[$id]['priority'] = $priority; } diff --git a/Uri/Http.php b/Uri/Http.php index d4756a623..3725c43c2 100644 --- a/Uri/Http.php +++ b/Uri/Http.php @@ -145,7 +145,7 @@ class Http implements UriInterface /** * {@inheritdoc} */ - public function set(string $uri) + public function set(string $uri) /* : void */ { $this->uri = $uri; $url = parse_url($this->uri); @@ -210,7 +210,7 @@ class Http implements UriInterface /** * {@inheritdoc} */ - public function setRootPath(string $root) + public function setRootPath(string $root) /* : void */ { $this->rootPath = $root; $this->set($this->uri); diff --git a/Utils/Barcode/C128Abstract.php b/Utils/Barcode/C128Abstract.php index f43f76a71..6cc9e593c 100644 --- a/Utils/Barcode/C128Abstract.php +++ b/Utils/Barcode/C128Abstract.php @@ -155,7 +155,7 @@ abstract class C128Abstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setSize(int $size) + public function setSize(int $size) /* : void */ { if ($size < 0) { throw new \OutOfBoundsException($size); @@ -172,7 +172,7 @@ abstract class C128Abstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setOrientation(int $orientation) + public function setOrientation(int $orientation) /* : void */ { if (!OrientationType::isValidValue($orientation)) { throw new InvalidEnumValue($orientation); @@ -202,7 +202,7 @@ abstract class C128Abstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setContent(string $content) + public function setContent(string $content) /* : void */ { $this->content = $content; } diff --git a/Utils/Barcode/C128a.php b/Utils/Barcode/C128a.php index bc33735a9..e3c9ad734 100644 --- a/Utils/Barcode/C128a.php +++ b/Utils/Barcode/C128a.php @@ -108,7 +108,7 @@ class C128a extends C128Abstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setContent(string $content) + public function setContent(string $content) /* : void */ { parent::setContent(strtoupper($content)); } diff --git a/Utils/Barcode/C25.php b/Utils/Barcode/C25.php index e68099154..b914d0bc5 100644 --- a/Utils/Barcode/C25.php +++ b/Utils/Barcode/C25.php @@ -93,7 +93,7 @@ class C25 extends C128Abstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setContent(string $content) + public function setContent(string $content) /* : void */ { if (!ctype_digit($content)) { throw new \InvalidArgumentException($content); diff --git a/Utils/Barcode/C39.php b/Utils/Barcode/C39.php index 0b6558c05..e8126f120 100644 --- a/Utils/Barcode/C39.php +++ b/Utils/Barcode/C39.php @@ -88,7 +88,7 @@ class C39 extends C128Abstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setContent(string $content) + public function setContent(string $content) /* : void */ { parent::setContent(strtoupper($content)); } diff --git a/Utils/Barcode/Codebar.php b/Utils/Barcode/Codebar.php index a7be5d673..414324a91 100644 --- a/Utils/Barcode/Codebar.php +++ b/Utils/Barcode/Codebar.php @@ -89,7 +89,7 @@ class Codebar extends C128Abstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setContent(string $content) + public function setContent(string $content) /* : void */ { parent::setContent(strtoupper($content)); } diff --git a/Utils/Encoding/Huffman/Dictionary.php b/Utils/Encoding/Huffman/Dictionary.php index c6dce1b57..3304f80c6 100644 --- a/Utils/Encoding/Huffman/Dictionary.php +++ b/Utils/Encoding/Huffman/Dictionary.php @@ -143,7 +143,7 @@ final class Dictionary * @since 1.0.0 * @author Dennis Eichhorn */ - public function set(string $entry, string $value) + public function set(string $entry, string $value) /* : void */ { if (strlen($entry) !== 1) { throw new \Exception('Must be a character.'); diff --git a/Utils/Encoding/Huffman/Huffman.php b/Utils/Encoding/Huffman/Huffman.php index 906e715ec..4166a000d 100644 --- a/Utils/Encoding/Huffman/Huffman.php +++ b/Utils/Encoding/Huffman/Huffman.php @@ -68,7 +68,7 @@ final class Huffman * @since 1.0.0 * @author Dennis Eichhorn */ - public function setDictionary(Dictionary $dictionary) + public function setDictionary(Dictionary $dictionary) /* : void */ { $this->dictionary = $dictionary; } diff --git a/Utils/Git/Author.php b/Utils/Git/Author.php index fb80d482d..351602a35 100644 --- a/Utils/Git/Author.php +++ b/Utils/Git/Author.php @@ -132,7 +132,7 @@ class Author * @since 1.0.0 * @author Dennis Eichhorn */ - public function setCommitCount(int $count) + public function setCommitCount(int $count) /* : void */ { $this->commitCount = $count; } @@ -147,7 +147,7 @@ class Author * @since 1.0.0 * @author Dennis Eichhorn */ - public function setAdditionCount(int $count) + public function setAdditionCount(int $count) /* : void */ { $this->additionsCount = $count; } @@ -175,7 +175,7 @@ class Author * @since 1.0.0 * @author Dennis Eichhorn */ - public function setRemovalCount(int $count) + public function setRemovalCount(int $count) /* : void */ { $this->removalsCount = $count; } diff --git a/Utils/Git/Branch.php b/Utils/Git/Branch.php index e6047c198..a16a57957 100644 --- a/Utils/Git/Branch.php +++ b/Utils/Git/Branch.php @@ -70,7 +70,7 @@ class Branch * @since 1.0.0 * @author Dennis Eichhorn */ - public function setName(string $name) + public function setName(string $name) /* : void */ { $this->name = escapeshellarg($name); } diff --git a/Utils/Git/Commit.php b/Utils/Git/Commit.php index 33f1ca00a..6d17fdb08 100644 --- a/Utils/Git/Commit.php +++ b/Utils/Git/Commit.php @@ -163,7 +163,7 @@ class Commit * @since 1.0.0 * @author Dennis Eichhorn */ - public function setMessage(string $message) + public function setMessage(string $message) /* : void */ { $this->message = $message; } @@ -223,7 +223,7 @@ class Commit * @since 1.0.0 * @author Dennis Eichhorn */ - public function setAuthor(Author $author) + public function setAuthor(Author $author) /* : void */ { $this->author = $author; } @@ -249,7 +249,7 @@ class Commit * @since 1.0.0 * @author Dennis Eichhorn */ - public function setBranch(Branch $branch) + public function setBranch(Branch $branch) /* : void */ { $this->branch = $branch; } @@ -275,7 +275,7 @@ class Commit * @since 1.0.0 * @author Dennis Eichhorn */ - public function setTag(Tag $tag) + public function setTag(Tag $tag) /* : void */ { $this->tag = $tag; } @@ -303,7 +303,7 @@ class Commit * @since 1.0.0 * @author Dennis Eichhorn */ - public function setDate(\DateTime $date) + public function setDate(\DateTime $date) /* : void */ { $this->date = $date; } @@ -329,7 +329,7 @@ class Commit * @since 1.0.0 * @author Dennis Eichhorn */ - public function setRepository(Repository $repository) + public function setRepository(Repository $repository) /* : void */ { $this->repository = $repository; } diff --git a/Utils/Git/Git.php b/Utils/Git/Git.php index 81e456dfc..6100ccd8c 100644 --- a/Utils/Git/Git.php +++ b/Utils/Git/Git.php @@ -84,7 +84,7 @@ class Git * @since 1.0.0 * @author Dennis Eichhorn */ - public static function setBin(string $path) + public static function setBin(string $path) /* : void */ { if (realpath($path) === false) { throw new PathException($path); diff --git a/Utils/Git/Repository.php b/Utils/Git/Repository.php index 03ef83baa..bf64936b7 100644 --- a/Utils/Git/Repository.php +++ b/Utils/Git/Repository.php @@ -87,7 +87,7 @@ class Repository * @since 1.0.0 * @author Dennis Eichhorn */ - private function setPath(string $path) + private function setPath(string $path) /* : void */ { if (!is_dir($path)) { throw new PathException($path); @@ -604,7 +604,7 @@ class Repository * @since 1.0.0 * @author Dennis Eichhorn */ - public function setDescription(string $description) + public function setDescription(string $description) /* : void */ { file_put_contents($this->getDirectoryPath(), $description); } diff --git a/Utils/Git/Tag.php b/Utils/Git/Tag.php index e4aa91bbb..c6a985597 100644 --- a/Utils/Git/Tag.php +++ b/Utils/Git/Tag.php @@ -78,7 +78,7 @@ class Tag * @since 1.0.0 * @author Dennis Eichhorn */ - public function setMessage(string $message) + public function setMessage(string $message) /* : void */ { $this->message = escapeshellarg($message); } diff --git a/Utils/IO/Csv/CsvDatabaseMapper.php b/Utils/IO/Csv/CsvDatabaseMapper.php index 4882c7089..260a2b8be 100644 --- a/Utils/IO/Csv/CsvDatabaseMapper.php +++ b/Utils/IO/Csv/CsvDatabaseMapper.php @@ -43,7 +43,7 @@ class CsvDatabaseMapper implements IODatabaseMapper $this->sources = array_unique($this->sources); } - public function setSources(array $sources) + public function setSources(array $sources) /* : void */ { $this->sources = $sources; } @@ -53,7 +53,7 @@ class CsvDatabaseMapper implements IODatabaseMapper $this->autoIdentifyCsvSettings = $identify; } - public function setLineBuffer(int $buffer) + public function setLineBuffer(int $buffer) /* : void */ { $this->lineBuffer = $buffer; } diff --git a/Utils/IO/Excel/ExcelDatabaseMapper.php b/Utils/IO/Excel/ExcelDatabaseMapper.php index 1a3c8596d..5e3f98e54 100644 --- a/Utils/IO/Excel/ExcelDatabaseMapper.php +++ b/Utils/IO/Excel/ExcelDatabaseMapper.php @@ -27,12 +27,12 @@ class ExcelDatabaseMapper implements IODatabaseMapper $this->sources[] = $source; } - public function setLineBuffer(int $buffer) + public function setLineBuffer(int $buffer) /* : void */ { $this->lineBuffer = $buffer; } - public function setSources(array $sources) + public function setSources(array $sources) /* : void */ { $this->sources = $sources; } diff --git a/Utils/JobQueue/Job.php b/Utils/JobQueue/Job.php index 010c123c0..78f98d770 100644 --- a/Utils/JobQueue/Job.php +++ b/Utils/JobQueue/Job.php @@ -48,7 +48,7 @@ class Job return $this->priority; } - public function setPriority(float $priority) + public function setPriority(float $priority) /* : void */ { $this->priority = $priority; } diff --git a/Utils/JobQueue/JobQueue.php b/Utils/JobQueue/JobQueue.php index 0c8ebb7eb..0a7134911 100644 --- a/Utils/JobQueue/JobQueue.php +++ b/Utils/JobQueue/JobQueue.php @@ -101,7 +101,7 @@ class JobQueue register_shutdown_function('shutdown'); } - public function setRunning(bool $run = true) + public function setRunning(bool $run = true) /* : void */ { $this->run = $run; $this->suspended = $run; @@ -117,7 +117,7 @@ class JobQueue return $this->suspended; } - public function setSuspended(bool $suspended = true) + public function setSuspended(bool $suspended = true) /* : void */ { $this->suspended = $suspended; } @@ -127,7 +127,7 @@ class JobQueue return $this->isTerminating; } - public function setTerminating(bool $terminating = true) + public function setTerminating(bool $terminating = true) /* : void */ { $this->isTerminating = $terminating; } @@ -137,7 +137,7 @@ class JobQueue return $this->isDeamonized; } - public function setDeamonized(bool $deamonized) + public function setDeamonized(bool $deamonized) /* : void */ { $this->isDeamonized = $deamonized; } diff --git a/Utils/JsonBuilder.php b/Utils/JsonBuilder.php index 96a4aa6b6..5f438cead 100644 --- a/Utils/JsonBuilder.php +++ b/Utils/JsonBuilder.php @@ -98,7 +98,7 @@ class JsonBuilder implements \Serializable * @return string the string representation of the object or null * @since 5.1.0 */ - public function serialize() + public function serialize() /* : void */ { return json_encode($this->json); } diff --git a/Utils/Parser/Php/ClassParser.php b/Utils/Parser/Php/ClassParser.php index 11fe81c5e..2b504a66f 100644 --- a/Utils/Parser/Php/ClassParser.php +++ b/Utils/Parser/Php/ClassParser.php @@ -167,7 +167,7 @@ class ClassParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function setFinal(bool $final) + public function setFinal(bool $final) /* : void */ { $this->isFinal = $final; } @@ -195,7 +195,7 @@ class ClassParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function setAbstract(bool $abstract) + public function setAbstract(bool $abstract) /* : void */ { $this->isAbstract = $abstract; } @@ -238,7 +238,7 @@ class ClassParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function setType(string $type) + public function setType(string $type) /* : void */ { $this->type = $type; } @@ -266,7 +266,7 @@ class ClassParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function setExtends(string $extends) + public function setExtends(string $extends) /* : void */ { $this->extends = $extends; } @@ -307,7 +307,7 @@ class ClassParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function setNamespace(string $namespace) + public function setNamespace(string $namespace) /* : void */ { $this->namespace = $namespace; } @@ -389,7 +389,7 @@ class ClassParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function setName(string $name) + public function setName(string $name) /* : void */ { $this->name = $name; } diff --git a/Utils/Parser/Php/FunctionParser.php b/Utils/Parser/Php/FunctionParser.php index 19f19effd..3cb9ac6b1 100644 --- a/Utils/Parser/Php/FunctionParser.php +++ b/Utils/Parser/Php/FunctionParser.php @@ -117,7 +117,7 @@ class FunctionParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function setName(string $name) + public function setName(string $name) /* : void */ { $this->name = $name; } @@ -132,7 +132,7 @@ class FunctionParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function seBody(string $body) + public function seBody(string $body) /* : void */ { $this->body = $body; } @@ -186,7 +186,7 @@ class FunctionParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function setVisibility(string $visibility) + public function setVisibility(string $visibility) /* : void */ { $this->visibility = $visibility; } @@ -201,7 +201,7 @@ class FunctionParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function setStatic(bool $static) + public function setStatic(bool $static) /* : void */ { $this->isStatic = $static; } @@ -229,7 +229,7 @@ class FunctionParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function setFinal(bool $final) + public function setFinal(bool $final) /* : void */ { $this->isFinal = $final; } @@ -257,7 +257,7 @@ class FunctionParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function setAbstract(bool $abstract) + public function setAbstract(bool $abstract) /* : void */ { $this->isAbstract = $abstract; @@ -317,7 +317,7 @@ class FunctionParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function setReturn(string $return) + public function setReturn(string $return) /* : void */ { $this->return = $return; } @@ -356,7 +356,7 @@ class FunctionParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function serialize() + public function serialize() /* : void */ { $function = ''; $function .= str_repeat(' ', ClassParser::INDENT); diff --git a/Utils/Parser/Php/MemberParser.php b/Utils/Parser/Php/MemberParser.php index 75b4882d8..941ef2d1a 100644 --- a/Utils/Parser/Php/MemberParser.php +++ b/Utils/Parser/Php/MemberParser.php @@ -93,7 +93,7 @@ class MemberParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function setName(string $name) + public function setName(string $name) /* : void */ { $this->name = $name; } @@ -121,7 +121,7 @@ class MemberParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function setVisibility(string $visibility) + public function setVisibility(string $visibility) /* : void */ { $this->visibility = $visibility; } @@ -136,7 +136,7 @@ class MemberParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function setStatic(bool $static) + public function setStatic(bool $static) /* : void */ { $this->isStatic = $static; @@ -168,7 +168,7 @@ class MemberParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function setConst(bool $const) + public function setConst(bool $const) /* : void */ { $this->isConst = $const; @@ -200,7 +200,7 @@ class MemberParser * @since 1.0.0 * @author Dennis Eichhorn */ - public function setDefault($default) + public function setDefault($default) /* : void */ { $this->default = $default; } diff --git a/Utils/RnG/Text.php b/Utils/RnG/Text.php index 3ae931f2c..5aa6d8f94 100644 --- a/Utils/RnG/Text.php +++ b/Utils/RnG/Text.php @@ -248,7 +248,7 @@ class Text * @since 1.0.0 * @author Dennis Eichhorn */ - public function setFormatting($hasFormatting) + public function setFormatting($hasFormatting) /* : void */ { $this->hasFormatting = $hasFormatting; } @@ -263,7 +263,7 @@ class Text * @since 1.0.0 * @author Dennis Eichhorn */ - public function setParagraphs($hasParagraphs) + public function setParagraphs($hasParagraphs) /* : void */ { $this->hasParagraphs = $hasParagraphs; } diff --git a/Utils/TaskSchedule/CronJob.php b/Utils/TaskSchedule/CronJob.php index 05c882d6b..9b362c91f 100644 --- a/Utils/TaskSchedule/CronJob.php +++ b/Utils/TaskSchedule/CronJob.php @@ -57,7 +57,7 @@ class CronJob extends TaskAbstract implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function serialize() + public function serialize() /* : void */ { $minute = $this->printValue($this->interval->getMinute()); $hour = $this->printValue($this->interval->getHour()); diff --git a/Utils/TaskSchedule/Interval.php b/Utils/TaskSchedule/Interval.php index 1ef28ad8b..43c5612ac 100644 --- a/Utils/TaskSchedule/Interval.php +++ b/Utils/TaskSchedule/Interval.php @@ -243,7 +243,7 @@ class Interval implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setStart(\DateTime $start) + public function setStart(\DateTime $start) /* : void */ { $this->start = $start; } @@ -271,7 +271,7 @@ class Interval implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setEnd(\DateTime $end) + public function setEnd(\DateTime $end) /* : void */ { $this->end = $end; } @@ -301,7 +301,7 @@ class Interval implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setMinute(array $minute, int $step = 0, bool $any = false) + public function setMinute(array $minute, int $step = 0, bool $any = false) /* : void */ { if ($this->validateTime($minute, $step, 0, 59)) { $this->hour = [ @@ -367,7 +367,7 @@ class Interval implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setHour(array $hour, int $step = 0, bool $any = false) + public function setHour(array $hour, int $step = 0, bool $any = false) /* : void */ { if ($this->validateTime($hour, $step, 0, 23)) { $this->hour = [ @@ -407,7 +407,7 @@ class Interval implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setDayOfMonth(array $dayOfMonth, int $step = 0, bool $any = false, bool $last = false, int $nearest = 0) + public function setDayOfMonth(array $dayOfMonth, int $step = 0, bool $any = false, bool $last = false, int $nearest = 0) /* : void */ { if ($this->validateDayOfMonth($arr = [ 'dayOfMonth' => $dayOfMonth, @@ -477,7 +477,7 @@ class Interval implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setDayOfWeek(array $dayOfWeek, int $step = 0, bool $any = false, bool $last = false) + public function setDayOfWeek(array $dayOfWeek, int $step = 0, bool $any = false, bool $last = false) /* : void */ { if ($this->validateDayOfWeek($arr = [ 'dayOfWeek' => $dayOfWeek, @@ -542,7 +542,7 @@ class Interval implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setMonth(array $month, int $step = 0, bool $any = false) + public function setMonth(array $month, int $step = 0, bool $any = false) /* : void */ { if ($this->validateTime($month, $step, 1, 12)) { $this->month = [ @@ -580,7 +580,7 @@ class Interval implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setYear(array $year, int $step = 0, bool $any = false) + public function setYear(array $year, int $step = 0, bool $any = false) /* : void */ { if ($this->validateYear($arr = [ 'year' => $year, @@ -617,7 +617,7 @@ class Interval implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function serialize() + public function serialize() /* : void */ { $minute = $this->serializeTime($this->minute['minutes'], $this->minute['step']); $hour = $this->serializeTime($this->hour['hours'], $this->hour['step']); @@ -640,7 +640,7 @@ class Interval implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function serializeTime($time, $step) + public function serializeTime($time, $step) /* : void */ { if (($count = count($time)) > 0) { $serialize = implode(',', $time); @@ -664,7 +664,7 @@ class Interval implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function serializeDayOfMonth() + public function serializeDayOfMonth() /* : void */ { if (($count = count($this->dayOfMonth['dayOfMonth'])) > 0) { $serialize = implode(',', $this->dayOfMonth['dayOfMonth']); @@ -692,7 +692,7 @@ class Interval implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function serializeDayOfWeek() + public function serializeDayOfWeek() /* : void */ { if (($count = count($this->dayOfWeek['dayOfWeek'])) > 0) { $serialize = implode(',', $this->dayOfWeek['dayOfWeek']); diff --git a/Utils/TaskSchedule/Schedule.php b/Utils/TaskSchedule/Schedule.php index 16664e121..5d211dd85 100644 --- a/Utils/TaskSchedule/Schedule.php +++ b/Utils/TaskSchedule/Schedule.php @@ -48,7 +48,7 @@ class Schedule extends TaskAbstract implements \Serializable * @return string the string representation of the object or null * @since 5.1.0 */ - public function serialize() + public function serialize() /* : void */ { // TODO: Implement serialize() method. } diff --git a/Utils/TaskSchedule/SchedulerAbstract.php b/Utils/TaskSchedule/SchedulerAbstract.php index bbd7f50a8..8b2dba090 100644 --- a/Utils/TaskSchedule/SchedulerAbstract.php +++ b/Utils/TaskSchedule/SchedulerAbstract.php @@ -67,7 +67,7 @@ abstract class SchedulerAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - public static function setBin(string $path) + public static function setBin(string $path) /* : void */ { if (realpath($path) === false) { throw new PathException($path); @@ -173,7 +173,7 @@ abstract class SchedulerAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function set(TaskAbstract $task) + public function set(TaskAbstract $task) /* : void */ { $this->tasks[$task->getId()] = $task; } diff --git a/Utils/TaskSchedule/TaskAbstract.php b/Utils/TaskSchedule/TaskAbstract.php index 7f645d660..479dbaf8b 100644 --- a/Utils/TaskSchedule/TaskAbstract.php +++ b/Utils/TaskSchedule/TaskAbstract.php @@ -109,7 +109,7 @@ abstract class TaskAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setCommand(string $command) + public function setCommand(string $command) /* : void */ { $this->command = $command; } @@ -137,7 +137,7 @@ abstract class TaskAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setRun(string $run) + public function setRun(string $run) /* : void */ { $this->run = $run; } @@ -165,7 +165,7 @@ abstract class TaskAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setStatus(string $status) + public function setStatus(string $status) /* : void */ { $this->status = $status; } @@ -193,7 +193,7 @@ abstract class TaskAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setNextRunTime(\DateTime $nextRunTime) + public function setNextRunTime(\DateTime $nextRunTime) /* : void */ { $this->nextRuntime = $nextRunTime; } @@ -221,7 +221,7 @@ abstract class TaskAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setLastRuntime(\DateTime $lastRunTime) + public function setLastRuntime(\DateTime $lastRunTime) /* : void */ { $this->lastRunTime = $lastRunTime; } @@ -249,7 +249,7 @@ abstract class TaskAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setStart(\DateTime $start) + public function setStart(\DateTime $start) /* : void */ { $this->start = $start; } @@ -277,7 +277,7 @@ abstract class TaskAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setEnd(\DateTime $end) + public function setEnd(\DateTime $end) /* : void */ { $this->end = $end; } @@ -305,7 +305,7 @@ abstract class TaskAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setAuthor(string $author) + public function setAuthor(string $author) /* : void */ { $this->author = $author; } @@ -333,7 +333,7 @@ abstract class TaskAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setComment(string $comment) + public function setComment(string $comment) /* : void */ { $this->comment = $comment; } diff --git a/Validation/ModelValidationTrait.php b/Validation/ModelValidationTrait.php index 861e78a88..311a8fbb5 100644 --- a/Validation/ModelValidationTrait.php +++ b/Validation/ModelValidationTrait.php @@ -38,7 +38,7 @@ trait ModelValidationTrait * @since 1.0.0 * @author Dennis Eichhorn */ - public function setForce($var, $name) + public function setForce($var, $name) /* : void */ { if (!property_exists($this, $var)) { throw new \Exception('Unknown property.'); @@ -85,7 +85,7 @@ trait ModelValidationTrait * @since 1.0.0 * @author Dennis Eichhorn */ - protected function setValidation($var, $name) + protected function setValidation($var, $name) /* : void */ { /** @noinspection PhpUndefinedFieldInspection */ if (!isset(self::${$name . '_validate'}) || Validator::isValid($var, self::$validation[$name]) === true) { diff --git a/Views/View.php b/Views/View.php index d8fc1d380..c525f57f2 100644 --- a/Views/View.php +++ b/Views/View.php @@ -113,7 +113,7 @@ class View extends ViewAbstract * @since 1.0.0 * @author Dennis Eichhorn */ - public function setData(string $id, $data) + public function setData(string $id, $data) /* : void */ { $this->data[$id] = $data; } diff --git a/Views/ViewAbstract.php b/Views/ViewAbstract.php index 35b0af89f..e609e3f79 100644 --- a/Views/ViewAbstract.php +++ b/Views/ViewAbstract.php @@ -100,7 +100,7 @@ abstract class ViewAbstract implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function setTemplate(string $template) + public function setTemplate(string $template) /* : void */ { $this->template = $template; } @@ -203,7 +203,7 @@ abstract class ViewAbstract implements \Serializable * @since 1.0.0 * @author Dennis Eichhorn */ - public function serialize() + public function serialize() /* : void */ { if (empty($this->template)) { return $this->toArray();