Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/spreed.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2020-05-12 16:04:42 +0300
committerJoas Schilling <coding@schilljs.com>2020-05-12 16:04:42 +0300
commit84d42604e60aa1c31ecf698dcc069f36c494148a (patch)
tree0c881194abad7aa1d6c103f1bad2b201b1c7acd4 /lib/Migration
parent851f76ecd2be9302cf7938e287929f9296b398d0 (diff)
Run cs:fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/Migration')
-rw-r--r--lib/Migration/ClearResourceAccessCache.php2
-rw-r--r--lib/Migration/FixNamespaceInDatabaseTables.php2
-rw-r--r--lib/Migration/Version2000Date20170707093535.php2
-rw-r--r--lib/Migration/Version2000Date20171026140256.php3
-rw-r--r--lib/Migration/Version2000Date20171026140257.php3
-rw-r--r--lib/Migration/Version2001Date20170707115443.php2
-rw-r--r--lib/Migration/Version2001Date20170913104501.php2
-rw-r--r--lib/Migration/Version2001Date20170921145301.php2
-rw-r--r--lib/Migration/Version2001Date20170929092606.php1
-rw-r--r--lib/Migration/Version2001Date20171009132424.php2
-rw-r--r--lib/Migration/Version2001Date20171026134605.php9
-rw-r--r--lib/Migration/Version2001Date20171026141336.php1
-rw-r--r--lib/Migration/Version2001Date20171031102049.php2
-rw-r--r--lib/Migration/Version2001Date20180103144447.php3
-rw-r--r--lib/Migration/Version2001Date20180103150836.php1
-rw-r--r--lib/Migration/Version3002Date20180319104030.php1
-rw-r--r--lib/Migration/Version3003Date20180707222130.php1
-rw-r--r--lib/Migration/Version3003Date20180718112436.php3
-rw-r--r--lib/Migration/Version3003Date20180718133519.php1
-rw-r--r--lib/Migration/Version3003Date20180720162342.php1
-rw-r--r--lib/Migration/Version3003Date20180722152733.php2
-rw-r--r--lib/Migration/Version3003Date20180722152849.php1
-rw-r--r--lib/Migration/Version3003Date20180730080327.php1
-rw-r--r--lib/Migration/Version4099Date20181001123058.php1
-rw-r--r--lib/Migration/Version5099Date20190121102337.php1
-rw-r--r--lib/Migration/Version5099Date20190319134820.php2
-rw-r--r--lib/Migration/Version7000Date20190717141457.php1
-rw-r--r--lib/Migration/Version7000Date20190724121136.php1
-rw-r--r--lib/Migration/Version8000Date20200331144101.php2
-rw-r--r--lib/Migration/Version8000Date20200402124456.php2
-rw-r--r--lib/Migration/Version8000Date20200407073807.php2
-rw-r--r--lib/Migration/Version8000Date20200407115318.php1
32 files changed, 33 insertions, 28 deletions
diff --git a/lib/Migration/ClearResourceAccessCache.php b/lib/Migration/ClearResourceAccessCache.php
index 792c5a53c..03ce1db2a 100644
--- a/lib/Migration/ClearResourceAccessCache.php
+++ b/lib/Migration/ClearResourceAccessCache.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2019, Joas Schilling <coding@schilljs.com>
@@ -31,7 +32,6 @@ use OCP\Migration\IOutput;
use OCP\Migration\IRepairStep;
class ClearResourceAccessCache implements IRepairStep {
-
protected const INVALIDATIONS = 1;
/** @var IConfig */
diff --git a/lib/Migration/FixNamespaceInDatabaseTables.php b/lib/Migration/FixNamespaceInDatabaseTables.php
index 4d217a2af..4d098015c 100644
--- a/lib/Migration/FixNamespaceInDatabaseTables.php
+++ b/lib/Migration/FixNamespaceInDatabaseTables.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2019 Joas Schilling <coding@schilljs.com>
@@ -22,7 +23,6 @@ declare(strict_types=1);
namespace OCA\Talk\Migration;
-
use OCP\IDBConnection;
use OCP\Migration\IOutput;
use OCP\Migration\IRepairStep;
diff --git a/lib/Migration/Version2000Date20170707093535.php b/lib/Migration/Version2000Date20170707093535.php
index b235c5e23..cbbd0031c 100644
--- a/lib/Migration/Version2000Date20170707093535.php
+++ b/lib/Migration/Version2000Date20170707093535.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
@@ -123,5 +124,4 @@ class Version2000Date20170707093535 extends SimpleMigrationStep {
return $schema;
}
-
}
diff --git a/lib/Migration/Version2000Date20171026140256.php b/lib/Migration/Version2000Date20171026140256.php
index 3bb642da3..5f8b61efa 100644
--- a/lib/Migration/Version2000Date20171026140256.php
+++ b/lib/Migration/Version2000Date20171026140256.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
@@ -56,7 +57,6 @@ class Version2000Date20171026140256 extends SimpleMigrationStep {
* @since 13.0.0
*/
public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options): void {
-
if (version_compare($this->config->getAppValue('spreed', 'installed_version', '0.0.0'), '2.0.0', '<')) {
// Migrations only work after 2.0.0
return;
@@ -84,6 +84,5 @@ class Version2000Date20171026140256 extends SimpleMigrationStep {
->execute();
}
$output->finishProgress();
-
}
}
diff --git a/lib/Migration/Version2000Date20171026140257.php b/lib/Migration/Version2000Date20171026140257.php
index fb22b242f..ff74b1d5a 100644
--- a/lib/Migration/Version2000Date20171026140257.php
+++ b/lib/Migration/Version2000Date20171026140257.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
@@ -60,7 +61,6 @@ class Version2000Date20171026140257 extends SimpleMigrationStep {
* @since 13.0.0
*/
public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options): void {
-
if (version_compare($this->config->getAppValue('spreed', 'installed_version', '0.0.0'), '2.0.0', '<')) {
// Migrations only work after 2.0.0
return;
@@ -92,7 +92,6 @@ class Version2000Date20171026140257 extends SimpleMigrationStep {
->execute();
}
$output->finishProgress();
-
}
/**
diff --git a/lib/Migration/Version2001Date20170707115443.php b/lib/Migration/Version2001Date20170707115443.php
index c0875a32a..f932133be 100644
--- a/lib/Migration/Version2001Date20170707115443.php
+++ b/lib/Migration/Version2001Date20170707115443.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
@@ -78,7 +79,6 @@ class Version2001Date20170707115443 extends SimpleMigrationStep {
* @since 13.0.0
*/
public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options): void {
-
if (version_compare($this->config->getAppValue('spreed', 'installed_version', '0.0.0'), '2.0.0', '<')) {
// Migrations only work after 2.0.0
return;
diff --git a/lib/Migration/Version2001Date20170913104501.php b/lib/Migration/Version2001Date20170913104501.php
index 226bcd163..dd85e30e0 100644
--- a/lib/Migration/Version2001Date20170913104501.php
+++ b/lib/Migration/Version2001Date20170913104501.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
@@ -69,5 +70,4 @@ class Version2001Date20170913104501 extends SimpleMigrationStep {
return $schema;
}
-
}
diff --git a/lib/Migration/Version2001Date20170921145301.php b/lib/Migration/Version2001Date20170921145301.php
index 718be15cb..f366a6040 100644
--- a/lib/Migration/Version2001Date20170921145301.php
+++ b/lib/Migration/Version2001Date20170921145301.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
@@ -50,5 +51,4 @@ class Version2001Date20170921145301 extends SimpleMigrationStep {
return $schema;
}
-
}
diff --git a/lib/Migration/Version2001Date20170929092606.php b/lib/Migration/Version2001Date20170929092606.php
index 048743909..0e8618299 100644
--- a/lib/Migration/Version2001Date20170929092606.php
+++ b/lib/Migration/Version2001Date20170929092606.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
diff --git a/lib/Migration/Version2001Date20171009132424.php b/lib/Migration/Version2001Date20171009132424.php
index a4b5b4ade..d1f6e7257 100644
--- a/lib/Migration/Version2001Date20171009132424.php
+++ b/lib/Migration/Version2001Date20171009132424.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
@@ -54,5 +55,4 @@ class Version2001Date20171009132424 extends SimpleMigrationStep {
return $schema;
}
-
}
diff --git a/lib/Migration/Version2001Date20171026134605.php b/lib/Migration/Version2001Date20171026134605.php
index e4a7cfda0..bd40b396d 100644
--- a/lib/Migration/Version2001Date20171026134605.php
+++ b/lib/Migration/Version2001Date20171026134605.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
@@ -158,7 +159,6 @@ class Version2001Date20171026134605 extends SimpleMigrationStep {
* @since 13.0.0
*/
public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options): void {
-
if (version_compare($this->config->getAppValue('spreed', 'installed_version', '0.0.0'), '2.0.0', '<')) {
// Migrations only work after 2.0.0
return;
@@ -210,7 +210,6 @@ class Version2001Date20171026134605 extends SimpleMigrationStep {
* @param int[] $roomIdMap
*/
protected function copyParticipants(array $roomIdMap): void {
-
$insert = $this->connection->getQueryBuilder();
if (!$this->connection->getDatabasePlatform() instanceof PostgreSqlPlatform) {
$insert->insert('talk_participants')
@@ -256,14 +255,12 @@ class Version2001Date20171026134605 extends SimpleMigrationStep {
$insert->execute();
}
$result->closeCursor();
-
}
/**
* @param int[] $roomIdMap
*/
protected function fixNotifications(array $roomIdMap): void {
-
$update = $this->connection->getQueryBuilder();
$update->update('notifications')
->set('object_id', $update->createParameter('newId'))
@@ -301,14 +298,12 @@ class Version2001Date20171026134605 extends SimpleMigrationStep {
$update->execute();
}
$result->closeCursor();
-
}
/**
* @param int[] $roomIdMap
*/
protected function fixActivities(array $roomIdMap): void {
-
$update = $this->connection->getQueryBuilder();
$update->update('activity')
->set('object_id', $update->createParameter('newId'))
@@ -363,14 +358,12 @@ class Version2001Date20171026134605 extends SimpleMigrationStep {
$update->execute();
}
$result->closeCursor();
-
}
/**
* @param int[] $roomIdMap
*/
protected function fixActivityMails(array $roomIdMap): void {
-
$update = $this->connection->getQueryBuilder();
$update->update('activity_mq')
->set('amq_subjectparams', $update->createParameter('subjectParams'))
diff --git a/lib/Migration/Version2001Date20171026141336.php b/lib/Migration/Version2001Date20171026141336.php
index edb9f2b3c..0ffebe0f9 100644
--- a/lib/Migration/Version2001Date20171026141336.php
+++ b/lib/Migration/Version2001Date20171026141336.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
diff --git a/lib/Migration/Version2001Date20171031102049.php b/lib/Migration/Version2001Date20171031102049.php
index 1d06d1c2b..067ff2826 100644
--- a/lib/Migration/Version2001Date20171031102049.php
+++ b/lib/Migration/Version2001Date20171031102049.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2017 Joas Schilling <coding@schilljs.com>
@@ -49,5 +50,4 @@ class Version2001Date20171031102049 extends SimpleMigrationStep {
return $schema;
}
-
}
diff --git a/lib/Migration/Version2001Date20180103144447.php b/lib/Migration/Version2001Date20180103144447.php
index 77ad48d39..0af9e898b 100644
--- a/lib/Migration/Version2001Date20180103144447.php
+++ b/lib/Migration/Version2001Date20180103144447.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2018 Joas Schilling <coding@schilljs.com>
@@ -116,7 +117,6 @@ class Version2001Date20180103144447 extends SimpleMigrationStep {
* @since 13.0.0
*/
public function postSchemaChange(IOutput $output, \Closure $schemaClosure, array $options): void {
-
if (version_compare($this->config->getAppValue('spreed', 'installed_version', '0.0.0'), '2.0.0', '<')) {
// Migrations only work after 2.0.0
return;
@@ -155,6 +155,5 @@ class Version2001Date20180103144447 extends SimpleMigrationStep {
->set('in_call', 'incall');
$update->execute();
}
-
}
}
diff --git a/lib/Migration/Version2001Date20180103150836.php b/lib/Migration/Version2001Date20180103150836.php
index b579af9b1..852977b99 100644
--- a/lib/Migration/Version2001Date20180103150836.php
+++ b/lib/Migration/Version2001Date20180103150836.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2018 Joas Schilling <coding@schilljs.com>
diff --git a/lib/Migration/Version3002Date20180319104030.php b/lib/Migration/Version3002Date20180319104030.php
index ab446d193..35d1228c4 100644
--- a/lib/Migration/Version3002Date20180319104030.php
+++ b/lib/Migration/Version3002Date20180319104030.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2018 Joas Schilling <coding@schilljs.com>
diff --git a/lib/Migration/Version3003Date20180707222130.php b/lib/Migration/Version3003Date20180707222130.php
index c850720a9..187ffe291 100644
--- a/lib/Migration/Version3003Date20180707222130.php
+++ b/lib/Migration/Version3003Date20180707222130.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2018 Mario Danic <mario@lovelyhq.com>
diff --git a/lib/Migration/Version3003Date20180718112436.php b/lib/Migration/Version3003Date20180718112436.php
index c4694fab7..dacb4481e 100644
--- a/lib/Migration/Version3003Date20180718112436.php
+++ b/lib/Migration/Version3003Date20180718112436.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2018 Joas Schilling <coding@schilljs.com>
@@ -75,7 +76,7 @@ class Version3003Date20180718112436 extends SimpleMigrationStep {
->where($update->expr()->eq('id', $update->createParameter('room')));
$query = $this->connection->getQueryBuilder();
- $query->select( 'object_id')
+ $query->select('object_id')
->selectAlias($query->createFunction('MAX(' . $query->getColumnName('creation_timestamp') . ')'), 'last_activity')
->from('comments')
->where($query->expr()->eq('object_type', $query->createNamedParameter('chat')))
diff --git a/lib/Migration/Version3003Date20180718133519.php b/lib/Migration/Version3003Date20180718133519.php
index 6ce1c2e38..3a195cc4c 100644
--- a/lib/Migration/Version3003Date20180718133519.php
+++ b/lib/Migration/Version3003Date20180718133519.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2018, Joas Schilling <coding@schilljs.com>
diff --git a/lib/Migration/Version3003Date20180720162342.php b/lib/Migration/Version3003Date20180720162342.php
index a1b893c73..d6706a85e 100644
--- a/lib/Migration/Version3003Date20180720162342.php
+++ b/lib/Migration/Version3003Date20180720162342.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
*
diff --git a/lib/Migration/Version3003Date20180722152733.php b/lib/Migration/Version3003Date20180722152733.php
index dafd3c592..8edb2de34 100644
--- a/lib/Migration/Version3003Date20180722152733.php
+++ b/lib/Migration/Version3003Date20180722152733.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2018 Joachim Bauch <bauch@struktur.de>
@@ -23,7 +24,6 @@ declare(strict_types=1);
*/
namespace OCA\Talk\Migration;
-use Doctrine\DBAL\Types\Type;
use OCP\DB\ISchemaWrapper;
use OCP\Migration\SimpleMigrationStep;
use OCP\Migration\IOutput;
diff --git a/lib/Migration/Version3003Date20180722152849.php b/lib/Migration/Version3003Date20180722152849.php
index faf8acfbc..3bd92746a 100644
--- a/lib/Migration/Version3003Date20180722152849.php
+++ b/lib/Migration/Version3003Date20180722152849.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2018 Joachim Bauch <bauch@struktur.de>
diff --git a/lib/Migration/Version3003Date20180730080327.php b/lib/Migration/Version3003Date20180730080327.php
index ab1c73afa..3860d631f 100644
--- a/lib/Migration/Version3003Date20180730080327.php
+++ b/lib/Migration/Version3003Date20180730080327.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2018 Joas Schilling <coding@schilljs.com>
diff --git a/lib/Migration/Version4099Date20181001123058.php b/lib/Migration/Version4099Date20181001123058.php
index 90108afd7..4aaac033d 100644
--- a/lib/Migration/Version4099Date20181001123058.php
+++ b/lib/Migration/Version4099Date20181001123058.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2018, Joas Schilling <coding@schilljs.com>
diff --git a/lib/Migration/Version5099Date20190121102337.php b/lib/Migration/Version5099Date20190121102337.php
index dcf88c82e..50b4055ec 100644
--- a/lib/Migration/Version5099Date20190121102337.php
+++ b/lib/Migration/Version5099Date20190121102337.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2019, Joas Schilling <coding@schilljs.com>
diff --git a/lib/Migration/Version5099Date20190319134820.php b/lib/Migration/Version5099Date20190319134820.php
index cd7819ec9..3501d7977 100644
--- a/lib/Migration/Version5099Date20190319134820.php
+++ b/lib/Migration/Version5099Date20190319134820.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2019, Joas Schilling <coding@schilljs.com>
@@ -54,5 +55,4 @@ class Version5099Date20190319134820 extends SimpleMigrationStep {
return $schema;
}
-
}
diff --git a/lib/Migration/Version7000Date20190717141457.php b/lib/Migration/Version7000Date20190717141457.php
index 9645bdbdf..2f415264f 100644
--- a/lib/Migration/Version7000Date20190717141457.php
+++ b/lib/Migration/Version7000Date20190717141457.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2019, Joas Schilling <coding@schilljs.com>
diff --git a/lib/Migration/Version7000Date20190724121136.php b/lib/Migration/Version7000Date20190724121136.php
index 74a268fa6..beb972b79 100644
--- a/lib/Migration/Version7000Date20190724121136.php
+++ b/lib/Migration/Version7000Date20190724121136.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2018 Joas Schilling <coding@schilljs.com>
diff --git a/lib/Migration/Version8000Date20200331144101.php b/lib/Migration/Version8000Date20200331144101.php
index b98da8824..0b3cca860 100644
--- a/lib/Migration/Version8000Date20200331144101.php
+++ b/lib/Migration/Version8000Date20200331144101.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Joas Schilling <coding@schilljs.com>
@@ -30,7 +31,6 @@ use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
class Version8000Date20200331144101 extends SimpleMigrationStep {
-
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ISchemaWrapper {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();
diff --git a/lib/Migration/Version8000Date20200402124456.php b/lib/Migration/Version8000Date20200402124456.php
index adff00243..b274b716b 100644
--- a/lib/Migration/Version8000Date20200402124456.php
+++ b/lib/Migration/Version8000Date20200402124456.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Joas Schilling <coding@schilljs.com>
@@ -30,7 +31,6 @@ use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
class Version8000Date20200402124456 extends SimpleMigrationStep {
-
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ISchemaWrapper {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();
diff --git a/lib/Migration/Version8000Date20200407073807.php b/lib/Migration/Version8000Date20200407073807.php
index 284e81ea6..30eb81d82 100644
--- a/lib/Migration/Version8000Date20200407073807.php
+++ b/lib/Migration/Version8000Date20200407073807.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
@@ -31,7 +32,6 @@ use OCP\Migration\IOutput;
use OCP\Migration\SimpleMigrationStep;
class Version8000Date20200407073807 extends SimpleMigrationStep {
-
public function changeSchema(IOutput $output, Closure $schemaClosure, array $options): ISchemaWrapper {
/** @var ISchemaWrapper $schema */
$schema = $schemaClosure();
diff --git a/lib/Migration/Version8000Date20200407115318.php b/lib/Migration/Version8000Date20200407115318.php
index a41fbce13..59fa05e44 100644
--- a/lib/Migration/Version8000Date20200407115318.php
+++ b/lib/Migration/Version8000Date20200407115318.php
@@ -1,4 +1,5 @@
<?php
+
declare(strict_types=1);
/**
* @copyright Copyright (c) 2020, Joas Schilling <coding@schilljs.com>